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]
Re: JavaScript error messages.
Greg, Spend a good deal of time looking at this problem and you will discover that your problem is related to how you have the ApplicationResources.properties file located in your application. I am using Weblogic 6.1 and VisualCafe 4.5.1 Once I moved the properties file to my WEB-INF/classes directory the JavaScript error messages and all other messages worked fine. BTW: It appears that there is a typo in the Struts User Guide..excerpt below. The 'html:message' tags should be 'bean:message'. I couldn't get my app to find message in html only in the bean taglib. Hope this helps... %@ page language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html:html head title bean:message key=logon.title/ /title body bgcolor=white html:errors/ html:form action=/logon focus=username table border=0 width=100% tr th align=right html:message key=prompt.username/ /th td align=left html:text property=username size=16/ /td /tr ... Gregory Dobkins/BHNSM/ISHSG/DIVADMIN/ To: Struts Users Mailing List DOH@NYSDOH [EMAIL PROTECTED] cc: 12/26/2001 03:15 PM Subject: JavaScript error messages. Please respond to Struts Users Mailing List I am using Ted Husted's struts-stub example and I can't display an error message when I cause a 'required' or 'range' error when entering properties on the form. I get a blank javascript dialog box. The JavaScript is below. I've replaced the return false; with 'window.alert(error!);' but that just produces two messages. The original and mine. The ApplicationResources.properties file seems to have the messages I want errors.required.javascript={0} is required. errors.invalid.javascript={0} is invalid. but they are not being displayed and I am not sure how they would be called. I've extended ValidatorForm in place of ActionForm in Form.java What am I doing wrong? validator:javascript formName=stubForm/ script language=javascript function submitForm(form) { if (validateStubForm(form)) { form.submit.value= paused...; return true; } else return false; }; /script -- 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: 404 error when placing JSPs beneath WEB-INF
Have you tried WEB-INF instead of web-inf. I was having a similiar problem, and that fixed it. Thanks, dave dandeneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 10:40 AM To: [EMAIL PROTECTED] Subject: 404 error when placing JSPs beneath WEB-INF After reading the Struts Catalogue and having spent a good amount of time trying to get the JSPs run under the web-inf directory, I figured out that there has been a thread on Can't place JSP beneath WEB-INF in WebLogic 6.0. I'm using BEA WL 6.1 and also have the same 404 error mentioned in the message http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704.html . However, I also tried it on Tomcat4.0 and Tomcat3.2, which both gave the same 404 error. So it seems to be something I'm doing wrong. Just to make sure -- I have the following setup: 1) directory structure: - myApp - web-inf - jsp (contains one page: start.jsp) - lib - classes ... 2) struts-config.xml ... action path=/startIt type=mypackage.StartAction name=theForm scope=session validate=false parameter=commingIn input=/web-inf/jsp/start.jsp forward name=display path=/web-inf/jsp/start.jsp/ /action 3) StartAction perform(...){ ... System.out.println(forward path: + mapping.findForward(display).getPath()); return (mapping.findForward(forward)); } which accurately prints out path: /web-inf/jsp/start.jsp Bea doesn't say anything except 404 (basically). Tomcat 3 says: ... 404 ... Original request: /myApp/web-inf/jsp/start.jsp Not found request: /myApp/web-inf/jsp/start.jsp Tomcat4 brings: Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp type Status report message /web-inf/jsp/start.jsp description The requested resource (/web-inf/jsp/start.jsp) is not available. The application is packed in a jar file. I checked the contents of the file. Looks as expected (having the jsp in the web-inf/jsp directory). It might have something to do with Win NT4, on which the servers are running. But this is just a guess. Help greatly appreciated! Thanks for your time, Holger Please respond to [EMAIL PROTECTED] __ Eine Klasse für sich - der WEB.DE Club. High End Kommunikation MEHR. Mehr Speicher, mehr Leistung, mehr Vorteile - http://club.web.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 404 error when placing JSPs beneath WEB-INF
I thought that although you cannot access directly, you are allowed to forward from a servlet/jsp. And that this is an option for securing pages. Does this have any bearing on my earlier post re trying to access WEB-INF/javadoc/index.html? :-) Regards [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Advanced Banking Solutions Limited +44 (0)20 7448 9146 º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø, ¸¸,ø¤º°'°º¤ø,¸¸, This email and any attachments are confidential. They may contain privileged information or useless trivia and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Advanced Banking Solutions Limited. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Advanced Banking Solutions Limited and its subsidiaries reserve the right to monitor all email communications through their networks. º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø, ¸¸,ø¤º°'°º¤ø,¸¸, -Original Message- From: D. Veniseleas [SMTP:[EMAIL PROTECTED]] Sent: 18 December 2001 16:11 To: 'Struts Users Mailing List' Subject:AW: 404 error when placing JSPs beneath WEB-INF -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, You shouldn't have jsp's under WEB-INF, but only xml-files for webapp-configuration, compiled classes, libraries, tag-lib-descriptor-files etc. WEB-INF and beneath is not accessible from outside. Regards, Dimitris -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Gesendet am: Dienstag, 18. Dezember 2001 16:40 An: [EMAIL PROTECTED] Betreff: 404 error when placing JSPs beneath WEB-INF After reading the Struts Catalogue and having spent a good amount of time trying to get the JSPs run under the web-inf directory, I figured out that there has been a thread on Can't place JSP beneath WEB-INF in WebLogic 6.0. I'm using BEA WL 6.1 and also have the same 404 error mentioned in the message http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704. html . However, I also tried it on Tomcat4.0 and Tomcat3.2, which both gave the same 404 error. So it seems to be something I'm doing wrong. Just to make sure -- I have the following setup: 1) directory structure: - myApp - web-inf - jsp (contains one page: start.jsp) - lib - classes ... 2) struts-config.xml ... action path=/startIt type=mypackage.StartAction name=theForm scope=session validate=false parameter=commingIn input=/web-inf/jsp/start.jsp forward name=display path=/web-inf/jsp/start.jsp/ /action 3) StartAction perform(...){ ... System.out.println(forward path: + mapping.findForward(display).getPath()); return (mapping.findForward(forward)); } which accurately prints out path: /web-inf/jsp/start.jsp Bea doesn't say anything except 404 (basically). Tomcat 3 says: ... 404 ... Original request: /myApp/web-inf/jsp/start.jsp Not found request: /myApp/web-inf/jsp/start.jsp Tomcat4 brings: Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp type Status report message /web-inf/jsp/start.jsp description The requested resource (/web-inf/jsp/start.jsp) is not available. The application is packed in a jar file. I checked the contents of the file. Looks as expected (having the jsp in the web-inf/jsp directory). It might have something to do with Win NT4, on which the servers are running. But this is just a guess. Help greatly appreciated! Thanks for your time, Holger Please respond to [EMAIL PROTECTED] __ Eine Klasse
RE: 404 error when placing JSPs beneath WEB-INF
Hopefully this will help clear things up a bit... (from Ted Husted's Struts Catalog) (http://husted.com/about/scaffolding/catalog.htm) --- Place all Java ServerPages below WEB-INF Note: This is not supported by all containers (e.g. WebLogic). If you believe it should be, contact your vendor. The Servlet 2.3 specification makes it much clearer that this is allowed. The container provides security for all files below WEB-INF. This applies to client requests, but not forwards from the ActionServlet. Placing all JSPs below WEB-INF ensure that they are only accessed through Actions, and not directly by the client or each other. This allows security to be moved up into the Controller, where it can be handled more efficiently, and out of the base presentation layer. However, if your Java ServerPages need to access a number of other HTML resources, like images and stylesheets, it may be more convenient to leave them in the document root. If you are using Link only to Actions, then the address of your JSP's is never exposed anyway, and this strategy loses much of its value. Link only to Actions is usually sufficient. we're following Ted's suggestion for putting jsps in WEB-INF and it's been working well so far. the only downside i've seen is that jBuilder5's webapp format isn't open-minded to jsps being under WEB-INF. (if anyone knows a work-around please share! =) _\|/___ generation-d development andrew b forman aim: ph0rman -Original Message- From: Tom Lister [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 10:40 AM To: 'Struts Users Mailing List' Subject: RE: 404 error when placing JSPs beneath WEB-INF I thought that although you cannot access directly, you are allowed to forward from a servlet/jsp. And that this is an option for securing pages. Does this have any bearing on my earlier post re trying to access WEB-INF/javadoc/index.html? :-) Regards [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Advanced Banking Solutions Limited +44 (0)20 7448 9146 -Original Message- From: D. Veniseleas [SMTP:[EMAIL PROTECTED]] Hi, You shouldn't have jsp's under WEB-INF, but only xml-files for webapp-configuration, compiled classes, libraries, tag-lib-descriptor-files etc. WEB-INF and beneath is not accessible from outside. Regards, Dimitris -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] After reading the Struts Catalogue and having spent a good amount of time trying to get the JSPs run under the web-inf directory, I figured out that there has been a thread on Can't place JSP beneath WEB-INF in WebLogic 6.0. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: 404 error when placing JSPs beneath WEB-INF
Hi, I just came a good step closer. The version of the struts-config.xml I sent was not correct. It should have the WEB-INF in upper case of course: After all that different versions on NT (with its strange file namings), I ended up with this when sending. However, the correct version is: action path=/startIt type=mypackage.StartAction name=theForm scope=session validate=false parameter=commingIn input=/WEB-INF/jsp/start.jsp forward name=display path=/WEB-INF/jsp/start.jsp/ /action So I tried again with Tomcat3.2, Tomcat4, and Bea 6.0/6.1. Not surprisingly, it worked fine on both Tomcats (as many others found out a houndred times before ;-). But unfortunately not on Bea 6.0 or Bea 6.1. I'll contact Bea in order to find out about the problem and let you know about as soon as I know what the problem is. Holger [EMAIL PROTECTED] wrote on 18.12.01: After reading the Struts Catalogue and having spent a good amount of time trying to get the JSPs run under the web-inf directory, I figured out that there has been a thread on Can't place JSP beneath WEB-INF in WebLogic 6.0. I'm using BEA WL 6.1 and also have the same 404 error mentioned in the message http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704.html . However, I also tried it on Tomcat4.0 and Tomcat3.2, which both gave the same 404 error. So it seems to be something I'm doing wrong. Just to make sure -- I have the following setup: 1) directory structure: - myApp - web-inf - jsp (contains one page: start.jsp) - lib - classes ... 2) struts-config.xml ... action path=/startIt type=mypackage.StartAction name=theForm scope=session validate=false parameter=commingIn input=/web-inf/jsp/start.jsp forward name=display path=/web-inf/jsp/start.jsp/ /action 3) StartAction perform(...){ ... System.out.println(forward path: + mapping.findForward(display).getPath()); return (mapping.findForward(forward)); } which accurately prints out path: /web-inf/jsp/start.jsp Bea doesn't say anything except 404 (basically). Tomcat 3 says: ... 404 ... Original request: /myApp/web-inf/jsp/start.jsp Not found request: /myApp/web-inf/jsp/start.jsp Tomcat4 brings: Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp type Status report message /web-inf/jsp/start.jsp description The requested resource (/web-inf/jsp/start.jsp) is not available. The application is packed in a jar file. I checked the contents of the file. Looks as expected (having the jsp in the web-inf/jsp directory). It might have something to do with Win NT4, on which the servers are running. But this is just a guess. Help greatly appreciated! Thanks for your time, Holger Please respond to [EMAIL PROTECTED] __ Eine Klasse für sich - der WEB.DE Club. High End Kommunikation MEHR. Mehr Speicher, mehr Leistung, mehr Vorteile - http://club.web.de __ Hollywood unterm Weihnachtsbaum + ExtraPraemie bei WEB.DE http://premiere.web.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: 404 error when placing JSPs beneath WEB-INF
BEA is of the opinion that accessing JSPs even from an internal forward should be disallowed. Though, I'm told that Sun disagrees. Tom Lister wrote: I thought that although you cannot access directly, you are allowed to forward from a servlet/jsp. And that this is an option for securing pages. Does this have any bearing on my earlier post re trying to access WEB-INF/javadoc/index.html? :-) Regards [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Advanced Banking Solutions Limited +44 (0)20 7448 9146 º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø, ¸¸,ø¤º°'°º¤ø,¸¸, This email and any attachments are confidential. They may contain privileged information or useless trivia and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Advanced Banking Solutions Limited. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Advanced Banking Solutions Limited and its subsidiaries reserve the right to monitor all email communications through their networks. º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø, ¸¸,ø¤º°'°º¤ø,¸¸, -Original Message- From: D. Veniseleas [SMTP:[EMAIL PROTECTED]] Sent: 18 December 2001 16:11 To: 'Struts Users Mailing List' Subject:AW: 404 error when placing JSPs beneath WEB-INF -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, You shouldn't have jsp's under WEB-INF, but only xml-files for webapp-configuration, compiled classes, libraries, tag-lib-descriptor-files etc. WEB-INF and beneath is not accessible from outside. Regards, Dimitris -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Gesendet am: Dienstag, 18. Dezember 2001 16:40 An: [EMAIL PROTECTED] Betreff: 404 error when placing JSPs beneath WEB-INF After reading the Struts Catalogue and having spent a good amount of time trying to get the JSPs run under the web-inf directory, I figured out that there has been a thread on Can't place JSP beneath WEB-INF in WebLogic 6.0. I'm using BEA WL 6.1 and also have the same 404 error mentioned in the message http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704. html . However, I also tried it on Tomcat4.0 and Tomcat3.2, which both gave the same 404 error. So it seems to be something I'm doing wrong. Just to make sure -- I have the following setup: 1) directory structure: - myApp - web-inf - jsp (contains one page: start.jsp) - lib - classes ... 2) struts-config.xml ... action path=/startIt type=mypackage.StartAction name=theForm scope=session validate=false parameter=commingIn input=/web-inf/jsp/start.jsp forward name=display path=/web-inf/jsp/start.jsp/ /action 3) StartAction perform(...){ ... System.out.println(forward path: + mapping.findForward(display).getPath()); return (mapping.findForward(forward)); } which accurately prints out path: /web-inf/jsp/start.jsp Bea doesn't say anything except 404 (basically). Tomcat 3 says: ... 404 ... Original request: /myApp/web-inf/jsp/start.jsp Not found request: /myApp/web-inf/jsp/start.jsp Tomcat4 brings: Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp type Status report message /web-inf/jsp/start.jsp description The requested resource (/web-inf/jsp/start.jsp) is not available. The application is packed in a jar file. I checked the contents of the file. Looks as expected (having the jsp in the web-inf/jsp directory). It might have something to do with Win NT4, on which the servers are running. But this is just a guess. Help greatly appreciated! Thanks for your
RE: 404 error when placing JSPs beneath WEB-INF
Does anyone know how WebSphere 4.0 treats jsps under the WEB-INF? dave -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:14 PM To: Struts Users Mailing List Subject: Re: 404 error when placing JSPs beneath WEB-INF BEA is of the opinion that accessing JSPs even from an internal forward should be disallowed. Though, I'm told that Sun disagrees. Tom Lister wrote: I thought that although you cannot access directly, you are allowed to forward from a servlet/jsp. And that this is an option for securing pages. Does this have any bearing on my earlier post re trying to access WEB-INF/javadoc/index.html? :-) Regards [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Advanced Banking Solutions Limited +44 (0)20 7448 9146 º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º º¤ø, ¸¸,ø¤º°'°º¤ø,¸¸, This email and any attachments are confidential. They may contain privileged information or useless trivia and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Advanced Banking Solutions Limited. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Advanced Banking Solutions Limited and its subsidiaries reserve the right to monitor all email communications through their networks. º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º º¤ø, ¸¸,ø¤º°'°º¤ø,¸¸, -Original Message- From: D. Veniseleas [SMTP:[EMAIL PROTECTED]] Sent: 18 December 2001 16:11 To: 'Struts Users Mailing List' Subject:AW: 404 error when placing JSPs beneath WEB-INF -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, You shouldn't have jsp's under WEB-INF, but only xml-files for webapp-configuration, compiled classes, libraries, tag-lib-descriptor-files etc. WEB-INF and beneath is not accessible from outside. Regards, Dimitris -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Gesendet am: Dienstag, 18. Dezember 2001 16:40 An: [EMAIL PROTECTED] Betreff: 404 error when placing JSPs beneath WEB-INF After reading the Struts Catalogue and having spent a good amount of time trying to get the JSPs run under the web-inf directory, I figured out that there has been a thread on Can't place JSP beneath WEB-INF in WebLogic 6.0. I'm using BEA WL 6.1 and also have the same 404 error mentioned in the message http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704. html . However, I also tried it on Tomcat4.0 and Tomcat3.2, which both gave the same 404 error. So it seems to be something I'm doing wrong. Just to make sure -- I have the following setup: 1) directory structure: - myApp - web-inf - jsp (contains one page: start.jsp) - lib - classes ... 2) struts-config.xml ... action path=/startIt type=mypackage.StartAction name=theForm scope=session validate=false parameter=commingIn input=/web-inf/jsp/start.jsp forward name=display path=/web-inf/jsp/start.jsp/ /action 3) StartAction perform(...){ ... System.out.println(forward path: + mapping.findForward(display).getPath()); return (mapping.findForward(forward)); } which accurately prints out path: /web-inf/jsp/start.jsp Bea doesn't say anything except 404 (basically). Tomcat 3 says: ... 404 ... Original request: /myApp/web-inf/jsp/start.jsp Not found request: /myApp/web-inf/jsp/start.jsp Tomcat4 brings: Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp type Status report message /web-inf/jsp/start.jsp description The requested resource (/web-inf/jsp/start.jsp) is not available. The application is packed in a jar file. I checked the contents of the file. Looks
Re: 404 error when placing JSPs beneath WEB-INF
note that it should be: WEB-INF not web-inf nota bene: even though windows* is not case sensitive in terms of paths, java *is* even when running on windows. --e-- On Tue, 18 Dec 2001 12:13:30 -0500, [EMAIL PROTECTED] wrote: 2) struts-config.xml ... action path=/startIt type=mypackage.StartAction name=theForm scope=session validate=false parameter=commingIn input=/web-inf/jsp/start.jsp forward name=display path=/web-inf/jsp/start.jsp/ /action . . . . Tomcat 3 says: ... 404 ... Original request: /myApp/web-inf/jsp/start.jsp Not found request: /myApp/web-inf/jsp/start.jsp Tomcat4 brings: Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp argo_tec gmbh ed.q.bridges tel. 089-368179.552 fax 089-368179.79 osterwaldstraße 10 (haus F eingang 21) 80805 münchen /argo_tec gmbh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: 404 error when placing JSPs beneath WEB-INF
Andrew B Forman wrote: we're following Ted's suggestion for putting jsps in WEB-INF and it's been working well so far. the only downside i've seen is that jBuilder5's webapp format isn't open-minded to jsps being under WEB-INF. Just for the record, I don't actually do this myself anymore. I do strongly recommend that all references go through actions or forwards, and that a Struts application never link directly to a JSP. This makes where the JSPs are kept less of an issue, since that location is never revealed on the address bar. Heck, there's no reason for anyone to even know that they are JSPs back there to access ;-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: 404 error when placing JSPs beneath WEB-INF
I've tried this with Struts but found it to be unwieldly in the struts-config.xml file. Do you make an action, and a forward, for every single real JSP page? Kind of a pain in the buttocks if you ask me, but I see where you're going with the idea of centralizing access control, exception handling, etc. I wonder if I'm not doing it as elegantly as I could (with respect to the struts-config file). I also wonder if using the new Filtering scheme (which Struts doesn't do anything with), is a more elegant way of inserting that layer in front of every JSP access, rather than a Struts action. Thanks, Bryan On Tue, 2001-12-18 at 10:53, Ted Husted wrote: I do strongly recommend that all references go through actions or forwards, and that a Struts application never link directly to a JSP. This makes where the JSPs are kept less of an issue, since that location is never revealed on the address bar. Heck, there's no reason for anyone to even know that they are JSPs back there to access ;-)
Re: 404 error when placing JSPs beneath WEB-INF
At least a forward. That way we can just refer to the logical name in the link tag. It is also a convenient way to pass any parameters, so you can have forward name=item path=/pages/item/form.jsp/ forward name=itemEdit path=/do/item/Form?action=edit/ Saves a lot of slashes, and lets you do things like switch between pages and actions, as needed. forward name=item path=/do/item/Form?action=new/ -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ Bryan Field-Elliot wrote: I've tried this with Struts but found it to be unwieldly in the struts-config.xml file. Do you make an action, and a forward, for every single real JSP page? Kind of a pain in the buttocks if you ask me, but I see where you're going with the idea of centralizing access control, exception handling, etc. I wonder if I'm not doing it as elegantly as I could (with respect to the struts-config file). I also wonder if using the new Filtering scheme (which Struts doesn't do anything with), is a more elegant way of inserting that layer in front of every JSP access, rather than a Struts action. Thanks, Bryan On Tue, 2001-12-18 at 10:53, Ted Husted wrote: I do strongly recommend that all references go through actions or forwards, and that a Struts application never link directly to a JSP. This makes where the JSPs are kept less of an issue, since that location is never revealed on the address bar. Heck, there's no reason for anyone to even know that they are JSPs back there to access ;-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 404 error when placing JSPs beneath WEB-INF
BEA Weblogic doesnt allow you to put these under the WEB-INF! I tried... so not /WEB-INF/jsp/ but /jsp/ and you have to put a security constraint on that url so for example only the 'system' user can access it ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 500 Error
I just upgraded to Tomcat 4.01 and get the following exception: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper. java:871) . java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLo cationsCache.java:202) One possible cause of this is having an incorrect (usually old) version of a class/jar in your path. - Make sure you have installed all correct version of any jars. - Make sure you don't put jars in the jre lib or lib/ext dirs unless they belong there. - The above seems to indicate a problem with the org.apache.jasper.compiler.TldLocationsCache class so look to see where this is located (probably in some jasper*.jar) and make sure its not an old one. Tomcat should have the correct version in jasper/jasper-compiler.jar Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 500 Error
What is your OS and environment? I had similar error with SUSE Linux, Apache1.3.2 Java SDK 1.4 beta 3, and struts 1.0. I changed to Java SDK 1.3 and used one of nightly builds. (all files in struts binary distribuiton have ^M caracter - DOS files and that might be also the reason. Thats my $0.02 Hope it helps. Peter Quoting Frank Lawlor [EMAIL PROTECTED]: I just upgraded to Tomcat 4.01 and get the following exception: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper. java:871) . java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLo cationsCache.java:202) One possible cause of this is having an incorrect (usually old) version of a class/jar in your path. - Make sure you have installed all correct version of any jars. - Make sure you don't put jars in the jre lib or lib/ext dirs unless they belong there. - The above seems to indicate a problem with the org.apache.jasper.compiler.TldLocationsCache class so look to see where this is located (probably in some jasper*.jar) and make sure its not an old one. Tomcat should have the correct version in jasper/jasper-compiler.jar Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -- 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: 500 Error
I had something like this the other night. I figured out that tomcat had saved the servlet generated off of my JSP and was checking the last-modified times between the servlet and the JSP file (like it should). The problem was that I was doing tag development and thus had to touch the JSP file after each compile to force tomcat to recompile the JSP with the new tags. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Error Page Approach - Recommended / Struts Support
Hi Paul! Can you send a sample file? Your workaround seems interesting. Regards, L. Yeung --- Paul Dillon [EMAIL PROTECTED] wrote: You need two strategies - one for errors you can handle and recover from, and another for everything else. For errors I can handle (includes exceptions and business-level validations), I describe the problem in plain english, stick it into a string attribute on the request object, then I forward to the previous screen. On each screen I include a messages page which displays these messages as well as any ActionErrors. I also use this for success messages. If you need i18n, a better approach would be to use the ActionMessage instead of strings (but they came along sometime after the 1.0 release). For errors I don't handle, I throw servlet exceptions. At the moment I haven't bothered with an error page, though I intend to set up a page in my web.xml that catches all java.lang.Exception's, displays the error, and provides a button or link to hop back to the start page of the web-app. How is everyone else handling it? - Paul - Original Message - From: Greg Callaghan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 1:40 PM Subject: Struts Error Page Approach - Recommended / Struts Support Hi, Wondering what the typical struts approach is to handling and passing back errors to the user is. I'm not talking about ActionForm validation, but rather the situation where an Action determines there is a error (ie either directly itself or via an exception from a business object). What is recommended approach with struts? - use of servlet errorpage specified in Web.xml? (not sure how this works yet, still have to find good doco) - use of struts errorpage as GLOBAL FORWARD to JSP which assumes maybe a ERROR_MESSAGE in request scope? - incorporate use of struts validation error infrastruture somehow? (eg re-use ActionErrors perhaps)? - would creating an ActionError in the Action itself and forwarding back to the original JSP page be possible in the case where there is not normally form validation on this page. ie leverage off ability to put html:errors/ in JSP just to handle presentation of backend errors (ie not formbean validation errors). I'm assuming the general approach overall is to throw business logic errors up the chain until hitting the Action classes so one may then present an appropriate error message to the user (via one of the approaches above?). cheers Greg _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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] __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Error Page Approach - Recommended / Struts Support
I basically do the same thing as Paul. My business objects throw their own exceptions, which I can catch. These exception classes are chained and often include more than one message: the initial cause and my business explanation. I use the ActionError class to send this to the JSP. Since they ActionError can handle a queue of messages, I start with a generic Oops message, followed by the more specific business error, followed by the geek-speak initial cause. This way everybody is happy! ActionErrors errors = new ActionErrors(); ModelResult modelResult = null; try { modelResult = getResult( mapping,form,request,response,helpers); } catch (ModelException e) { // Log and print to error console servlet.log(Model Exception: , e ); e.printStackTrace(); // General error message errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.general)); // Generate error messages from exceptions errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.detail,e.getMessage())); if (e.isCause()) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.detail,e.getCauseMessage())); } } The error.detail is one big replacement parameter error.detail={0} Then I look for an input mapping, and use that for the error page if there is one. If not, I look for a generic error page instead. // -- Report any errors if (!errors.empty()) { saveErrors(request, errors); if (mapping.getInput()!=null) return (new ActionForward(mapping.getInput())); // If no input page, use error forwarding return (mapping.findForward(Tokens.ERROR)); } The chained exception class is based on Brian Goetz' class. http://www.javaworld.com/javaworld/jw-08-2001/jw-0803-exceptions.html -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Error Page Approach - Recommended / Struts Support
Thanks Ted Paul. As always, a useful piece of the puzzle. Just wondering what you need the isCause() method. I read the article about exception handling, but when you write the detail message -- won't this write the cause out for you? Where would you not have the cause? Also: the business error -- is it the last one thrown or the first? The cause: is this the last one thrown or the first? thanks, Sandeep --- Ted Husted [EMAIL PROTECTED] wrote: I basically do the same thing as Paul. My business objects throw their own exceptions, which I can catch. These exception classes are chained and often include more than one message: the initial cause and my business explanation. I use the ActionError class to send this to the JSP. Since they ActionError can handle a queue of messages, I start with a generic Oops message, followed by the more specific business error, followed by the geek-speak initial cause. This way everybody is happy! ActionErrors errors = new ActionErrors(); ModelResult modelResult = null; try { modelResult = getResult( mapping,form,request,response,helpers); } catch (ModelException e) { // Log and print to error console servlet.log(Model Exception: , e ); e.printStackTrace(); // General error message errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.general)); // Generate error messages from exceptions errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.detail,e.getMessage())); if (e.isCause()) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.detail,e.getCauseMessage())); } } The error.detail is one big replacement parameter error.detail={0} Then I look for an input mapping, and use that for the error page if there is one. If not, I look for a generic error page instead. // -- Report any errors if (!errors.empty()) { saveErrors(request, errors); if (mapping.getInput()!=null) return (new ActionForward(mapping.getInput())); // If no input page, use error forwarding return (mapping.findForward(Tokens.ERROR)); } The chained exception class is based on Brian Goetz' class. http://www.javaworld.com/javaworld/jw-08-2001/jw-0803-exceptions.html -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Error Page Approach - Recommended / Struts Support
Sometimes there is only a business exception, other times there is an underlying exception followed by a business exception. So the business object is thrown a SQL error, wraps it, and throws its own version. Other times, there can be a business logic error that doesn't wrap anything else. Sandeep Takhar wrote: Thanks Ted Paul. As always, a useful piece of the puzzle. Just wondering what you need the isCause() method. I read the article about exception handling, but when you write the detail message -- won't this write the cause out for you? Where would you not have the cause? Also: the business error -- is it the last one thrown or the first? The cause: is this the last one thrown or the first? thanks, Sandeep --- Ted Husted [EMAIL PROTECTED] wrote: I basically do the same thing as Paul. My business objects throw their own exceptions, which I can catch. These exception classes are chained and often include more than one message: the initial cause and my business explanation. I use the ActionError class to send this to the JSP. Since they ActionError can handle a queue of messages, I start with a generic Oops message, followed by the more specific business error, followed by the geek-speak initial cause. This way everybody is happy! ActionErrors errors = new ActionErrors(); ModelResult modelResult = null; try { modelResult = getResult( mapping,form,request,response,helpers); } catch (ModelException e) { // Log and print to error console servlet.log(Model Exception: , e ); e.printStackTrace(); // General error message errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.general)); // Generate error messages from exceptions errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.detail,e.getMessage())); if (e.isCause()) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.detail,e.getCauseMessage())); } } The error.detail is one big replacement parameter error.detail={0} Then I look for an input mapping, and use that for the error page if there is one. If not, I look for a generic error page instead. // -- Report any errors if (!errors.empty()) { saveErrors(request, errors); if (mapping.getInput()!=null) return (new ActionForward(mapping.getInput())); // If no input page, use error forwarding return (mapping.findForward(Tokens.ERROR)); } The chained exception class is based on Brian Goetz' class. http://www.javaworld.com/javaworld/jw-08-2001/jw-0803-exceptions.html -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Error Page Approach - Recommended / Struts Support
a combination of 2 and 4 works well. ie, put together ActionErrors, forward to the page where they are displayed with html:errors/ Of course, you don't have to use ActionErrors - and list will do, but why not? :) - Brett -Original Message- From: Greg Callaghan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 28 November 2001 1:41 PM To: [EMAIL PROTECTED] Subject: Struts Error Page Approach - Recommended / Struts Support Hi, Wondering what the typical struts approach is to handling and passing back errors to the user is. I'm not talking about ActionForm validation, but rather the situation where an Action determines there is a error (ie either directly itself or via an exception from a business object). What is recommended approach with struts? - use of servlet errorpage specified in Web.xml? (not sure how this works yet, still have to find good doco) - use of struts errorpage as GLOBAL FORWARD to JSP which assumes maybe a ERROR_MESSAGE in request scope? - incorporate use of struts validation error infrastruture somehow? (eg re-use ActionErrors perhaps)? - would creating an ActionError in the Action itself and forwarding back to the original JSP page be possible in the case where there is not normally form validation on this page. ie leverage off ability to put html:errors/ in JSP just to handle presentation of backend errors (ie not formbean validation errors). I'm assuming the general approach overall is to throw business logic errors up the chain until hitting the Action classes so one may then present an appropriate error message to the user (via one of the approaches above?). cheers Greg _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Error Page Approach - Recommended / Struts Support
You need two strategies - one for errors you can handle and recover from, and another for everything else. For errors I can handle (includes exceptions and business-level validations), I describe the problem in plain english, stick it into a string attribute on the request object, then I forward to the previous screen. On each screen I include a messages page which displays these messages as well as any ActionErrors. I also use this for success messages. If you need i18n, a better approach would be to use the ActionMessage instead of strings (but they came along sometime after the 1.0 release). For errors I don't handle, I throw servlet exceptions. At the moment I haven't bothered with an error page, though I intend to set up a page in my web.xml that catches all java.lang.Exception's, displays the error, and provides a button or link to hop back to the start page of the web-app. How is everyone else handling it? - Paul - Original Message - From: Greg Callaghan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 1:40 PM Subject: Struts Error Page Approach - Recommended / Struts Support Hi, Wondering what the typical struts approach is to handling and passing back errors to the user is. I'm not talking about ActionForm validation, but rather the situation where an Action determines there is a error (ie either directly itself or via an exception from a business object). What is recommended approach with struts? - use of servlet errorpage specified in Web.xml? (not sure how this works yet, still have to find good doco) - use of struts errorpage as GLOBAL FORWARD to JSP which assumes maybe a ERROR_MESSAGE in request scope? - incorporate use of struts validation error infrastruture somehow? (eg re-use ActionErrors perhaps)? - would creating an ActionError in the Action itself and forwarding back to the original JSP page be possible in the case where there is not normally form validation on this page. ie leverage off ability to put html:errors/ in JSP just to handle presentation of backend errors (ie not formbean validation errors). I'm assuming the general approach overall is to throw business logic errors up the chain until hitting the Action classes so one may then present an appropriate error message to the user (via one of the approaches above?). cheers Greg _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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: Inconsistent error uploading PDF
Bill, What version of Struts are you using? This problem is addressed in the coming 1.0.1 version of Struts and also should be working fine in the nightly builds. -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 11:15 AM To: '[EMAIL PROTECTED]' Subject: Inconsistent error uploading PDF I having inconsistent errors displayed by acrobat after uploading a PDF file using the Struts (via the FormFile) ... The file size is the same however, acrobat says There was a problem processing the page ... then something about an error (110) ... or sometimes error (16) ... I have been unable to coorelate this problem with anything I am doing in my code that saves the file ... it is however, consistent with the file ... that is, the files that fail always fail, and the ones that succeed always succeed. Has anyone else encountered this problem ... is this the problem that was addressed by bug fix #3702? Bill Siggelkow eBusiness Lead Developer 678.579.6458 Mirant http://www.mirant.com -- 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: Inconsistent error uploading PDF
Thanks for the response ... Mike ... I am using Struts 1.0 Final ... actually, I just tried out the patch that was part of bug 3702 and it fixed the problem. What is the time line for 1.0.1? -Original Message- From: SCHACHTER,MICHAEL (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 11:36 AM To: 'Struts Users Mailing List' Subject: RE: Inconsistent error uploading PDF Bill, What version of Struts are you using? This problem is addressed in the coming 1.0.1 version of Struts and also should be working fine in the nightly builds. -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 11:15 AM To: '[EMAIL PROTECTED]' Subject: Inconsistent error uploading PDF I having inconsistent errors displayed by acrobat after uploading a PDF file using the Struts (via the FormFile) ... The file size is the same however, acrobat says There was a problem processing the page ... then something about an error (110) ... or sometimes error (16) ... I have been unable to coorelate this problem with anything I am doing in my code that saves the file ... it is however, consistent with the file ... that is, the files that fail always fail, and the ones that succeed always succeed. Has anyone else encountered this problem ... is this the problem that was addressed by bug fix #3702? Bill Siggelkow eBusiness Lead Developer 678.579.6458 Mirant http://www.mirant.com -- 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: Customised Error handling
Hi, if you need special formatting for the errors: have a look at the validator error-tags. (in the nightly build or via ted's page hope this helps Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 12:04 PM To: [EMAIL PROTECTED] Subject: Customised Error handling The HTMLErrors tag handles validation errors well and of course I can load other text messages into an ActionError and present them via an HTML:errors tag. But I need to have at least one other category of error message. Is there a built-in mechanism for doing this or do I have to write my own tag? -- 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: MultipartIterator error when forwarding mutlipart form post to a second Action?
I have started to do a Web Application in struts and the first decision i need to make is How to Implement Security for my application? searched the struts mail archive and looks like extending the ActionServlet process is a good solution though some suggest modifying the ActionServlet and recompiling struts. I was wondering if any of you have successfully used Filters supported by the Servlet 2.3 API for implementing security. Any success using Turbine for security? -Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Parse Error in JRun 3.1
try html:html locale=%=true% Thinh -Original Message- From: Steve Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 5:28 PM To: Struts-User (E-mail) Subject: Parse Error in JRun 3.1 I've run into an error message after deploying a Struts app into JRun 3.1. It works fine under Tomcat 3.2.1, Websphere and Resin but for some reason JRun doesn't like the fact that the tag html:html locale=true has no close tag. There is a close tag /html:html in footer.jsp. Is this a bug in JRun? If so, does anyone know a solution? The page looks like this: %@include file=header.jsp% %-- some html and jsp code --% %@include file=footer.jsp% The exception dump looks like this: Parse Error in JSP page: The page '/header.jsp' did not close the '__tag_html_0' tag. allaire.jrun.jsp.ParseException: The page '/header.jsp' did not close the '__tag_html_0' tag. at allaire.jrun.jsp.JSPParser.writeXML(../jsp/JSPParser.java:143) at allaire.jrun.jsp.JSPParser.includeDirective(../jsp/JSPParser.java:746) at allaire.jrun.jsp.JSPParser.directive(../jsp/JSPParser.java:968) at allaire.jrun.jsp.JSPParser.parse(../jsp/JSPParser.java:921) at allaire.jrun.jsp.JSPParser.writeXML(../jsp/JSPParser.java:135) at allaire.jrun.jsp.JSPParser.generateXML(../jsp/JSPParser.java:107) at allaire.jrun.jsp.JSPParser.generateXML(../jsp/JSPParser.java:51) at allaire.jrun.jsp.Translator.parsePage(../jsp/Translator.java:192) at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:390) at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:92) at allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:75) at allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:67) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:216) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic e.java:1082) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:89) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) Any suggestion would be greatly appreciated. Thanks Steve Taylor Systems Consultant Pangaea Systems Inc. (250) 360-0111 http://www.pangaeainc.com
RE: Help Error run Struts in VAJ 4 cant remove Attributes from requestscope remain
I can not get this to work in WAS 4.0 with these changes. Does anyone know if there is more to be done in the server to eliminate this error. Thank You, Dave --- Julia Yang [EMAIL PROTECTED] wrote: Thank you Eric. It is working now Julia -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 11:50 AM To: [EMAIL PROTECTED] Subject: Re: Help Error run Struts in VAJ 4 cant remove Attributes from requestscope remain Julia, I had the same problem with VAJ 3.5.3, but I presume this will work with 4.0. You need to make sure you are changing the code in the correct place. There are two FormTag classes - one in the base taglib package and one in the taglib.html package. In order to get the application to work with VAJ, you need to change it in the html package. Eric Stievater Distributed Application Development 201.418.5663 Julia Yang jyang@gravito To: [EMAIL PROTECTED] n.com cc: Subject: Help Error run Struts in VAJ 4 cant remove Attributes from request scope 09/07/01 02:36remain PM Please respond to struts-user Hi, Geoff and Mark and all Thank you for answer my question on how to use struts in VAJ I got it run but with a error Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope I followed the e-mail Geoff sent out on 8/21/2001 with Replace the following lines in the doEndTag() method in the FormTag class: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); with the following: pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); The problem remains, is there anything else I need do ? Julia *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com
Re: Help Error run Struts in VAJ 4 cant remove Attributes from requestscope remain
Julia, I had the same problem with VAJ 3.5.3, but I presume this will work with 4.0. You need to make sure you are changing the code in the correct place. There are two FormTag classes - one in the base taglib package and one in the taglib.html package. In order to get the application to work with VAJ, you need to change it in the html package. Eric Stievater Distributed Application Development 201.418.5663 Julia Yang jyang@gravito To: [EMAIL PROTECTED] n.com cc: Subject: Help Error run Struts in VAJ 4 cant remove Attributes from request scope 09/07/01 02:36remain PM Please respond to struts-user Hi, Geoff and Mark and all Thank you for answer my question on how to use struts in VAJ I got it run but with a error Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope I followed the e-mail Geoff sent out on 8/21/2001 with Replace the following lines in the doEndTag() method in the FormTag class: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); with the following: pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); The problem remains, is there anything else I need do ? Julia *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
RE: Help Error run Struts in VAJ 4 cant remove Attributes from requestscope remain
Thank you Eric. It is working now Julia -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 11:50 AM To: [EMAIL PROTECTED] Subject: Re: Help Error run Struts in VAJ 4 cant remove Attributes from requestscope remain Julia, I had the same problem with VAJ 3.5.3, but I presume this will work with 4.0. You need to make sure you are changing the code in the correct place. There are two FormTag classes - one in the base taglib package and one in the taglib.html package. In order to get the application to work with VAJ, you need to change it in the html package. Eric Stievater Distributed Application Development 201.418.5663 Julia Yang jyang@gravito To: [EMAIL PROTECTED] n.com cc: Subject: Help Error run Struts in VAJ 4 cant remove Attributes from request scope 09/07/01 02:36remain PM Please respond to struts-user Hi, Geoff and Mark and all Thank you for answer my question on how to use struts in VAJ I got it run but with a error Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope I followed the e-mail Geoff sent out on 8/21/2001 with Replace the following lines in the doEndTag() method in the FormTag class: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); with the following: pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); The problem remains, is there anything else I need do ? Julia *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
RE: Help Error run Struts in VAJ 4 cant remove Attributes from request scope remain
The correct Jar is also available on the Ted's site and http://www.enfused.com/struts.jar Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 2:50 PM To: [EMAIL PROTECTED] Subject: Re: Help Error run Struts in VAJ 4 cant remove Attributes from request scope remain Julia, I had the same problem with VAJ 3.5.3, but I presume this will work with 4.0. You need to make sure you are changing the code in the correct place. There are two FormTag classes - one in the base taglib package and one in the taglib.html package. In order to get the application to work with VAJ, you need to change it in the html package. Eric Stievater Distributed Application Development 201.418.5663 Julia Yang jyang@gravito To: [EMAIL PROTECTED] n.com cc: Subject: Help Error run Struts in VAJ 4 cant remove Attributes from request scope 09/07/01 02:36remain PM Please respond to struts-user Hi, Geoff and Mark and all Thank you for answer my question on how to use struts in VAJ I got it run but with a error Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope I followed the e-mail Geoff sent out on 8/21/2001 with Replace the following lines in the doEndTag() method in the FormTag class: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); with the following: pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); The problem remains, is there anything else I need do ? Julia *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
RE: display error messages for errors found in an Action
Title: RE: display error messages for errors found in an Action -Original Message- From: Bill Clinton [mailto:[EMAIL PROTECTED]] Sent: 4. september 2001 22:27 To: [EMAIL PROTECTED] Subject: Re: display error messages for errors found in an Action Hi Brian, yes, you can do this. If you have a message in your ApplicationResources file called my.test.error, you can add an error like this: errors.add(myTestField, new ActionError(my.test.error)); where the string myTestField is the field that caused the error. Look at the constructor for org.apache.struts.action.ActionError for more details. Bill Brian K. Buckley wrote: Hi, I'm a relative struts newbie, seeking advise. I have a class MyForm and in the validate() method of MyForm I check for input errors and add them to the ActionErrors object which gets returned. Later in my MyAction action, I check for additional business logic type input errors. If I find errors, I want to put them into to the same error list that the form's ActionErrors creates, so that html:errors/ in my jsp pages can display them the same way. Is there a way to do this? -Brian .
Re: display error messages for errors found in an Action
yes, you can do this. If you have a message in your ApplicationResources file called my.test.error, you can add an error like this: errors.add(myTestField, new ActionError(my.test.error)); where the string myTestField is the field that caused the error. Look at the constructor for org.apache.struts.action.ActionError for more details. Bill, Yes but how do I access that errors object from the perform() method of Action? (or if we create a new ActionErrors object, where do we put it since perform() returns an ActionForward object, not an ActionErrors object). I wanted to be able to add the errors in the perform() method of my action object so that when the perform method returned for example, mapping.findForward(failure), the appropriate errors messages get displayed with the html:errors/ tag in the jsp. -Brian
Re: Parsing error processing resource path /WEB-INF/struts-config.xml
To anyone interested, Itlooks like I got rid of the errors when initializing Tomcat. I had to copy struts.jar, and all the commons-*.jar to Tomcat's lib directory. Is this how it is supposed to be ? I like the idea of separating Struts' stuff from the container (in my case Tomcat). If anyone knows why that happens, please let me know. Eduardo FujiiMonterey Institute of International Studies400 Pacific Street Room D-203Monterey, CA 93940(831) 647-6679[EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:25 PM Subject: Parsing error processing resource path /WEB-INF/struts-config.xml Hi guys,Could someone help me on this ? I downloaded the nightly build (binarydistribution jakarta-struts_20010813.tar.gz), and all other requirements(jaxp 1.1, xalan j.2.2_D6, and xerces that comes with it). Copied filestruts-blank.war to Tomcat's webapps directory and restarted Tomcat.Tomcat spills error messages like these:Begin event threw exceptionjava.lang.ClassNotFoundException: org.apache.struts.action.ActionMapping. (trace)cannot load servlet name: action: Parsing error processing resource path/WEB-INF/structs-config.xmlI copied jaxp.jar, xerces.jar, xalan.jar, and crimson.jar to Tomcat's libdirectory. Could someone tell me what else is missing ?Thanks,
Re: Basic Error....solution ?
On Tue, 31 Jul 2001, emmanuel.boudrant wrote: Hi, Using Struts 1.0 on Apache Tomcat/4.0-b6, I've got this errors: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection And on another JSP javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE You'd have to check the Tomcat log files to be sure, but I would bet on one of the following: * You forgot to include a load-on-startup element in the controller servlet definition in web.xml. * Some sort of startup error is occurring that causes the init() method of the controller servlet to bomb out before completing the initialization of the two collections above, which are stored as servlet context attributes. What's this ? Craig McClanahan
Re: ActionServlet.processInclude()-Error
Further to this mail,I tried using the syntax as suggested ,but I get a page not found error. My web.xml entry is ... !-- Report Servlet -- servlet servlet-nameDisplayReportsServlet/servlet-name servlet-classcom.mizuho.rdw.reports.DisplayReportsServlet/servlet-class /servlet servlet-mapping servlet-nameDisplayReportsServlet/servlet-name url-patterndisplayReport/url-pattern /servlet-mapping My struts-config.xml has the following entry.. !--For saving group details-- actionpath=/groupsSave type=com.mizuho.rdw.groups.client.SaveGroupsAction name=groupsForm scope=request validate=false forward name=save path=/jsp/dataArea.jsp/ forward name=redisplay path=/groupsDisplay.do?actionType=New/ forward name=search path=/jsp/cascadeDisplay.jsp/ forward name=refreshScreen path=/groupsDisplay.do/ forward name=displayReport path=/displayReports/ /action !-- For display of reports -- action path=/displayReports forward =/displayReport /action But Iam still getting 404 page not found error.What is wrong in my xml entries ? Mani Craig R. McClanahan wrote: On Thu, 21 Jun 2001, Bill Firestone wrote: From an Action class, or perhaps from a subsequent jsp page, I want to include content from generated by another servlet -- a subservlet, if you will -- but the key is that the subservlet is a general resource in the server's servlet environment and should accessible either from within Struts or from outside of Struts. The javadoc on http://jakarta.apache.org/struts/ has an ActionServlet.processInclude method. But this javadoc looks like it's for Struts 1.1, not 1.0. Is there a way in Struts 1.0 to invoke (include) another servlet and have it add content to the output? If not, is it possible to include another servlet and have it return its content in an attribute so that the caller can include it in the output? Support for forward/include is also available in Struts 1.0, as follows: * You can use your subservlet as an Action itself, by forwarding to it: action path=/mypath forward=/mysubservlet .../ NOTE: No type attribute would be used here. * You can use your subservlet as an Action itself, by including it (you would do this if the subservlet expects to be the target of a RequestDispatcher.include()): action path=/mypath include=/mysubservlet .../ NOTE: No type attribute would be used here. * You can forward from your Action to a presentation JSP page in the usual way, and that JSP page can use jsp:include to merge in content from the subservlet. * You can stitch together the output of multiple servlets by using RequestDispatcher.include() multiple times in your Action, although the previous method (using jsp:include) would generally be preferred. See the documentation in struts-config_1_0.dtd for more info about the first two options. Thanks. Bill Craig The Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at [EMAIL PROTECTED]
Re[2]: Error with Data Sources
Hello Edward, You need to add jdbc2_0-stdext.jar to the CLASSPATH or to the WEB_INF/lib directory inside of your application. Thursday, July 26, 2001, 5:07:10 PM, you wrote: EM So I've put in a data-sources section that does parse right, but I get EM the following errors when tomcat starts up een though postgresql.jar is EM in the apps WEB-INF/lib directory... Can anyone please help? EM BTW: I can use regular (non-pool) JDBC as that is how I have the EM application working. EM New org.apache.struts.util.GenericDataSource EM java.lang.NoClassDefFoundError: javax/sql/DataSource EM at java.lang.ClassLoader.defineClass0(Native Method) EM at java.lang.ClassLoader.defineClass(ClassLoader.java:486) EM at EM org.apache.tomcat.loader.AdaptiveClassLoader12.doDefineClass(AdaptiveClassLoader12.java:93) EM at EM org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:509) EM at java.lang.ClassLoader.loadClass(ClassLoader.java:253) EM at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) EM at java.lang.Class.forName0(Native Method) EM at java.lang.Class.forName(Class.java:120) EM at EM org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.java:152) EM at org.apache.struts.digester.Digester.startElement(Digester.java:498) EM at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) EM at com.sun.xml.parser.Parser.content(Parser.java:1499) EM at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) EM at com.sun.xml.parser.Parser.content(Parser.java:1499) EM at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) EM at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) EM at com.sun.xml.parser.Parser.parse(Parser.java:284) EM at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) EM at javax.xml.parsers.SAXParser.parse(SAXParser.java:77) EM at org.apache.struts.digester.Digester.parse(Digester.java:716) EM at EM org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1247) EM at org.apache.struts.action.ActionServlet.init(ActionServlet.java:437) EM at javax.servlet.GenericServlet.init(GenericServlet.java:258) EM at EM org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) EM at org.apache.tomcat.core.Handler.init(Handler.java:215) EM at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) EM at EM org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130) EM at EM org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) EM at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) EM at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) EM at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) EM Begin event threw exception EM java.lang.ClassNotFoundException: EM org/apache/struts/util/GenericDataSource EM at java.lang.Class.forName0(Native Method) EM at java.lang.Class.forName(Class.java:120) EM at EM org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.java:152) EM at org.apache.struts.digester.Digester.startElement(Digester.java:498) EM at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) EM at com.sun.xml.parser.Parser.content(Parser.java:1499) EM at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) EM at com.sun.xml.parser.Parser.content(Parser.java:1499) EM at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) EM at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) EM at com.sun.xml.parser.Parser.parse(Parser.java:284) EM at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) EM at javax.xml.parsers.SAXParser.parse(SAXParser.java:77) EM at org.apache.struts.digester.Digester.parse(Digester.java:716) EM at EM org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1247) EM at org.apache.struts.action.ActionServlet.init(ActionServlet.java:437) EM at javax.servlet.GenericServlet.init(GenericServlet.java:258) EM at EM org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) EM at org.apache.tomcat.core.Handler.init(Handler.java:215) EM at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) EM at EM org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130) EM at EM org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) EM at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) EM at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) EM at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) EM On 25 Jul 2001 22:20:00
Re: servlet error with struts 1.0 (release) and tomcat 4
Jon, I received that same error after I removed catalina.jar, but didn't have xerces.jar in the classpath. Brian Jon Brisbin brisbin@ipa.To: Struts List [EMAIL PROTECTED] net cc: Subject: servlet error with struts 1.0 (release) and tomcat 4 07/24/2001 11:40 AM Please respond to struts-user i get the following with some (but not all) struts 1.0 webapps in tomcat 4...any help would be appreciated: jb A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:219) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2251) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 984) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074 ) at java.lang.Thread.run(Thread.java:484) Root Cause: java.lang.LinkageError: loader constraints violated when linking org/xml/sax/EntityResolver class at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:198) at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa che.java:165) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:263) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:857) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at
RE: Re: Error - MultipartIterator: no multipart request data sent
Hello, It seems to work like that. But as you wrote, if the redirect attribute is set to 'true', it is cleaning all the attributes in request. I had put my attributes in session instead of request. Anyway, Thanks a lot. Regards Nuray -Original Message- From: mikael.eriksson [mailto:[EMAIL PROTECTED]] Sent: Montag, 2. Juli 2001 00:18 To: struts-user Subject: Re: Error - MultipartIterator: no multipart request data sent Hello I noticed the same problem when moving to 1.0. It seems that the requesthandler notices that the request is a multi-part and tries to find the multi-part data, even when the request are already handled and you are only forwarding to the next action. (I only got the problem when going to another action.) The way I handled it was to set redirect=true in struts-config.xml for the action that I forwarded to, this made the multi-part info go away from the request (and all other parameters too of course, so if you are expecting request parameters in the next action this will not work.) I guess this could be fixed in the code too, maybe by having the request reader setting a request attribute so that it knows the next time that it already has gotten the data. But I did not go deep enough into the code to know if that is feasible or not. Regards Mikael [EMAIL PROTECTED] wrote: Hi everbody, I am writing a program that needs to process form data. I have an uploadForm (that is an insatance of org.apache.struts.action.ActionForm). I have no problem with uploading a file via this form. After uploading the file, I am executing a couple of procedures inside the uploadAction(instance of org.apache.struts.action.Action) and afterwards forwarding the request to another page. While it is forwarding the request, it gives the following error: javax.servlet.ServletException: MultipartIterator: no multipart request data sent java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) javax.servlet.ServletException(java.lang.String) void org.apache.struts.upload.MultipartIterator.parseRequest() org.apache.struts.upload.MultipartIterator(javax.servlet.http.HttpServletRequest , int, long, java.lang.String) void org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(javax.servlet .http.HttpServletRequest) void org.apache.struts.util.RequestUtils.populate(java.lang.Object, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest) void org.apache.struts.action.ActionServlet.processPopulate(org.apache.struts.action. ActionForm, org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest) void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletReq uest, javax.servlet.http.HttpServletResponse) void com.ubs.cristal.actions.CristalActionServlet.process(javax.servlet.http.HttpServ letRequest, javax.servlet.http.HttpServletResponse) void org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequ est, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.tomcat.core.ServletWrapper.doService(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.core.Handler.service(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.core.ServletWrapper.service(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.facade.RequestDispatcherImpl.forward(javax.servlet.ServletRequ est, javax.servlet.ServletResponse) void org.apache.struts.action.ActionServlet.processActionForward(org.apache.struts.ac tion.ActionForward, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletReq uest, javax.servlet.http.HttpServletResponse) void com.ubs.cristal.actions.CristalActionServlet.process(javax.servlet.http.HttpServ letRequest, javax.servlet.http.HttpServletResponse) void org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequ est, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.tomcat.core.ServletWrapper.doService(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response
RE: Servlet-Error, Unable to open taglibrary /WEB-INF/struts-bean.tld ...
Hi Maik, Have you entered the taglib tags into your web.xml? These should point to your tlds in your web-inf dir. Jon -Original Message- From: Maik Mrazovic [mailto:[EMAIL PROTECTED]] Sent: 28 June 2001 12:34 To: [EMAIL PROTECTED] Subject: Servlet-Error, Unable to open taglibrary /WEB-INF/struts-bean.tld ... Hello, when I start struts-example or other struts-webapplications no error occurs, but if I start my application there comes always the error: Unable to open taglibrary /WEB-INF/struts-bean.tld : Could not locate TLD /WEB-INF/struts-bean.tld But I don´t know why, because the file is in web-inf-Directory of my application, why does this error happens?! Thanks so much, regards Maik Mrazovic T - S y s t e m s debis Systemhaus MEB GmbH Business Center Sales eBusiness, RD/VN Erich-Herion Str. 13 70736 Fellbach (Phone) +49 711 17-40549 (Mobile) +49 170 832-5616 (email) [EMAIL PROTECTED] Internet: http://www.t-systems.de
Re: Servlet-Error, Unable to open taglibrary /WEB-INF/struts-bean.tld ...
Thanks, yes, it was already in web.xml, but thename of directory was "WEB-INF" (capital letters), the directory from Windows-NT was "web-inf", that was the reason! Does only Tomcat (I use 3.2.2) distinguish the letters, or is it at Websphere e.g. the same? Regards, Maik - Original Message - From: Jon.Ridgway To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 3:30 PM Subject: RE: Servlet-Error, "Unable to open taglibrary /WEB-INF/struts-bean.tld ..." Hi Maik, Have you entered the taglib tags into your web.xml? These should point to your tlds in your web-inf dir. Jon -Original Message-From: Maik Mrazovic [mailto:[EMAIL PROTECTED]] Sent: 28 June 2001 12:34To: [EMAIL PROTECTED]Subject: Servlet-Error, "Unable to open taglibrary /WEB-INF/struts-bean.tld ..." Hello, when I start "struts-example" or other struts-webapplications no error occurs, but if I start my application there comes always the error: "Unable to open taglibrary /WEB-INF/struts-bean.tld : Could not locate TLD /WEB-INF/struts-bean.tld" But I don´t know why, because the file is in web-inf-Directory of my application, why does this error happens?! Thanks so much, regards Maik Mrazovic T - S y s t e m s debis Systemhaus MEB GmbHBusiness Center Sales eBusiness, RD/VN Erich-Herion Str. 13 70736 Fellbach(Phone) +49 711 17-40549(Mobile) +49 170 832-5616(email) [EMAIL PROTECTED]Internet: http://www.t-systems.de
Re: Servlet Error 500, Missing message for key index.title
Hi Maik, in your web.xml, add/change following parameter: !-- Action Servlet Configuration -- [...] init-param param-namenull/param-name param-valuefalse/param-value /init-param this does not solve your problem, but then you don't get an exception/Error 500 but you will see in your page _which_ key is missing. perhaps this helps. klaus Am Dienstag, 26. Juni 2001 11:23 schrieben Sie: I´ve installed struts, under Tomcat 3.2. None Webapplication will run which uses ApplicationResources.properties, when I start an index.jsp there comes always the error javax.servlet.ServletException: Missing message for key index.title but i don´t know why?!!? The File is in correct folder, I´ve tried to start several webapplications which was deployed as war-Files, no one works, always this Error, that makes me crazy! I use Struts 1.0 b3, I hope somebody can help me! Maik Mrazovic T - S y s t e m s debis Systemhaus MEB GmbH Business Center Sales eBusiness, RD/VN Erich-Herion Str. 13 70736 Fellbach (Phone) +49 711 17-40549 (Mobile) +49 170 832-5616 (email) [EMAIL PROTECTED] Internet: http://www.t-systems.de Content-Type: text/html; charset=iso-8859-1; name=Anhang: 1 Content-Transfer-Encoding: quoted-printable Content-Description: -- -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] Your mouse has moved. Windows must be restarted for the change to take effect.
Re: Servlet Error 500, Missing message for key index.title
Hi Klaus, thanks for your help, but as I already wrote it´s always the first key of the propertiesfile, in my case the index.title - key. I assume Struts don´t find any keys, and I dont know why. And in fact that I tried to start several war files, e.g. the struts-example (!) it has to work, but it does not! Perhaps a problem with Tomcat?! Regards, Maik Mrazovic - Original Message - From: Klaus Thiele [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 11:46 AM Subject: Re: Servlet Error 500, Missing message for key index.title Hi Maik, in your web.xml, add/change following parameter: !-- Action Servlet Configuration -- [...] init-param param-namenull/param-name param-valuefalse/param-value /init-param this does not solve your problem, but then you don't get an exception/Error 500 but you will see in your page _which_ key is missing. perhaps this helps. klaus Am Dienstag, 26. Juni 2001 11:23 schrieben Sie: I´ve installed struts, under Tomcat 3.2. None Webapplication will run which uses ApplicationResources.properties, when I start an index.jsp there comes always the error javax.servlet.ServletException: Missing message for key index.title but i don´t know why?!!? The File is in correct folder, I´ve tried to start several webapplications which was deployed as war-Files, no one works, always this Error, that makes me crazy! I use Struts 1.0 b3, I hope somebody can help me! Maik Mrazovic T - S y s t e m s debis Systemhaus MEB GmbH Business Center Sales eBusiness, RD/VN Erich-Herion Str. 13 70736 Fellbach (Phone) +49 711 17-40549 (Mobile) +49 170 832-5616 (email) [EMAIL PROTECTED] Internet: http://www.t-systems.de Content-Type: text/html; charset=iso-8859-1; name=Anhang: 1 Content-Transfer-Encoding: quoted-printable Content-Description: -- -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] Your mouse has moved. Windows must be restarted for the change to take effect.
Re: Servlet Error 500, Missing message for key index.title
remove struts.jar from your claspath. --- Maik Mrazovic [EMAIL PROTECTED] wrote: Hi Klaus, thanks for your help, but as I already wrote it´s always the first key of the propertiesfile, in my case the index.title - key. I assume Struts don´t find any keys, and I dont know why. And in fact that I tried to start several war files, e.g. the struts-example (!) it has to work, but it does not! Perhaps a problem with Tomcat?! Regards, Maik Mrazovic - Original Message - From: Klaus Thiele [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 11:46 AM Subject: Re: Servlet Error 500, Missing message for key index.title Hi Maik, in your web.xml, add/change following parameter: !-- Action Servlet Configuration -- [...] init-param param-namenull/param-name param-valuefalse/param-value /init-param this does not solve your problem, but then you don't get an exception/Error 500 but you will see in your page _which_ key is missing. perhaps this helps. klaus Am Dienstag, 26. Juni 2001 11:23 schrieben Sie: I´ve installed struts, under Tomcat 3.2. None Webapplication will run which uses ApplicationResources.properties, when I start an index.jsp there comes always the error javax.servlet.ServletException: Missing message for key index.title but i don´t know why?!!? The File is in correct folder, I´ve tried to start several webapplications which was deployed as war-Files, no one works, always this Error, that makes me crazy! I use Struts 1.0 b3, I hope somebody can help me! Maik Mrazovic T - S y s t e m s debis Systemhaus MEB GmbH Business Center Sales eBusiness, RD/VN Erich-Herion Str. 13 70736 Fellbach (Phone) +49 711 17-40549 (Mobile) +49 170 832-5616 (email) [EMAIL PROTECTED] Internet: http://www.t-systems.de Content-Type: text/html; charset=iso-8859-1; name=Anhang: 1 Content-Transfer-Encoding: quoted-printable Content-Description: -- -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] Your mouse has moved. Windows must be restarted for the change to take effect. = ~~~ Scott __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: GenericDataSource error
Now I've got Begin event threw exception java.lang.ClassNotFoundException: org/apache/struts/util/GenericDataSource when Tomcat tries to compile struts-config.xml I can see that struts.jar is in the /lib folder and GenericDataSource.class is there, so what am I missing? Is there something else I need to add to my Maybe you just need to place this class inside a jar file which resides in the WEB-INF/lib directory? AFAIK, assorted classes belong under WEB-INF/classes = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: org.apache.struts.action.MESSAGE error with VAJ 3.5.3
...try moving your HelloWorldResource.properties file up a level into the /WEB_INF/classes directory. The problem seems to be that struts can't find a message tag and these are located in the HelloWorldResource.properties file which struts expects to find in the WEB_INF/classes directory -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 16 May 2001 6:13 To: [EMAIL PROTECTED] Subject: org.apache.struts.action.MESSAGE error with VAJ 3.5.3 I am trying to run the Hello World example from the Bluestone developer website, but I am getting the following message: Error 500 An error has occured while processing request:http://localhost:8080/HelloWorld/hello.jsp Message: Server caught unhandled exception from servlet [jsp]: Cannot find message resources under key org.apache.struts.action.MESSAGE 1. I have imported the Struts classes into my VAJ workspace. 2. I have created a folder called HelloWorld in the following directory ..\IBM WebSphere Test Environment\hosts\default_host\default_app\web HelloWorld contains a WEB-INF directory and my jsp (hello.jsp) 3. In the WEB-INF folder, I have a classes folder, a lib folder, a struts-bean.tld and a web.xml file. 4. In the lib folder, there exists my struts.jar 5. In the classes folder, there is a helloworld folder. 6. In the helloworld folder, there exists a file called HelloWorldResources.properties I editted the classpath in the servlet engine to include all projects. I also have entered an extra class path pointing to my Struts.jar file (which only includes the dtd files and property files since the the java files are already in my workbench. I have already tried running it with the full Struts.jar, but that gave me the same error message.) So in summary, here is what my folder structure looks like: default_app -- web -- -- HelloWorld -- -- -- hello.jsp -- -- -- WEB-INF -- -- -- -- classes -- -- -- -- -- helloworld -- -- -- -- -- -- HelloWorldResource.properties -- -- -- -- lib -- -- -- -- -- struts.jar -- -- -- -- struts-bean.tld -- -- -- -- web.xml Can anyone please help me? Thanks. This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Dynamic Error Messages
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(view.construction.error, e.getMessage())); in the application.properties you should have: view.construction.error=liCould not construct view because: {0}/li e.getMessage() is substituted instead of {0} -Original Message- From: Darryl To: [EMAIL PROTECTED] Sent: 5/4/01 7:18 AM Subject: Dynamic Error Messages I can't figure out how to return dynamic error messages in the ActionErrors collection. In other words, if an exception is thrown in an Action object, I want to use the e.getMessage() to get the message description and use that to populate an ActionError. The ActionError class doesn't seem to have a constructor that supports this. Help! - Darryl
RE: Thread error....WHY?
It is a good idea to add . ( current directory ) to your CLASSPATH -also get in the habit of compiling your classes so that any required package structure is created properly. You do this by specifying an output directory for the javac command. If you wanted to compile the class starting from the current directory: not my favorite technique ) D:\XALAN\SAMPLES\SIMPLE~1javac -d . SimpleTransform.java If you wanted to compile the class into an established directory which is already a part of your classpath: ( My favorite technique ) if CLASSPATH were: d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar;d:\testClasses D:\XALAN\SAMPLES\SIMPLE~1javac -d d:\testClasses SimpleTransform.java ALWAYS pass the fully-qualified package name and class name to the java command: example package name == com.fred.stuff class name == SomeClass command line used to run that class: d:\java com.fred.stuff.SomeClass If you do not do one of the above, make sure you have navigated to the directory from which your interesting root package name directory has been created. example: your java source has a package declaration of: package fred; You compile using javac as shown in your email: D:\XALAN\SAMPLES\fredjavac Example.java You would then have to navigate up the directory tree to the directory that contained fred ( the root package name ) before attempting to invoke java with that class as the argument: D:\XALAN\SAMPLES\fredcd.. D:\XALAN\SAMPLESjava fred.Example ( also note the fully-qualified package name and classname is what is passed to the java command ) HTH Owen. -Original Message- From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 2:15 PM To: Tomcat (E-mail); Struts-User@Jakarta. Apache. Org (E-mail) Subject: Thread errorWHY? Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting thread issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1java SimpleTransform Exception in thread main java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1
Re: Thread error....WHY?
Do you need . in your CLASSPATH also? Just a thought? Todd [EMAIL PROTECTED] 4/24/01 2:14 Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting thread issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1java SimpleTransform Exception in thread main java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1
Re: Thread error....WHY?
Also, do you need the package information on the SimpleTransform class? Does it have a package? Or is this a class that you wrote? HTH, Todd [EMAIL PROTECTED] 4/24/01 2:14 Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting thread issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1java SimpleTransform Exception in thread main java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1
Re: Thread error....WHY?
You aren't having thread errors, Java just can't find your class. If the SimpleTransform class is in current directory make sure . is in your classpath. scott. --- TODD HARNEY [EMAIL PROTECTED] wrote: Also, do you need the package information on the SimpleTransform class? Does it have a package? Or is this a class that you wrote? HTH, Todd [EMAIL PROTECTED] 4/24/01 2:14 Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting thread issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1java SimpleTransform Exception in thread main java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1 = ~~~ Scott __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Thread error....WHY?
thanks. solved it already. we had 2 pairs of eyes looking at the classpath and still missed it. -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 3:29 PM To: [EMAIL PROTECTED] Subject: Re: Thread errorWHY? You aren't having thread errors, Java just can't find your class. If the SimpleTransform class is in current directory make sure . is in your classpath. scott. --- TODD HARNEY [EMAIL PROTECTED] wrote: Also, do you need the package information on the SimpleTransform class? Does it have a package? Or is this a class that you wrote? HTH, Todd [EMAIL PROTECTED] 4/24/01 2:14 Im sending to both groups for maximized feedback. I am executing a compiled Xalan sample and getting an error. Does anyone know why I could be getting thread issues. -- REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program Files): d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6 ;d:\xalan\xalan.jar;d:\xalan\xerces.jar COMMAND CODE MSG: D:\XALAN\SAMPLES\SIMPLE~1javac SimpleTransform.java D:\XALAN\SAMPLES\SIMPLE~1java SimpleTransform Exception in thread main java.lang.NoClassDefFoundError: SimpleTransform D:\XALAN\SAMPLES\SIMPLE~1 = ~~~ Scott __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: PropertymessageResource error.
On Fri, 13 Apr 2001, Sundaram Ramasamy wrote: hi I have logon form. When I try to logon first time, its doing fine. If I try to logon second time it's giving me the following error message. I am using tomcat 3.2. can anyone help on this. Thanks sundaram Do you have your application set to auto-reload when classes are changed? If so, I'm not sure that Tomcat 3.2 always correctly restarts the entire application. Craig McClanahan
RE: Confusing error and other questions
Hi Scott, this may or may not end up answering your question: I remember seeing something similar when I was first trying to create my own Struts app. What happened was that, for some mysterious reason, the struts-config.xml file was not getting read properly - although I never got a parse error or anything of that sort. I couldn't figure it out for my life, so I started off with the struts-config.xml from the struts-example app, and slowly added my modifications. If you change the logging level in web.xml to show you all the messages that get shown when struts-config.xml gets read (I believeit's a parameter to the 'action' servlet that looks like this: init-param param-namedetail/param-name param-value2/param-value/init-param) then you MIGHT notice that the messages that you normally see in the struts-example app do not appear when your app gets initialized (I'm talking of the messages of the sort: Call org.apache.struts.action.ActionMapping.addForward(ActionForward[failure])Pop org.apache.struts.action.ActionForwardCall org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/prepareNewFolderCreation) So basically what I'm saying is that there's a possibility that struts-config.xml does not get read correctly, and you only find out about it later. I hope that makes sense (and that it solves your problem.) Iraklis -Original Message-From: Scott Fitzgerald [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 17, 2001 1:00 PMTo: Struts-UserSubject: Confusing error and other questions Hello Everyone, I am working on an application that interacts with a database. When I try to run the app, I get an error (500) that tells me: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection. Can someone offer some insight? Also, I have added a datasource mapping in my struts-config.xml file for my database access. When I reference this in my bean, do I have to reference one of the attributes of the datasource tag(ex:driverclass),or do I simply do a call to javax.sql.DataSource dataSource = (javax.sql.DataSource) getServletContext().getAttribute(Action.DATA_SOURCE_KEY); Thanks in advance, Scott Fitzgerald
Re: Confusing error and other questions
The exception is happening in the html:form tag. I would guess that you have a malformed struts-config.xml file. Do you have any error messages in your console or servlet log file? You can look up data-source elements that you defined in struts-config.xml in your Action or ActionForm by using servlet.findDataSource(null) to retrieve the default DataSource, or servlet.findDataSource(key) to retrieve the DataSource identified by the key attribute. -- Dan Miser http://www.distribucon.com - Original Message - From: Scott Fitzgerald To: Struts-User Sent: Tuesday, April 17, 2001 1:00 PM Subject: Confusing error and other questions I am working on an application that interacts with a database. When I try to run the app, I get an error (500) that tells me: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection. Can someone offer some insight? Also, I have added a datasource mapping in my struts-config.xml file for my database access. When I reference this in my bean, do I have to reference one of the attributes of the datasource tag(ex:driverclass), or do I simply do a call to javax.sql.DataSource dataSource = (javax.sql.DataSource) getServletContext().getAttribute(Action.DATA_SOURCE_KEY);
RE: An error occurred when i tried to view struts example
M. Amin, I just had the exact same problem. I found that I did not use the fully qualified name to my ApplicationResource.properties file in the web.xml init parameter to the ActionServlet // the way that was causing me problems init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param // correction that cleared up the problem init-param param-nameapplication/param-name param-valuecom.robert.test.struts.simple.ApplicationResources/param-value /init-param HTH -Original Message- From: M. Amin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 4:03 PM To: [EMAIL PROTECTED] Subject: RE: An error occurred when i tried to view struts example Dear Nishit, My example application is organized as follows WEB-INF : contains all the tag libraries and the xml configuration files. WEB-INF/lib : contains struts.jar WEB-INF/classes : contains ApplicationResource.properties file Is there any thing missed to lauch this example application correctly ? any help will be appreciated. Regards, M. Amin On Thu, 12 Apr 2001, you wrote: your ApplicationResource file is not loaded properly check your classpath... you should have struts.jar in your web-inf\lib Nishit -Original Message- From: M. Amin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 3:42 PM To: [EMAIL PROTECTED] Subject: An error occurred when i tried to view struts example Dear All, I'm a newbie to struts and i'm interested in its MVC paradigm but when i tried to lauch struts-blank applicaton example i got the following error message : Error: 500 Location: /struts-blank/index.jsp Internal Servlet Error: javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:459) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:227) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:475) Root cause: javax.servlet.jsp.JspException: Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:90) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:475) Any help will be appreciated. Regards, M. Amin
Re: Parse Error in the tag library descriptor: Element web-appdoes not allow servlet here
On Wed, 11 Apr 2001, Adrian Perju wrote: Hello, I am using jakarta tomcat 3.1 and stuts. Although element ordering fixed this particular problem, you will find that Tomcat 3.1 has lots of other problems running Struts-based apps. You are strongly encouraged to update to Tomcat 3.2. Craig McClanahan
RE: An error occurred when i tried to view struts example
your ApplicationResource file is not loaded properly check your classpath... you should have struts.jar in your web-inf\lib Nishit -Original Message- From: M. Amin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 3:42 PM To: [EMAIL PROTECTED] Subject: An error occurred when i tried to view struts example Dear All, I'm a newbie to struts and i'm interested in its MVC paradigm but when i tried to lauch struts-blank applicaton example i got the following error message : Error: 500 Location: /struts-blank/index.jsp Internal Servlet Error: javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:459) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:227) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:475) Root cause: javax.servlet.jsp.JspException: Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:90) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:475) Any help will be appreciated. Regards, M. Amin
RE: An error occurred when i tried to view struts example
Dear Nishit, My example application is organized as follows WEB-INF : contains all the tag libraries and the xml configuration files. WEB-INF/lib : contains struts.jar WEB-INF/classes : contains ApplicationResource.properties file Is there any thing missed to lauch this example application correctly ? any help will be appreciated. Regards, M. Amin On Thu, 12 Apr 2001, you wrote: your ApplicationResource file is not loaded properly check your classpath... you should have struts.jar in your web-inf\lib Nishit -Original Message- From: M. Amin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 3:42 PM To: [EMAIL PROTECTED] Subject: An error occurred when i tried to view struts example Dear All, I'm a newbie to struts and i'm interested in its MVC paradigm but when i tried to lauch struts-blank applicaton example i got the following error message : Error: 500 Location: /struts-blank/index.jsp Internal Servlet Error: javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:459) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:227) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:475) Root cause: javax.servlet.jsp.JspException: Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:90) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:475) Any help will be appreciated. Regards, M. Amin
RE: An error occurred when i tried to view struts example
Dear M. Amin, One possible problem is that you have struts.jar in your system classpath. I don't believe this is recommended, though others will correct me if I am wrong. Struts.jar belongs in (as you have shown below), each application's WEB-INF/lib. Please correct me if I am wrong. Check your classpath. Make sure struts.jar is NOT there. Ok, just now, I tried putting struts.jar in my c:\jdk1.3\jre\lib\ext directory. I got this error when viewing struts-blank: javax.servlet.jsp.JspException: Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at _jsp._struts_22dblank._index__jsp._jspService(/struts-blank/index.jsp:15) at com.caucho.jsp.JavaPage.service(JavaPage.java:87) at com.caucho.jsp.JavaPage.subservice(JavaPage.java:81) at com.caucho.jsp.Page.service(Page.java:407) at com.caucho.server.http.Invocation.service(Invocation.java:290) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:121) at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:157) at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:76) at com.caucho.server.http.FileServlet.service(FileServlet.java:244) at com.caucho.server.http.Invocation.service(Invocation.java:296) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:121) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:238) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:157) at com.caucho.server.TcpConnection.run(TcpConnection.java:140) at java.lang.Thread.run(Thread.java:484) Look familiar? It may be another factor, but having struts.jar in your classpath really screws things up for me. :) If you have further questions, post them here! Hope this helps. Stanley Tan [Struts Newbie] At 10:03 PM 4/12/01 +0200, you wrote: Dear Nishit, My example application is organized as follows WEB-INF : contains all the tag libraries and the xml configuration files. WEB-INF/lib : contains struts.jar WEB-INF/classes : contains ApplicationResource.properties file Is there any thing missed to lauch this example application correctly ? any help will be appreciated. Regards, M. Amin On Thu, 12 Apr 2001, you wrote: your ApplicationResource file is not loaded properly check your classpath... you should have struts.jar in your web-inf\lib Nishit -Original Message- From: M. Amin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 3:42 PM To: [EMAIL PROTECTED] Subject: An error occurred when i tried to view struts example Dear All, I'm a newbie to struts and i'm interested in its MVC paradigm but when i tried to lauch struts-blank applicaton example i got the following error message : Error: 500 Location: /struts-blank/index.jsp Internal Servlet Error: javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:459) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:227) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:475) Root cause: javax.servlet.jsp.JspException: Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:90) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
RE: Parse Error in the tag library descriptor: Element web-app does not allow servlet here
Hi Adrian, Try putting all servlet tags together, and then all servlet-mapping tags together. The DTD specifies the following: !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*) hope this helps, Iraklis -Original Message- From: Adrian Perju [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 11, 2001 2:03 PM To: [EMAIL PROTECTED] Subject: Parse Error in the tag library descriptor: Element "web-app" does not allow "servlet" here Hello, I am using jakarta tomcat 3.1 and stuts. I get this error org.apache.jasper.JasperException: Unable to open taglibrary /WEB-INF/struts.tld : Parse Error in the tag library descriptor: Element "web-app" does not allow "servlet" here. at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java:672) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1073) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Parser.parse(Parser.java:1034) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:484) when I try to acces a jsp page which has this lines: %@ page language="java" % %@ taglib uri="/WEB-INF/struts.tld" prefix="struts" % %@ taglib uri="/WEB-INF/app.tld" prefix="app" % ... My web.xml file is: ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" web-app !-- Database Initialization Servlet Configuration -- servlet servlet-namedatabase/servlet-name servlet-classro.necomm.sites.company.connection.LoadConnectionFactory/ser vlet-classinit-param param-namedebug/param-name param-value2/param-value/init-param load-on-startup1/load-on-startup /servlet !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valuero.necomm.sites.company.ApplicationResources/param-value /init-paraminit-param param-nameconfig/param-name param-value/WEB-INF/action.xml/param-value/init-param init-param param-namedebug/param-name param-value2/param-value/init-paraminit-param param-namedetail/param-name param-value2/param-value /init-paramload-on-startup2/load-on-startup /servlet !-- Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-nameurl-pattern*.do/url-pattern /servlet-mapping !-- EMAIL Servlet Configuration -- servlet servlet-nameemailForm/servlet-name servlet-classro.necomm.util.EMailFormServlet/servlet-class init-param param-nameconfigFile/param-name param-value/Config/EMailFormServletConfig.properties/param-value /init-paraminit-param param-namedebug/param-name param-value2/param-value/init-paraminit-param param-namedetail/param-name param-value2/param-value /init-paramload-on-startup3/load-on-startup /servlet servlet-mappingservlet-nameemailForm/servlet-name url-pattern/email/url-pattern /servlet-mapping !-- The Welcome File List -- welcome-file-list welcome-file/zeelandia/admin.jsp/welcome-file /welcome-file-list !-- Struts Tag Library Descriptor -- taglib taglib-uri/WEB-INF/struts.tld/taglib-uri taglib-location/WEB-INF/struts.tld/taglib-location /taglib !-- Application Tag Library Descriptor -- taglib taglib-uri/WEB-INF/app.tld/taglib-uri taglib-location/WEB-INF/app.tld/taglib-location /taglib /web-app What is wrong in my web.xml? I ask this because everything was ok before. Thank you in advance, Adrian
Re: Parse Error in the tag library descriptor: Element web-app does not allow servlet here
- Original Message - From: "Iraklis Kourtidis" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 8:23 PM Subject: RE: Parse Error in the tag library descriptor: Element "web-app" does not allow "servlet" here Hi Adrian, Try putting all servlet tags together, and then all servlet-mapping tags together. The DTD specifies the following: !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*) hope this helps, This was the error. Thank you very much. Adrian Iraklis
Re: Parsing error
Hello again. Sorry friends, false alarm. I was dumb enough to forget to put jar file with javax.sql.* classes in my web application classpath. Best of luck. ___ Do You Yahoo!? Get your free @yahoo.ca address at http://mail.yahoo.ca
Re: struts - error message
You can see examples for this message in ApplicationResourses.properties file. A parameter is passing as {0} for the one parameter. Also see some source code in XxxxAction.java how to pass a message with a parameter. Dileep John wrote: hi any one know to set parameterised error messages using struts. At present I am able to set the error messages like the "username already exists" by using the property file. But I need to display " username Dileep already exists". ie I need to pass parameter in the error message. Is that possible? any one can help me? thank you dileep
RE: taglib error when running struts1.0 on weblogic 5.1
Hi Harish, I do have the struts.jar file in the web-inf/lib directory. cheers, Amar.. -Original Message- From: Dorai, Harish (c) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:08 AM To: '[EMAIL PROTECTED]' Subject: RE: taglib error when running struts1.0 on weblogic 5.1 Do you have the "struts.jar" file in the WEB-INF/lib directory of your Web application? If not, that could be the reason for the exception. -Original Message- From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:03 AM To: '[EMAIL PROTECTED]' Subject: taglib error when running struts1.0 on weblogic 5.1 Hi all, I created a sample application of my own. I am getting a taglib error when trying to access a jsp page ? Any suggestions will be appreciated. The steps i went though are.. . I created a jar file and re-named it as a war file . I followed the same structure as the example application given with struts 1.0 . I was able to run the example application without any problem. The problem comes when i try to run my application. Below is the exception i get... Any help is very much appreciated. Thanks. cheers, Amar.. Wed Feb 21 10:50:00 EST 2001:I WebAppServletContext-demo resolving taglib ur i '/WEB-INF/struts-bean.tld' to taglib-location /WEB-INF/struts-bean.tld: Wed Feb 21 10:50:00 EST 2001:I WebAppServletContext-demo looking for taglib uri /WEB-INF/struts-bean.tld as resource /WEB-INF/WEB-INF/struts-bean.tld in Web Application root: Wed Feb 21 10:50:00 EST 2001:I WebAppServletContext-demo looking for taglib uri /WEB-INF/struts-bean.tld as resource /WEB-INF/struts-bean.tld in Web Applica tion root: java.io.IOException: cannot resolve '/WEB-INF/struts-bean.tld' into a valid tag library at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:94) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java, C ompiled Code) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java, Compil ed Code) at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java, Compiled Code ) at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1760) at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1601) at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java, Compiled Code) at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled Code) at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled Code) at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116) at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java, Co mpiled Code) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:217) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl. java:164) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:101) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:124) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:907) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:851) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:252) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:364) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code) Wed Feb 21 10:50:00 EST 2001:E WebAppServletContext-demo Root cause of Servl etException weblogic.utils.ParsingException: nested IOException: java.io.IOException: cannot resolve '/WEB-INF/struts-bean.tld' into a valid tag library at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled Code) at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled Code) at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116) at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java, Co mpiled Code) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:217) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl. java:164) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:101) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:124) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:907) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImp
RE: taglib error when running struts1.0 on weblogic 5.1
And all the necessary *.tlds are in .../WEB-INF right? If you continue to have problems you may want to try leaving the archive expanded, and adding two entries to the WL classpath: struts.jar and the path to the .../classes directory. You also need to update WL.properties to point to the directory of the app instead of the war. I know that this is not desirable, putting struts.jar in the classpath, but the WL classpath (and classloader) is different and I have found this is needed to get things to work if you try to deploy an expanded archive. Not exactly a good answer, but it might allow you to continue with development. There are some issues with a few of the tags and WL that involve URL encoding, so if you are trying to use one of these tags you will have problems. You can see which ones these are by running the struts test app. But I think this results in a different error. -Original Message- From: Nanduri, Amarnath [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:10 AM To: '[EMAIL PROTECTED]' Subject: RE: taglib error when running struts1.0 on weblogic 5.1 Hi Harish, I do have the struts.jar file in the web-inf/lib directory. cheers, Amar.. -Original Message- From: Dorai, Harish (c) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:08 AM To: '[EMAIL PROTECTED]' Subject: RE: taglib error when running struts1.0 on weblogic 5.1 Do you have the "struts.jar" file in the WEB-INF/lib directory of your Web application? If not, that could be the reason for the exception. -Original Message- From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:03 AM To: '[EMAIL PROTECTED]' Subject: taglib error when running struts1.0 on weblogic 5.1 Hi all, I created a sample application of my own. I am getting a taglib error when trying to access a jsp page ? Any suggestions will be appreciated. The steps i went though are.. . I created a jar file and re-named it as a war file . I followed the same structure as the example application given with struts 1.0 . I was able to run the example application without any problem. The problem comes when i try to run my application. Below is the exception i get... Any help is very much appreciated. Thanks. cheers, Amar.. Wed Feb 21 10:50:00 EST 2001:I WebAppServletContext-demo resolving taglib ur i '/WEB-INF/struts-bean.tld' to taglib-location /WEB-INF/struts-bean.tld: Wed Feb 21 10:50:00 EST 2001:I WebAppServletContext-demo looking for taglib uri /WEB-INF/struts-bean.tld as resource /WEB-INF/WEB-INF/struts-bean.tld in Web Application root: Wed Feb 21 10:50:00 EST 2001:I WebAppServletContext-demo looking for taglib uri /WEB-INF/struts-bean.tld as resource /WEB-INF/struts-bean.tld in Web Applica tion root: java.io.IOException: cannot resolve '/WEB-INF/struts-bean.tld' into a valid tag library at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:94) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java, C ompiled Code) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java, Compil ed Code) at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java, Compiled Code ) at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1760) at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1601) at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java, Compiled Code) at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled Code) at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled Code) at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116) at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java, Co mpiled Code) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:217) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl. java:164) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:101) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:124) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:907) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:851) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:252) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:364) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code) Wed Feb 21 10:50:00
Re: Strange Error with html:select
In our case, increasing the JVM's heap size didn't fix the problem. The only thing that fixed it was reducing the number of tags on the page, so I'm leaning towards believing that a method size limit in a class file (someone mentioned 64KB) is the most likely cause. Nasty. Now I'm having to write custom tags just to reduce the total number of tags on a page! -- Martin Cooper Tumbleweed Communications - Original Message - From: "Dan Connelly" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 19, 2001 8:26 AM Subject: Re: Strange Error with html:select This one came up earlier this month. Nothing to do with html:select per se. A large number of tags on a page can cause this. Check the archive at http://marc.theaimsgroup.com/ http://marc.theaimsgroup.com/ Search struts-user for the topic "Illegal target of branch or jump" The last post on that topic says that the cure is to give yourself more heap in the JVM with -mx and -ms (I wonder if its really more stack space per thread that on needs for a large number of tags on a JSP (??). I haven't looked into it, but stack(s) are usually more fragile than heap in multi-threaded system.) - Original Message - From: "Neal Kaiser" mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] To: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Monday, February 19, 2001 9:45 AM Subject: Strange Error with html:select I am using Orion 1.4.7. I don't know if this is an Orion bug, or possibly Struts? I have a jsp which uses the include directive to read in a list of countries: The jsp looks like this: html:select property="addressBook_country" size="1" %@ include file="../util/countries.jsp" % /html:select And the countries.jsp is something like this: .. html:option value="TV"Tuvalu/html:option html:option value="VI"U.S. Virgin Islands /html:option html:option value="UG"Uganda/html:option If I have 223 lines in my countries.jsp file, it works, no problem. However, if I go over 223 lines (no matter what line it is) I get this error: Error parsing JSP page /galacy/register/layout.jsp Error creating jsp-page instance: java.lang.VerifyError: (class: __jspPage28_register_regstep2_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletR espo nse;)V) Illegal target of jump or branch I just tried putting the select list in the .jsp rather than using an include -- same error. I am leaning towards this being a container bug, not a Struts one. But I just wanted to verify and make sure this wasn't know with Struts first... Thanks, Neal
RE: Strange Error with html:select
Yep, same here. Increasing the heap didn't do it. I wish there was a better solution to this! -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 4:34 PM To: [EMAIL PROTECTED] Subject: Re: Strange Error with html:select In our case, increasing the JVM's heap size didn't fix the problem. The only thing that fixed it was reducing the number of tags on the page, so I'm leaning towards believing that a method size limit in a class file (someone mentioned 64KB) is the most likely cause. Nasty. Now I'm having to write custom tags just to reduce the total number of tags on a page! -- Martin Cooper Tumbleweed Communications - Original Message - From: "Dan Connelly" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 19, 2001 8:26 AM Subject: Re: Strange Error with html:select This one came up earlier this month. Nothing to do with html:select per se. A large number of tags on a page can cause this. Check the archive at http://marc.theaimsgroup.com/ http://marc.theaimsgroup.com/ Search struts-user for the topic "Illegal target of branch or jump" The last post on that topic says that the cure is to give yourself more heap in the JVM with -mx and -ms (I wonder if its really more stack space per thread that on needs for a large number of tags on a JSP (??). I haven't looked into it, but stack(s) are usually more fragile than heap in multi-threaded system.) - Original Message - From: "Neal Kaiser" mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] To: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Monday, February 19, 2001 9:45 AM Subject: Strange Error with html:select I am using Orion 1.4.7. I don't know if this is an Orion bug, or possibly Struts? I have a jsp which uses the include directive to read in a list of countries: The jsp looks like this: html:select property="addressBook_country" size="1" %@ include file="../util/countries.jsp" % /html:select And the countries.jsp is something like this: .. html:option value="TV"Tuvalu/html:option html:option value="VI"U.S. Virgin Islands /html:option html:option value="UG"Uganda/html:option If I have 223 lines in my countries.jsp file, it works, no problem. However, if I go over 223 lines (no matter what line it is) I get this error: Error parsing JSP page /galacy/register/layout.jsp Error creating jsp-page instance: java.lang.VerifyError: (class: __jspPage28_register_regstep2_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Ht tpServletR espo nse;)V) Illegal target of jump or branch I just tried putting the select list in the .jsp rather than using an include -- same error. I am leaning towards this being a container bug, not a Struts one. But I just wanted to verify and make sure this wasn't know with Struts first... Thanks, Neal
RE: Strange Error with html:select
Rather than going custom taglib route, is it possible to use jsp:include ? The problem with that is that the file must inherit from the calling file's struts elements. For example, something like this: html:select property="country" size="1" jsp:include page="../util/countries.jsp" flush="true"/ /html:select The only include that works is the %@ include directive, but that doesn't solve this method size limit problem. Is this a container thing? Or is this a spec thing? -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 4:34 PM To: [EMAIL PROTECTED] Subject: Re: Strange Error with html:select In our case, increasing the JVM's heap size didn't fix the problem. The only thing that fixed it was reducing the number of tags on the page, so I'm leaning towards believing that a method size limit in a class file (someone mentioned 64KB) is the most likely cause. Nasty. Now I'm having to write custom tags just to reduce the total number of tags on a page! -- Martin Cooper Tumbleweed Communications - Original Message - From: "Dan Connelly" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 19, 2001 8:26 AM Subject: Re: Strange Error with html:select This one came up earlier this month. Nothing to do with html:select per se. A large number of tags on a page can cause this. Check the archive at http://marc.theaimsgroup.com/ http://marc.theaimsgroup.com/ Search struts-user for the topic "Illegal target of branch or jump" The last post on that topic says that the cure is to give yourself more heap in the JVM with -mx and -ms (I wonder if its really more stack space per thread that on needs for a large number of tags on a JSP (??). I haven't looked into it, but stack(s) are usually more fragile than heap in multi-threaded system.) - Original Message - From: "Neal Kaiser" mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] To: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Monday, February 19, 2001 9:45 AM Subject: Strange Error with html:select I am using Orion 1.4.7. I don't know if this is an Orion bug, or possibly Struts? I have a jsp which uses the include directive to read in a list of countries: The jsp looks like this: html:select property="addressBook_country" size="1" %@ include file="../util/countries.jsp" % /html:select And the countries.jsp is something like this: .. html:option value="TV"Tuvalu/html:option html:option value="VI"U.S. Virgin Islands /html:option html:option value="UG"Uganda/html:option If I have 223 lines in my countries.jsp file, it works, no problem. However, if I go over 223 lines (no matter what line it is) I get this error: Error parsing JSP page /galacy/register/layout.jsp Error creating jsp-page instance: java.lang.VerifyError: (class: __jspPage28_register_regstep2_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Ht tpServletR espo nse;)V) Illegal target of jump or branch I just tried putting the select list in the .jsp rather than using an include -- same error. I am leaning towards this being a container bug, not a Struts one. But I just wanted to verify and make sure this wasn't know with Struts first... Thanks, Neal