0 Replies Latest reply on Jul 21, 2005 5:58 PM by 666705

    JAVA Libraries for Deployments within server instances.

    666705
      Hello All-

      I would like to create a deployment within weblogic express. I am currently using Weblogic Express 9, as I need to leverage JDK 1.5.

      I am having a problem running a web service after my application is deployed within weblogic. My application is exploded and located under the Applications directory of weblogic. All the libraries that my web application needs are located within the WEB-INF/lib directory. Is there any way I can force web logic to use only the libraries that are located within my web-app, instead of leveraging libraries that could be already loaded in the JVM?

      I deployed my app in Tomcat 5, running the same version of the JDK 1.5, and my web service ran fine.

      Weblogic.xml
      ------
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!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>
      -----
      end of weblogic .xml

      my Exception:
      ----
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.interwoven.cssdk.factory.CSSOAPFactory.getFactory(CSSOAPFactory.j
      ava:164)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:128)

      at net.starz.thePackager.services.teamsite.Client.TestMe(Client.java:136
      )
      at net.starz.thePackager.test.TeamSiteTest.doGet(TeamSiteTest.java:63)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:184)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:118)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:282)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:175)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:2970)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:1888)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:1810)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1274)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:167)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:139)
      Caused by: java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory

      at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:8
      4)
      at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:84
      )
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory
      .java:80)
      at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java
      :72)
      at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:81)
      at org.apache.axis.client.Service.getAxisClient(Service.java:140)
      at org.apache.axis.client.Service.<init>(Service.java:149)
      at com.interwoven.cssdk.client.axis.generated.AccessServiceServiceLocato
      r.<init>(AccessServiceServiceLocator.java:10)
      at com.interwoven.cssdk.client.axis.common.AxisFactory.<init>(AxisFactor
      y.java:79)
      at com.interwoven.cssdk.client.axis.common.AxisFactory.getFactory(AxisFa
      ctory.java:173)
      ... 26 more
      The factory cannot be initialized
      Auxilarry: null
      com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initiali
      zation failed)
      at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)

      at net.starz.thePackager.services.teamsite.Client.TestMe(Client.java:136
      )
      at net.starz.thePackager.test.TeamSiteTest.doGet(TeamSiteTest.java:63)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:184)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:118)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:282)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:175)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:2970)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:1888)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:1810)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1274)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:167)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:139)
      Root cause:
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:128)

      at net.starz.thePackager.services.teamsite.Client.TestMe(Client.java:136
      )
      at net.starz.thePackager.test.TeamSiteTest.doGet(TeamSiteTest.java:63)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:184)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:118)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:282)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:175)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:2970)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:1888)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:1810)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1274)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:167)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:139)
      Caused by: com.interwoven.cssdk.factory.CSFactoryInitializationException: (Facto
      ry initialization failed)
      at com.interwoven.cssdk.factory.CSSOAPFactory.getFactory(CSSOAPFactory.j
      ava:167)
      ... 21 more
      Getting client with username btadmin, password btadmin, and role master
      <Jul 21, 2005 11:57:35 AM MDT> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.in
      ternal.WebAppServletContext@121dcac - name: 'thePackager2', context-path: '/theP
      ackager2'] Servlet failed with Exception
      java.lang.NullPointerException
      at net.starz.thePackager.services.teamsite.Client.TestMe(Client.java:167
      )
      at net.starz.thePackager.test.TeamSiteTest.doGet(TeamSiteTest.java:63)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:184)
      Truncated. see log file for complete stacktrace
      >