3 Replies Latest reply on Jun 30, 2010 6:12 AM by suter

    Cannot process web deployment

    suter

      Hello again everyone, I wrote yesterday  for the first time in the forum and because of the good results I write  another problem that I have come to deploy a web application.

       

      In this case the  error I get when loading a servlet specified in web.xml.

       

      The error is:

       

      14:30:31,280 ERROR [JAXWSDeployerHookPreJSE] Cannot process web deployment
      java.lang.SecurityException: sealing violation: can't seal package es.fujitsu.mdcs2.server.servlets: already loaded
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:235)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
              at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.getEndpointBeans(JAXWSDeployerHookPreJSE.java:145)

       

      As you can see the package loading is mine. Next we specified the web.xml file:

       

      <servlet>
          <servlet-name>ServletOperation</servlet-name>
          <servlet-class>es.fujitsu.mdcs2.server.servlets.OperationServletEntidad</servlet-class>
          <init-param>
            <param-name>strPathMDCSCfg</param-name>
            <param-value>/dir1/dir2/dir3/MDCS.cfg</param-value>
          </init-param>
          <load-on-startup>0</load-on-startup>
        </servlet>

       

      <servlet-mapping>
          <servlet-name>ServletOperation</servlet-name>                                                                          
          <url-pattern>/ServletOperation</url-pattern>                                                                           
        </servlet-mapping>

       

      Anyway, how are  you I have other specifications on the web.xml file and I have no  problem. Surely jboss charging, a similar class in  any of its libraries but not in what it is.

       

      Any idea or suggestion will be welcome.

       

      Thanks in advance.

        • 1. Re: Cannot process web deployment
          jaikiran
          14:30:31,280 ERROR [JAXWSDeployerHookPreJSE] Cannot process web  deployment
          java.lang.SecurityException: sealing violation: can't seal  package es.fujitsu.mdcs2.server.servlets: already loaded

          Looks like the es.fujitsu.mdcs2.server.servlets package is sealed. The exception stacktrace is trying to tell that you cannot have multiple jar files containing these sealed packages. Do you have multiple jars which contain this package?

          • 2. Re: Cannot process web deployment
            suter

            In fact if I have  that. Can I fix it somehow?

            • 3. Re: Cannot process web deployment
              suter

              Hi all, I managed to  correct the problem. I said if you what happens to  any one of you.
              The problem was in the MANIFEST.MF file of the  libraries. Jar. This file may contain a sealed property to true if you  put a security force in the compilation of packages. In this case the  property to false and we have the issue resolved.

               

              I leave the site explaining this property:

              http://java.sun.com/docs/books/tutorial/deployment/jar/sealman.html

               

              Thanks for all.