You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jason Etherton <je...@astro.livjm.ac.uk> on 2004/08/18 13:07:15 UTC
Sun Java System Application Server Platform Edition 8
Folks,
I have just created a war of the axis 1.1 distribution plus xmlsec:
0 Tue Aug 17 00:10:06 BST 2004 META-INF/
45 Tue Aug 17 00:10:06 BST 2004 META-INF/MANIFEST.MF
4853 Tue Aug 17 00:05:28 BST 2004 EchoHeaders.jws
9848 Tue Aug 17 00:05:28 BST 2004 fingerprint.jsp
18120 Tue Aug 17 00:05:30 BST 2004 happyaxis.jsp
1666 Tue Aug 17 00:05:30 BST 2004 index.html
60238 Tue Aug 17 00:05:32 BST 2004 SOAPMonitorApplet.java
4019 Tue Aug 17 00:05:32 BST 2004 StockQuoteService.jws
0 Tue Aug 17 15:03:48 BST 2004 WEB-INF/
0 Tue Aug 17 00:04:46 BST 2004 WEB-INF/classes/
0 Tue Aug 17 00:10:04 BST 2004 WEB-INF/lib/
1235721 Tue Aug 17 00:06:44 BST 2004 WEB-INF/lib/axis.jar
71442 Tue Aug 17 00:08:48 BST 2004 WEB-INF/lib/commons-discovery.jar
352668 Tue Aug 17 00:08:54 BST 2004 WEB-INF/lib/log4j-1.2.8.jar
279215 Tue Aug 17 00:09:12 BST 2004 WEB-INF/lib/xmlsec.jar
113853 Tue Aug 17 00:10:04 BST 2004 WEB-INF/lib/wsdl4j.jar
34 Tue Aug 17 15:04:00 BST 2004 WEB-INF/users.lst
2529 Tue Aug 17 15:04:00 BST 2004 WEB-INF/web.xml
0 Tue Aug 17 15:03:48 BST 2004 WEB-INF/attachments/
And deployed to the Sun Java System Application Server Platform Edition
8.0.0_01 (build b08-fcs), where the happyaxis.jsp page complained:
*Error*: could not find a dependency of class
org.apache.axis.transport.http.AxisServlet from file *axis.jar*
Axis will not work
See http://xml.apache.org/axis/
The root cause was: null
This can happen e.g. if org.apache.axis.transport.http.AxisServlet is in
the 'common' classpath, but a dependency like activation.jar is only in
the webapp classpath.
So I removed all jars from WEB-INF/lib, and linked them in
/opt/SUNWappserver/lib so they are all in the common CLASSPATH,
re-'war'ed and re-deployed. happyaxis.jsp is now ecstatic, but when I
try to view a list of endpoints I get:
HTTP Status 500 -
------------------------------------------------------------------------
*type* Exception report
*message*
*description* _The server encountered an internal error () that
prevented it from fulfilling this request._
*exception*
javax.servlet.ServletException: Servlet.init() for servlet AxisServlet threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:272)
com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
java.lang.Thread.run(Thread.java:534)
*root cause*
java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
java.security.AccessController.checkPermission(AccessController.java:401)
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
java.lang.ClassLoader.getParent(ClassLoader.java:1034)
org.apache.commons.discovery.tools.ManagedProperties$1.run(ManagedProperties.java:372)
java.security.AccessController.doPrivileged(Native Method)
org.apache.commons.discovery.tools.ManagedProperties.getParent(ManagedProperties.java:370)
org.apache.commons.discovery.tools.ManagedProperties.getValueProperty(ManagedProperties.java:343)
org.apache.commons.discovery.tools.ManagedProperties.getValueProperty(ManagedProperties.java:343)
org.apache.commons.discovery.tools.ManagedProperties.getValueProperty(ManagedProperties.java:343)
org.apache.commons.discovery.tools.ManagedProperties.getValueProperty(ManagedProperties.java:343)
org.apache.commons.discovery.tools.ManagedProperties.getProperty(ManagedProperties.java:159)
org.apache.commons.discovery.tools.ManagedProperties.getProperty(ManagedProperties.java:134)
org.apache.axis.AxisProperties.getProperty(AxisProperties.java:242)
org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:400)
org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:148)
org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:168)
javax.servlet.GenericServlet.init(GenericServlet.java:261)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:272)
com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
java.lang.Thread.run(Thread.java:534)
What's more confusing is that when all the jars are in the webapp
classpath the happyaxis page doesn't work, even if they are all ALSO in
the server common (/opt/SUNWappserver/lib) location.
Has anyone successfully deployed Axis and their own Axis-based webapps
to the Sun Webapp 8 server? Help me.
Also, if I am including packages that the Sun server has already
(Axis/security/messaging/logging etc.) and the duplication is what is
buggering up the server would someone please tell me?
Many thanks,
Jason