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

    Cannot process web deployment

    Javier Godoy Newbie

      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.