You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Tuhin Sengupta (JIRA)" <ji...@apache.org> on 2010/07/21 20:53:50 UTC

[jira] Updated: (AXIS2-4785) AxisServlet should only load its own known classes during initialization (init)

     [ https://issues.apache.org/jira/browse/AXIS2-4785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tuhin Sengupta updated AXIS2-4785:
----------------------------------

        Summary: AxisServlet should only load its own known classes during initialization (init)  (was: AixsServlet should only load its own known classes during initialization (init))
    Description: 
When Axis2 WAR is deployed in WAS with "precompile JSPs" option, WAS precompiles the JSPs and put the generated classes in WEB-INF/classes folder. All JSP classes are created ander axis2-web folder. Whene AxisServlet get initialized, the method deployServicesInWARClassPath() under class JAXWSDeployer, tries to load all classes under WEB-INF/classes folder. When it tries to load the precompiled JSP classes, WAS throws error " java.lang.NoClassDefFoundError: axis2-web._engagingtoaservice (wrong name: com/ibm/_jsp/_engagingtoaservice) ". 

Ideally, the method deployServicesInWARClassPath() should only load Axis2's own classes only (under org folder only), not the precompiled JSP classes.

There could be another solution - just ignore the class load exception (log and ignore). In the orignal code Exception is caught, if we catch the RunTimeException (or Throwable, or NoClassDefFound ) and ignore it, it will work.



  was:
When Axis2 WAR is deployed in WAS with "precompile JSPs" option, WAS precompiles the JSPs and put the generated classes in WEB-INF/classes folder. All JSP classes are created ander axis2-web folder. Whene AxisServlet get initialized, the method deployServicesInWARClassPath() under class JAXWSDeployer, tries to load all classes under WEB-INF/classes folder. When it tries to load the precompiled JSP classes, WAS throws error " java.lang.NoClassDefFoundError: axis2-web._engagingtoaservice (wrong name: com/ibm/_jsp/_engagingtoaservice) ". 

Ideally, the method deployServicesInWARClassPath() should only load Axis2's own classes only (under org folder only), not the precompiled JSP classes.


> AxisServlet should only load its own known classes during initialization (init)
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2-4785
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4785
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.5.1
>         Environment: WebSphere 6.1.x
>            Reporter: Tuhin Sengupta
>
> When Axis2 WAR is deployed in WAS with "precompile JSPs" option, WAS precompiles the JSPs and put the generated classes in WEB-INF/classes folder. All JSP classes are created ander axis2-web folder. Whene AxisServlet get initialized, the method deployServicesInWARClassPath() under class JAXWSDeployer, tries to load all classes under WEB-INF/classes folder. When it tries to load the precompiled JSP classes, WAS throws error " java.lang.NoClassDefFoundError: axis2-web._engagingtoaservice (wrong name: com/ibm/_jsp/_engagingtoaservice) ". 
> Ideally, the method deployServicesInWARClassPath() should only load Axis2's own classes only (under org folder only), not the precompiled JSP classes.
> There could be another solution - just ignore the class load exception (log and ignore). In the orignal code Exception is caught, if we catch the RunTimeException (or Throwable, or NoClassDefFound ) and ignore it, it will work.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org