RE: NoClassDefFound Error in weblogic
Thanks everyone so much for the quick responses. Turns out that it was very simple, and I had a jar in the weblogic classpath that was trying to make use of struts. thanks Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:54 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
I am now getting the dreaded ClassCastException. This again only occurs when the webapps is unpacked. Any solutions besides putting struts.jar in the weblogic classpath? Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:54 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
There is a patch for wls 5.1 sp8. Search for in on the struts mailing list. wls 5.1 conflicts with struts. -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 6:27 AM To: Struts Users Mailing List Subject: RE: NoClassDefFound Error in weblogic I am now getting the dreaded ClassCastException. This again only occurs when the webapps is unpacked. Any solutions besides putting struts.jar in the weblogic classpath? Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:54 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
I tried this but I am still getting the class cast exception. Any other ideas. Will service pack 10/11 do this trick? I didn't see anything in their decriptions in the weblogic site that would indicate this. Jeremy -Original Message- From: Kiet Nguyen [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 9:35 AM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic There is a patch for wls 5.1 sp8. Search for in on the struts mailing list. wls 5.1 conflicts with struts. -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 6:27 AM To: Struts Users Mailing List Subject: RE: NoClassDefFound Error in weblogic I am now getting the dreaded ClassCastException. This again only occurs when the webapps is unpacked. Any solutions besides putting struts.jar in the weblogic classpath? Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:54 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
NoClassDefFound Error in weblogic
Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy
RE: NoClassDefFound Error in weblogic
Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
check for jar files in $WLS_DIR\myserver\web-inf\_tmp_war_yourApp . if u find jar files in that folder it means jar files are loades and in WEBLOGIC_CLASSPATH, still u have problems use atleast SP10 (SP11) is also available Narendranatha R Sajjala, 1800flowers.com Ph:516-237-4881 -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
As I understand it, this directory will only be created if the webapps is a war file. If the webapp is unpacked this directory will not exist. Jeremy -Original Message- From: Narendranatha R Sajjala [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:31 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic check for jar files in $WLS_DIR\myserver\web-inf\_tmp_war_yourApp . if u find jar files in that folder it means jar files are loades and in WEBLOGIC_CLASSPATH, still u have problems use atleast SP10 (SP11) is also available Narendranatha R Sajjala, 1800flowers.com Ph:516-237-4881 -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
We had something similar here. WL 6.0 doesn't support external jars - this is apparently available in 6.1 (we haven't migrated yet). Try putting the jars in the WL classpath as well as in the /lib directory. - JKL -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
Yeah - putting them in the weblogic classpath will definately work. However, I need to distribute this app, so it is not an option. Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:49 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic We had something similar here. WL 6.0 doesn't support external jars - this is apparently available in 6.1 (we haven't migrated yet). Try putting the jars in the WL classpath as well as in the /lib directory. - JKL -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
There's a comment to that effect on the Struts Kickstart FAQ: http://jakarta.apache.org/struts/userGuide/kickstart.html#jar regards, Rob. -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
Jeremy, This problem can happen if you have left some other jar in the system classpath (the weblogic classpath) that calls struts. The classloader order is that the webapp classloader depends on the system classloader. Thus if a class is not found in the webapp classloader, the system classloader gets asked for it. But the other way round is not true : if a class is loaded from the system classloader and then this class uses struts (or indirectly uses some other class that uses struts), then the system classloader has no visibility of the webapp classloader and will throw a NoClassDefFoundError. In order to prevent this make sure you have nothing at all in your CLASSPATH environment variable nor in the weblogic classpath. The other possibility is that your application requires a jar (not struts jar) that it cannot find. It happens that the webapp classloader reports an error when loading a struts jar but actually it is not true ... What happens is that the webapp classloader chooses this time to check class dependencies and does not find a class, which is why it throws a NoClassDefFoundError and not a ClassNotFoundException BTW (or something like this - I'll let someone else, Craig ?, explain that better than me). I have had this issue with Tomcat but I don't know how the WL webapp classloader works. Not sure if it helps but at least it may give you some ideas ... :-) -Vincent -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: 03 January 2002 21:16 To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]