RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
Title: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts Struts with Weblogic 5.1 SP8 on NT or Unix (Linux or Solaris) can be set up as follows: 1. Make sure that struts.jar is NOT in your classpath or your JRE ext directory. 2. Copy struts.jar to the WEB-INF/lib directory of your web app. 3. Add the following to your web.xml: weblogic.jsp.precompile true 4. Make sure that the load order for the servlets defined in web.xml is set. IE: . . (other stuff here) . 2 Hope this helps, Brett >> -Original Message- >> From: Brian Knorr [mailto:[EMAIL PROTECTED]] >> Sent: Monday, April 09, 2001 8:08 PM >> To: [EMAIL PROTECTED] >> Subject: RE: Problems in setting up Weblogic5.1 + SP8 + >> Jakarta-Struts >> >> >> My experience with WLS 5.1 sp8 has been very tiresome... >> many days of trial and error getting it to work with struts >> (and yes I followed the directions on the struts page for >> wls sp8 -- maybe this works on Windows but definitely not on >> unix)... >> >> Anyway -- the only way to get around the issue you are >> encountering is to take out the following line in your web.xml: >> >> 1 >> >> Now as a consequence of doing this you will need to follow >> these two steps every time you restart your weblogic instance: >> >> 1. Load a jsp page through your browser before doing >> anything else (especially a post). This fixes the >> classloader problem with weblogic 5.1. >> 2. Next, load the ActionServlet by posting to an action >> class. This will also load your application.properties. >> >> >> Also I found with this fix you don't have to set the WL >> classpath as it is stated in the instructions. >> >> Hope this helps... >> >> --Brian >> >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED]] >> Sent: Monday, April 09, 2001 1:58 PM >> To: [EMAIL PROTECTED] >> Subject: RE: Problems in setting up Weblogic5.1 + SP8 + >> Jakarta-Struts >> >> >> >> This is the error you will see when WL can't find the >> properties file. You >> are positive that the properties file is in the proper >> directory? Also you >> must restart WL after you copy the file. >> >> If this still doesn't work then I am sorry I don't have any other >> suggestions for deploying in the WAR :( However, another >> option is to >> expand the WAR file and set the WL classpath- see the instructions. >> >> -Bob >> >> >> -Original Message- >> From: Lu, Wei [mailto:[EMAIL PROTECTED]] >> Sent: Monday, April 09, 2001 2:19 PM >> To: '[EMAIL PROTECTED]' >> Subject: RE: Problems in setting up Weblogic5.1 + SP8 + >> Jakarta-Struts >> >> >> >> Thank you very much ofr your response. >> >> The class package reads org.apache.struts.example. So I opened the >> struts-example.war file and copied >> ApplicationResources.properties and >> appended in the folder "example". However, I still got the >> enclosed >> error message. Thank you for help. Wei Lu >> >> Mon Apr 09 14:14:31 EDT 2001: >> *.jsp: >> param wo >> rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war >> Mon Apr 09 14:14:31 EDT 2001: >> *.jsp: >> param pa >> geCheckSeconds initialized to: 1 >> Mon Apr 09 14:14:31 EDT 2001: >> *.jsp: >> initiali >> zation complete >> Mon Apr 09 14:14:31 EDT 2001: >> *.jsp: >> ## >> >> >> ## >> pageCheckSeconds over-ruled in JSPServlet to : 1 >> ## >> >> >> ## >> >> Mon Apr 09 14:14:32 EDT 2001: >> Servlet >> failed >> with Exception >> javax.servlet.ServletException: runtime failure in custom tag 'html' >> at jsp_servlet._index._jspService(_index.java:449) >> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) >> at >> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm >> pl.java:105) >> at >> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm >> pl.java:123) >> at >> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon >> textImpl.java:742) >> at >>
(Clarification) RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
Just wanted to clarify a couple of things... You must remove the tag from under the "Action Servlet Configuration" section of your web.xml. Also... the struts-example will still not work as I described below, because every jsp page in this example requires the application.properties to be loaded already by the action servlet. But you can't load the action servlet first, you must hit a jsp. I wouldn't worry about getting the example to work, just forge ahead... but if you really truely desire to get the example working, just unwar the stuts-example (don't forget to update your weblogic.properties -- it's not a .war anymore) and add your own test.jsp page (doesn't even need any content) under the strut-example directory. Load test.jsp in your browser, then load the action servlet by submiting to the action path "logoff.do". Example: "http://[SERVER_NAME]:PORT/struts-example/test.jsp "http://[SERVER_NAME]:PORT/struts-example/logoff.do Thanks, Brian -Original Message- From: Brian Knorr Sent: Monday, April 09, 2001 7:08 PM To: [EMAIL PROTECTED] Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts My experience with WLS 5.1 sp8 has been very tiresome... many days of trial and error getting it to work with struts (and yes I followed the directions on the struts page for wls sp8 -- maybe this works on Windows but definitely not on unix)... Anyway -- the only way to get around the issue you are encountering is to take out the following line in your web.xml: 1 Now as a consequence of doing this you will need to follow these two steps every time you restart your weblogic instance: 1. Load a jsp page through your browser before doing anything else (especially a post). This fixes the classloader problem with weblogic 5.1. 2. Next, load the ActionServlet by posting to an action class. This will also load your application.properties. Also I found with this fix you don't have to set the WL classpath as it is stated in the instructions. Hope this helps... --Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 1:58 PM To: [EMAIL PROTECTED] Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts This is the error you will see when WL can't find the properties file. You are positive that the properties file is in the proper directory? Also you must restart WL after you copy the file. If this still doesn't work then I am sorry I don't have any other suggestions for deploying in the WAR :( However, another option is to expand the WAR file and set the WL classpath- see the instructions. -Bob -Original Message- From: Lu, Wei [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 2:19 PM To: '[EMAIL PROTECTED]' Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts Thank you very much ofr your response. The class package reads org.apache.struts.example. So I opened the struts-example.war file and copied ApplicationResources.properties and appended in the folder "example". However, I still got the enclosed error message. Thank you for help. Wei Lu Mon Apr 09 14:14:31 EDT 2001: *.jsp: param wo rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war Mon Apr 09 14:14:31 EDT 2001: *.jsp: param pa geCheckSeconds initialized to: 1 Mon Apr 09 14:14:31 EDT 2001: *.jsp: initiali zation complete Mon Apr 09 14:14:31 EDT 2001: *.jsp: ## ## pageCheckSeconds over-ruled in JSPServlet to : 1 ## ## Mon Apr 09 14:14:32 EDT 2001: Servlet failed with Exception javax.servlet.ServletException: runtime failure in custom tag 'html' at jsp_servlet._index._jspService(_index.java:449) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) Mon Apr 09 14:14:32 EDT 2001: root cause of S ervletException javax.servlet.ServletException: runtime failure in custom tag 'message' at jsp_servlet._index._jspService(_index.java:105) at weblogic.servlet.jsp.JspBase.service(JspBas
RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
My experience with WLS 5.1 sp8 has been very tiresome... many days of trial and error getting it to work with struts (and yes I followed the directions on the struts page for wls sp8 -- maybe this works on Windows but definitely not on unix)... Anyway -- the only way to get around the issue you are encountering is to take out the following line in your web.xml: 1 Now as a consequence of doing this you will need to follow these two steps every time you restart your weblogic instance: 1. Load a jsp page through your browser before doing anything else (especially a post). This fixes the classloader problem with weblogic 5.1. 2. Next, load the ActionServlet by posting to an action class. This will also load your application.properties. Also I found with this fix you don't have to set the WL classpath as it is stated in the instructions. Hope this helps... --Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 1:58 PM To: [EMAIL PROTECTED] Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts This is the error you will see when WL can't find the properties file. You are positive that the properties file is in the proper directory? Also you must restart WL after you copy the file. If this still doesn't work then I am sorry I don't have any other suggestions for deploying in the WAR :( However, another option is to expand the WAR file and set the WL classpath- see the instructions. -Bob -Original Message- From: Lu, Wei [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 2:19 PM To: '[EMAIL PROTECTED]' Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts Thank you very much ofr your response. The class package reads org.apache.struts.example. So I opened the struts-example.war file and copied ApplicationResources.properties and appended in the folder "example". However, I still got the enclosed error message. Thank you for help. Wei Lu Mon Apr 09 14:14:31 EDT 2001: *.jsp: param wo rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war Mon Apr 09 14:14:31 EDT 2001: *.jsp: param pa geCheckSeconds initialized to: 1 Mon Apr 09 14:14:31 EDT 2001: *.jsp: initiali zation complete Mon Apr 09 14:14:31 EDT 2001: *.jsp: ## ## pageCheckSeconds over-ruled in JSPServlet to : 1 ## ## Mon Apr 09 14:14:32 EDT 2001: Servlet failed with Exception javax.servlet.ServletException: runtime failure in custom tag 'html' at jsp_servlet._index._jspService(_index.java:449) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) Mon Apr 09 14:14:32 EDT 2001: root cause of S ervletException javax.servlet.ServletException: runtime failure in custom tag 'message' at jsp_servlet._index._jspService(_index.java:105) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
This is the error you will see when WL can't find the properties file. You are positive that the properties file is in the proper directory? Also you must restart WL after you copy the file. If this still doesn't work then I am sorry I don't have any other suggestions for deploying in the WAR :( However, another option is to expand the WAR file and set the WL classpath- see the instructions. -Bob -Original Message- From: Lu, Wei [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 2:19 PM To: '[EMAIL PROTECTED]' Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts Thank you very much ofr your response. The class package reads org.apache.struts.example. So I opened the struts-example.war file and copied ApplicationResources.properties and appended in the folder "example". However, I still got the enclosed error message. Thank you for help. Wei Lu Mon Apr 09 14:14:31 EDT 2001: *.jsp: param wo rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war Mon Apr 09 14:14:31 EDT 2001: *.jsp: param pa geCheckSeconds initialized to: 1 Mon Apr 09 14:14:31 EDT 2001: *.jsp: initiali zation complete Mon Apr 09 14:14:31 EDT 2001: *.jsp: ## ## pageCheckSeconds over-ruled in JSPServlet to : 1 ## ## Mon Apr 09 14:14:32 EDT 2001: Servlet failed with Exception javax.servlet.ServletException: runtime failure in custom tag 'html' at jsp_servlet._index._jspService(_index.java:449) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) Mon Apr 09 14:14:32 EDT 2001: root cause of S ervletException javax.servlet.ServletException: runtime failure in custom tag 'message' at jsp_servlet._index._jspService(_index.java:105) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
Thank you very much ofr your response. The class package reads org.apache.struts.example. So I opened the struts-example.war file and copied ApplicationResources.properties and appended in the folder "example". However, I still got the enclosed error message. Thank you for help. Wei Lu Mon Apr 09 14:14:31 EDT 2001: *.jsp: param wo rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war Mon Apr 09 14:14:31 EDT 2001: *.jsp: param pa geCheckSeconds initialized to: 1 Mon Apr 09 14:14:31 EDT 2001: *.jsp: initiali zation complete Mon Apr 09 14:14:31 EDT 2001: *.jsp: ## ## pageCheckSeconds over-ruled in JSPServlet to : 1 ## ## Mon Apr 09 14:14:32 EDT 2001: Servlet failed with Exception javax.servlet.ServletException: runtime failure in custom tag 'html' at jsp_servlet._index._jspService(_index.java:449) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) Mon Apr 09 14:14:32 EDT 2001: root cause of S ervletException javax.servlet.ServletException: runtime failure in custom tag 'message' at jsp_servlet._index._jspService(_index.java:105) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
What's the error that you are getting? > -Original Message- > From: Lu, Wei [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 09, 2001 1:08 PM > To: '[EMAIL PROTECTED]' > Subject: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts > > > Hello, > > I got in trouble in setting up Weblogic5.1 + SP8 + Jakarta-Struts. I > followed the instruction > in the INSTALL file and tried to deploy struts-example.war. > But I failed. > Could anybody tell me where I should put > that ApplicationResources.properties file? The INSTALL file > said it should > be at C:\jakart-struts\webapps\WEB-INF\_tem_war, > but it seems to be not to work. > > Thank you. > > Wei Lu >
RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
This was just an example (specific to where I installed Struts), the path will most likely be different on your machine. You will need to see where WL creates the temp directory for the application and then copy the properties file to this location. The properties file must also be placed in the appropriate directory structure (corresponding to the full package name). -Original Message- From: Lu, Wei [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 1:08 PM To: '[EMAIL PROTECTED]' Subject: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts Hello, I got in trouble in setting up Weblogic5.1 + SP8 + Jakarta-Struts. I followed the instruction in the INSTALL file and tried to deploy struts-example.war. But I failed. Could anybody tell me where I should put that ApplicationResources.properties file? The INSTALL file said it should be at C:\jakart-struts\webapps\WEB-INF\_tem_war, but it seems to be not to work. Thank you. Wei Lu
RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
Hello, In the jakarta website there is information about deploying struts applications on weblogic. Follow the instructions and you will achieve success. I know this from experience :) cheers, Amar.. -Original Message- From: Lu, Wei [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 1:08 PM To: '[EMAIL PROTECTED]' Subject: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts Hello, I got in trouble in setting up Weblogic5.1 + SP8 + Jakarta-Struts. I followed the instruction in the INSTALL file and tried to deploy struts-example.war. But I failed. Could anybody tell me where I should put that ApplicationResources.properties file? The INSTALL file said it should be at C:\jakart-struts\webapps\WEB-INF\_tem_war, but it seems to be not to work. Thank you. Wei Lu