axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Ferraro <mike_ferr...@harvard.edu>
Subject [AXIS2] Weblogic 8.1 ClassLoader problem?
Date Thu, 21 Jun 2007 20:52:23 GMT
Hello,

I have deployed Axis2 to Weblogic 8.1 (we are still on SP2) in the exploded
format and I have included a weblogic.xml file in the WEB-INF directory that
looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC
  "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
  "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
  <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
  </container-descriptor>
</weblogic-web-app>

I just deployed a packaged aar service file containing a group of services to
the axis2/WEB-INF/services directory.  The services have a ServiceLifeCycle
class that is attempting to preload some configuration files.

I successfully deployed the StockQuoteService.aar sample, but when I try to
deploy my services I get the exception below.  I have all of the necessary
libraries packaged in my aar file in the lib directory.  I have tried deploying
with the Xerces and Xalan jar files included in my aar lib directory and also
tried deploying without them.  I get the same results in both cases.  Any help
would be much appreciated.

-Mike

Jun 21, 2007 4:26:47 PM org.apache.axis2.deployment.ModuleDeployer deploy
INFO: Deploying module: addressing-1.2
Jun 21, 2007 4:26:47 PM org.apache.axis2.deployment.ModuleDeployer deploy
INFO: Deploying module: soapmonitor-1.2
[JAM] Warning: You are running under a pre-1.5 JDK.  JSR175-style source
annotations will not be available
Jun 21, 2007 4:26:48 PM org.apache.axis2.deployment.ServiceDeployer deploy
INFO: Deploying Web service: version.aar
Jun 21, 2007 4:26:48 PM org.apache.axis2.deployment.ServiceDeployer deploy
INFO: Deploying Web service: StockQuoteService.aar
Jun 21, 2007 4:26:51 PM edu.harvard.cait.cdws.services.CDWSServiceLifeCycle
startUp
INFO:
Jun 21, 2007 4:26:51 PM edu.harvard.cait.cdws.services.CDWSServiceLifeCycle
startUp
INFO: Initializing configuration...
Jun 21, 2007 4:26:51 PM edu.harvard.cait.cdws.services.CDWSServiceLifeCycle
startUp
INFO:
Jun 21, 2007 4:26:52 PM org.apache.axis2.deployment.ServiceDeployer deploy
INFO: The cdws.aar service, which is not valid, caused java.lang.LinkageError:
Class org/xml/sax/InputSource violates loader constraints
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476)
        at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181)
        at
weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
        at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:46)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1666)
        at
org.apache.commons.configuration.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:165)
        at edu.harvard.itis.util.ConfigurationManager.loadConfiguration(Unknown
Source)
        at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
        at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
        at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
        at edu.harvard.cait.cdws.services.CDWSServiceLifeCycle.startUp(Unknown
Source)
        at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:454)
        at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:176)
        at
org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:98)
        at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:106)
        at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:140)
        at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:79)
        at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:582)
        at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:201)
        at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:271)
        at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:189)
        at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:110)
        at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:257)
        at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74)
        at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:486)
        at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:406)
        at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
        at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
        at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
        at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
        at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
        at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3197)
        at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)
        at
weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5647)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
        at
weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2022)
        at
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2063)
        at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2592)
        at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2515)
        at
weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2317)
        at
weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2399)
        at
weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2311)
        at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2479)
        at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
        at
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
        at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
        at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

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


Mime
View raw message