context-root lost in weblogic 8.1 sp5


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 "" 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 ( hit in WLS 6 it transforms to complete url ( 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 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 ( 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> ( :115) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC at java.lang.reflect.Constructor.newInstance( at java.lang.Class.newInstance0( at java.lang.Class.newInstance( at weblogic.servlet.internal.WebAppServletContext.registerEventListener( at weblogic.servlet.internal.WebAppServletContext.activateFromDescriptor s( at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServlet at weblogic.servlet.internal.WebAppServletContext.setActive(WebAppServle at weblogic.servlet.internal.WebAppModule.activate( ) at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplication at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai at$ComponentActivateTask. activateContainer( at$ActivateTask.doCommit( at$Task.commit(SlaveDeplo at$Task.checkAutoCommit(S at$Task.prepare(SlaveDepl at$ActivateTask.prepare(S at at at at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan at weblogic.kernel.ExecuteThread.execute( at --------------- nested within: ------------------ - with nested exception: [java.lang.NullPointerException] at$ActivateTask.prepare(S at at at at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan at weblogic.kernel.ExecuteThread.execute( at
    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 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.