context-root lost in weblogic 8.1 sp5

Discussions

Web tier: servlets, JSP, Web frameworks: context-root lost in weblogic 8.1 sp5

  1. We are migrating from WLS6 to WLS 8.1 SP5. Have a war file picked up directly from WLS6 and moved to WLS 8.1SP5. here is the scenerio "http://abc.ing.com/portal/" is the URL typed in the browser and the welcome-files has "/jsp/handler.jsp" handler.jsp code has images and they are under /images under the folder called /portal and is coded as src = ../images/frontimage.gif when the url (http://abc.ing.com/portal/)is hit in WLS 6 it transforms to complete url (http://abc.ing.com/portal/jsp/handler.jsp) picking up the rest of the path to jsp from the welcome-files and the page with the images is displayed properly. When the same url is hit in WLS8.1 SP5, jsp page is displayed but the images are not picked up so we see the empty jsp page. When we see the properties for the images they are shown as http://abc.ing.com/images/frontimage.gif which is wrong where the context (/pearl) is lost. Images are looking for the context-root from the application which is lost.The url in the browser remains the same (http://abc.ing.com/portal/) Any help is appreciated.
  2. set the context root in your weblogic.xml /pearl --:)
  3. Hi, Could any one suggest me on the following problem. We are having two folders (non class folders), one under WEB-INF/classes/com/.../reports/jasper/ and other under root(/project) directory(having xml files for external interface mapping). We are generating reports from Jasper file which are at jasper directory. Deployed as exploded version it is working fine. But WAR is not working. The weblogic server is not taking jasper file. Even same for the xml file. Awaiting for early reply.... Note: Application is deployed as war file in tomcat it is working fine. ENV Details: Server : Weblogic 8.1 sp5 OS : Red hat Linux Deloyed file: project.war Thanks, Vijay
  4. Error> (DispatchAction.java :115) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at weblogic.servlet.internal.WebAppServletContext.registerEventListener( WebAppServletContext.java:2983) at weblogic.servlet.internal.WebAppServletContext.activateFromDescriptor s(WebAppServletContext.java:2523) at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServlet Context.java:6163) at weblogic.servlet.internal.WebAppServletContext.setActive(WebAppServle tContext.java:6141) at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:836 ) at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplication Container.java:3322) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai ner.java:2201) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai ner.java:2174) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask. activateContainer(SlaveDeployer.java:2520) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit( SlaveDeployer.java:2438) at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeplo yer.java:2155) at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(S laveDeployer.java:2254) at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDepl oyer.java:2149) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S laveDeployer.java:2401) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla veDeployer.java:883) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl oyer.java:591) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep loyer.java:500) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan dler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183) --------------- nested within: ------------------ weblogic.management.ManagementException: - with nested exception: [java.lang.NullPointerException] at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S laveDeployer.java:2413) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla veDeployer.java:883) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl oyer.java:591) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep loyer.java:500) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan dler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    when I say ${DOMAIN_HOME}/lib/commons-logging.jar:${DOMAIN_HOME}/lib/struts.jar:${DOMAIN_HOME}/lib/commons-digester-1.7.jar in classpath of startWebLogic.sh it works fine. But I don't want to mention the same. Please suggest me on the same... Thanks, Vijay
  5. Do places all the xml or any kind of files under a folder. Compress the folder and rename the compressed folder to folder_name.jar and keep it under your lib(lib path should be in ClassPath variable) directory.