RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+)
In reference to your question, it looks like WLS 6.0 has changed it's classloader hierarchy to be more J2EE compliant. As a result the servlet's and the jsp's have the same classloader identified by object.class.getClassLoader(). With respect to classloaders, all seems well with WLS 6.0. However I just got it to work last night. As for WLS 5.1 spX the only hope I've found is a hack provided by Erik Pearson at the following URL. I have not attempted his suggestion. http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml -ta -Original Message- From: Magnus Petersson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 1:16 AM To: [EMAIL PROTECTED] Subject:Ang: Please Help: Struts issues in Weblogic5.1.0 (sp5+) I have encountered exactly the same problems and solved them the same way as described by Eric Pearson. This solution seems to work well as long as we run on WLS 5.1 sp6. There is another issue though. In WLS 5.1 sp8 the load-on-startup tag in the deployment descriptor has been fixed and works as it should. This sounds nice at first but the problem is that this causes the servlets to be loaded before the jsps and therefor loaded by the wrong classloader. In other words, Struts does not work with sp 6. If anyone has a solution to this problem I would really appreciate to hear about it. I would also like to hear about experience running Struts on WLS 6.0. Has anyone had any problems? Greetings Magnus Petersson Snd svar till [EMAIL PROTECTED] Till: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] org Kopia: rende: Please Help: Struts issues in Weblogic5.1.0 (sp5+) I am new to struts and find it a very exciting and powerful solution which I would like to implement into all our solutions. After implementing a small sample application, I have encountered the dreaded ClassCastException and am trying to understand it's cause and appropriate solution. After navigating through past postings I have found the following website by Erik Pearson. http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml On this site he goes into an explanation of the cause and a description of what seems to be the only solution. 1) Could someone please validate this solution? 2) Is there an alternative solution for avoiding this classloader problem? 3) I read that the root cause of this issue is the fact that Weblogic 5.1.0 is not 100% J2EE compliant. If this is true would using Weblogic 6.0, which is J2EE compliant resolve this issue? a. What new issues could arise? Solutions? I would very much appreciate guidance in this matter, -ta
RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+)
I don't know the solutions of getting struts to run on WL 5.1 but it seems to work fine on WL 6.0 -Original Message- From: Anderson, Trey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 10:20 AM To: '[EMAIL PROTECTED]' Subject: Please Help: Struts issues in Weblogic5.1.0 (sp5+) I am new to struts and find it a very exciting and powerful solution which I would like to implement into all our solutions. After implementing a small sample application, I have encountered the dreaded ClassCastException and am trying to understand it's cause and appropriate solution. After navigating through past postings I have found the following website by Erik Pearson. http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml On this site he goes into an explanation of the cause and a description of what seems to be the only solution. 1) Could someone please validate this solution? 2) Is there an alternative solution for avoiding this classloader problem? 3) I read that the root cause of this issue is the fact that Weblogic 5.1.0 is not 100% J2EE compliant. If this is true would using Weblogic 6.0, which is J2EE compliant resolve this issue? a. What new issues could arise? Solutions? I would very much appreciate guidance in this matter, -ta
RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+)
Thanks for the quick response. I hope the following is the info you are looking for. Please advise if this isn't sufficient. My test application is configured as a web app (war file) setup as below: weblogic.httpd.webApp.test=D:/Java/Work/WAR_Dir weblogic.httpd.webApp.defaultWebApp=D:/Java/Work/WAR_Dir I am using Xerces 1.2.3 The struts.jar is located in the D:\Java\Work\WAR_Dir\WEB-INF\lib directory. The Weblogic start script is as follows: set OLD_PATH=%PATH% if NOT DEFINED JDK_HOME ( echo ... echo JDK_HOME not set. Using default location of D:\java\jdk1.2.2 set JDK_HOME=D:\java\jdk1.2.2 ) if NOT DEFINED ZIPS_JAVA_OPTIONS ( echo ... echo ZIPS_JAVA_OPTIONS not set. Using default location of -ms64m -mx128m -verbosegc -noclassgc set ZIPS_JAVA_OPTIONS= -ms64m -mx128m -verbosegc -noclassgc ) set WL_HOME=.. SET ZILLIANT_HOME=d:\java\zilliant SET ZIPS_HOME=d:\java\zips SET ESP_HOME=d:\java\espresschart set XML_HOME=d:\java\xml SET PATH=%JAVA_HOME%\jdk1.2.2\bin;c:\;%WL_HOME%\bin;%path% SET JAVACLASSPATH=%WL_HOME%\service_packs\weblogic510sp6boot.jar;%WL_HOME%\classes\boot SET WEBLOGIC_CLASSES=%WL_HOME%\service_packs\weblogic510sp6.jar;%WL_HOME%\classes;%WL_HOME%\lib\weblogicaux.jar;%WL_HOME%\li cense;%WL_HOME%\persistence\WebLogic_RDBMS.jar SET ZWEB_CLASSES=.;%WL_HOME%\lib\xerces.jar;%WL_HOME%\global_machine_props;%WL_HOME%\license;%WL_HOME%\lib\weblogicaux.jar;% WL_HOME%\classes;%ZILLIANT_HOME%\imports\tools_client.jar;%ZILLIANT_HOME%\imports\security.jar;%ZILLIANT_HOME%\resources ;%ZILLIANT_HOME%\imports\log.jar;%ESP_HOME%\lib\EspressAPI.jar;%WL_HOME%\mssqlserver4\classes;%XML_HOME%\xml4j.jar SET MY_SYSTEM_NAME=zweb %JAVA_HOME%\bin\java -ms256m -mx256m -classpath %JAVACLASSPATH% -Dweblogic.class.path=%WEBLOGIC_CLASSES%;%ZWEB_CLASSES% -Dweblogic.system.name=%MY_SYSTEM_NAME% -Djava.security.manager -Djava.security.policy==%WL_HOME%\weblogic.policy -Dweblogic.system.home=%WL_HOME% weblogic.Server set PATH=%OLD_PATH% set JAVACLASSPATH= set WEBLOGIC_HOME= set WEBLOGIC_CLASSES= set ZWEB_CLASSES= set MY_SYSTEM_NAME= -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 1:27 PM To: [EMAIL PROTECTED] Subject:RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+) Can you give the details of your configuration. Where is struts.jar located? Which version of the JAXP parser are you using? I got struts-0.5 working with WebLogic 5.1 sp6. --Abraham -Original Message- From: Anderson, Trey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 10:20 AM To: '[EMAIL PROTECTED]' Subject: Please Help: Struts issues in Weblogic5.1.0 (sp5+) I am new to struts and find it a very exciting and powerful solution which I would like to implement into all our solutions. After implementing a small sample application, I have encountered the dreaded ClassCastException and am trying to understand it's cause and appropriate solution. After navigating through past postings I have found the following website by Erik Pearson. http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml On this site he goes into an explanation of the cause and a description of what seems to be the only solution. 1) Could someone please validate this solution? 2) Is there an alternative solution for avoiding this classloader problem? 3) I read that the root cause of this issue is the fact that Weblogic 5.1.0 is not 100% J2EE compliant. If this is true would using Weblogic 6.0, which is J2EE compliant resolve this issue? a. What new issues could arise? Solutions? I would very much appreciate guidance in this matter, -ta
RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+)
I took a look and saw no struts.jar file outside of a lib or _deployment_dir of a web app. The start.cmd file of weblogic doesn't point to any dir that contains a struts.jar file and the Weblogic.properties file only contains the one web app config. Is the point that the files being loaded by a classloader higher up the hierarchy than the webapp classloader in Weblogic? What do you think? Thanks Again, -ta -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 2:57 PM To: Anderson, Trey Subject:RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+) Do you have struts.jar anywhere in the classpath of the system or user defined variables? Struts.jar should only be the classes directory of the webApp. This solved the ClassCast issues for us. --Abraham -Original Message- From: Anderson, Trey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 12:08 PM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+) Thanks for the quick response. I hope the following is the info you are looking for. Please advise if this isn't sufficient. My test application is configured as a web app (war file) setup as below: weblogic.httpd.webApp.test=D:/Java/Work/WAR_Dir weblogic.httpd.webApp.defaultWebApp=D:/Java/Work/WAR_Dir I am using Xerces 1.2.3 The struts.jar is located in the D:\Java\Work\WAR_Dir\WEB-INF\lib directory. The Weblogic start script is as follows: set OLD_PATH=%PATH% if NOT DEFINED JDK_HOME ( echo ... echo JDK_HOME not set. Using default location of D:\java\jdk1.2.2 set JDK_HOME=D:\java\jdk1.2.2 ) if NOT DEFINED ZIPS_JAVA_OPTIONS ( echo ... echo ZIPS_JAVA_OPTIONS not set. Using default location of -ms64m -mx128m -verbosegc -noclassgc set ZIPS_JAVA_OPTIONS= -ms64m -mx128m -verbosegc -noclassgc ) set WL_HOME=.. SET ZILLIANT_HOME=d:\java\zilliant SET ZIPS_HOME=d:\java\zips SET ESP_HOME=d:\java\espresschart set XML_HOME=d:\java\xml SET PATH=%JAVA_HOME%\jdk1.2.2\bin;c:\;%WL_HOME%\bin;%path% SET JAVACLASSPATH=%WL_HOME%\service_packs\weblogic510sp6boot.jar;%WL_H OME%\classes\boot SET WEBLOGIC_CLASSES=%WL_HOME%\service_packs\weblogic510sp6.jar;%WL_HO ME%\classes;%WL_HOME%\lib\weblogicaux.jar;%WL_HOME%\li cense;%WL_HOME%\persistence\WebLogic_RDBMS.jar SET ZWEB_CLASSES=.;%WL_HOME%\lib\xerces.jar;%WL_HOME%\global_machine_p rops;%WL_HOME%\license;%WL_HOME%\lib\weblogicaux.jar;% WL_HOME%\classes;%ZILLIANT_HOME%\imports\tools_client.jar;%ZILLIAN T_HOME%\imports\security.jar;%ZILLIANT_HOME%\resources ;%ZILLIANT_HOME%\imports\log.jar;%ESP_HOME%\lib\EspressAPI.jar;%WL _HOME%\mssqlserver4\classes;%XML_HOME%\xml4j.jar SET MY_SYSTEM_NAME=zweb %JAVA_HOME%\bin\java -ms256m -mx256m -classpath %JAVACLASSPATH% -Dweblogic.class.path=%WEBLOGIC_CLASSES%;%ZWEB_CLASSES% -Dweblogic.system.name=%MY_SYSTEM_NAME% -Djava.security.manager -Djava.security.policy==%WL_HOME%\weblogic.policy -Dweblogic.system.home=%WL_HOME% weblogic.Server set PATH=%OLD_PATH% set JAVACLASSPATH= set WEBLOGIC_HOME= set WEBLOGIC_CLASSES= set ZWEB_CLASSES= set MY_SYSTEM_NAME= -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 1:27 PM To: [EMAIL PROTECTED] Subject: RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+) Can you give the details of your configuration. Where is struts.jar located? Which version of the JAXP parser are you using? I got struts-0.5 working with WebLogic 5.1 sp6. --Abraham -Original Message- From: Anderson, Trey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 10:20 AM To: '[EMAIL PROTECTED]' Subject: Please Help: Struts issues in Weblogic5.1.0 (sp5+) I am new to struts and find it a very exciting and powerful solution which I would like to implement into all our solutions. After implementing a small sample application, I have encountered the dreaded ClassCastException and am trying to understand it's cause and appropriate solution. After navigating through past postings I have found the following website by Erik Pearson. http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml On this site he goes into an explanation of the cause and a description of what seems to be the only solution. 1)Could someone please validate this solution? 2)Is there an alternative solution for avoiding this classloader problem? 3)I read that the root cause of this issue is the fact that Weblogic 5.1.0 is not 100% J2EE compliant. If this is true would using Weblogic 6.0, which is J2EE compliant resolve this issue? a.What new issues could arise? Solutions? I would very much appreciate guidance in this matter, -ta