RE: JBoss configuration problem with struts
we r using JBOSS-3.2.1, I will also check at JBoss forms though. -Original Message- From: Erez Efrati [SMTP:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 6:11 PM To: 'Struts Users Mailing List' Subject: RE: JBoss configuration problem with struts What version of JBoss? I personally deploy an EAR file instead of just WAR. I heard something about a problem with WAR deployment a long time ago, but I am not sure if that is still the case. I would advise you to check with the Forums on the JBoss.org site - I find them very efficient and helpful. Erez -Original Message- From: Younis, Shahzaib [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:59 PM To: 'Struts Users Mailing List' Subject: RE: JBoss configuration problem with struts Oops! validation.xml code is this one: field property=username depends=required arg0 key=prompt.username resource=true / /field and in the case of validation failure,on the xml end, I get error ???en_US.prompt.username??? is required, instead of User Name is required ApplicationResources.properties snapshot is this: prompt.username = User Name Now the war file is working fine in all directory, but not in default directory, it seems like its not extracting prompts from properties file. -Original Message- From: Younis, Shahzaib [SMTP:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:55 PM To: 'Struts Users Mailing List' Subject:RE: JBoss configuration problem with struts Ok here's what I'm trying to do. validation.xml: field property=username depends=required arg0 key=logon.username.error resource=true / /field and in the case of validation failure,on the xml end, I get error ???en_US.prompt.username??? is required, instead of User Name is required ApplicationResources.properties snapshot is this: prompt.username = User Name Now the war file is working fine in all directory, but not in default directory, it seems like its not extracting prompts from properties file. -Original Message- From: Erez Efrati [SMTP:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 4:48 PM To: 'Struts Users Mailing List' Subject: RE: JBoss configuration problem with struts If you just put more information and specify more about what and how did you do. Just for of it, I am working with JBoss and Struts and it all works just fine under the JBoss default. Erez -Original Message- From: Younis, Shahzaib [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:45 PM To: 'Struts Users Mailing List' Subject: JBoss configuration problem with struts After I put my war file into JBOSS all direcotry, it works, but before that it was in default directory and it was not extracting prompts from properties file. Any idea wats the difference between JBOSS sub directory defualt and all According to JBoss documentation, the only difference, that all directory configuration includes services of RMI/IIOP and clustering. but that should not affect the extraction of prompts from Properties file. Any help will be appreciated, Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JBoss configuration problem with struts
After I put my war file into JBOSS all direcotry, it works, but before that it was in default directory and it was not extracting prompts from properties file. Any idea wats the difference between JBOSS sub directory defualt and all According to JBoss documentation, the only difference, that all directory configuration includes services of RMI/IIOP and clustering. but that should not affect the extraction of prompts from Properties file. Any help will be appreciated, Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JBoss configuration problem with struts
If you just put more information and specify more about what and how did you do. Just for of it, I am working with JBoss and Struts and it all works just fine under the JBoss default. Erez -Original Message- From: Younis, Shahzaib [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:45 PM To: 'Struts Users Mailing List' Subject: JBoss configuration problem with struts After I put my war file into JBOSS all direcotry, it works, but before that it was in default directory and it was not extracting prompts from properties file. Any idea wats the difference between JBOSS sub directory defualt and all According to JBoss documentation, the only difference, that all directory configuration includes services of RMI/IIOP and clustering. but that should not affect the extraction of prompts from Properties file. Any help will be appreciated, Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JBoss configuration problem with struts
Ok here's what I'm trying to do. validation.xml: field property=username depends=required arg0 key=logon.username.error resource=true / /field and in the case of validation failure,on the xml end, I get error ???en_US.prompt.username??? is required, instead of User Name is required ApplicationResources.properties snapshot is this: prompt.username = User Name Now the war file is working fine in all directory, but not in default directory, it seems like its not extracting prompts from properties file. -Original Message- From: Erez Efrati [SMTP:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 4:48 PM To: 'Struts Users Mailing List' Subject: RE: JBoss configuration problem with struts If you just put more information and specify more about what and how did you do. Just for of it, I am working with JBoss and Struts and it all works just fine under the JBoss default. Erez -Original Message- From: Younis, Shahzaib [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:45 PM To: 'Struts Users Mailing List' Subject: JBoss configuration problem with struts After I put my war file into JBOSS all direcotry, it works, but before that it was in default directory and it was not extracting prompts from properties file. Any idea wats the difference between JBOSS sub directory defualt and all According to JBoss documentation, the only difference, that all directory configuration includes services of RMI/IIOP and clustering. but that should not affect the extraction of prompts from Properties file. Any help will be appreciated, Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JBoss configuration problem with struts
Oops! validation.xml code is this one: field property=username depends=required arg0 key=prompt.username resource=true / /field and in the case of validation failure,on the xml end, I get error ???en_US.prompt.username??? is required, instead of User Name is required ApplicationResources.properties snapshot is this: prompt.username = User Name Now the war file is working fine in all directory, but not in default directory, it seems like its not extracting prompts from properties file. -Original Message- From: Younis, Shahzaib [SMTP:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:55 PM To: 'Struts Users Mailing List' Subject: RE: JBoss configuration problem with struts Ok here's what I'm trying to do. validation.xml: field property=username depends=required arg0 key=logon.username.error resource=true / /field and in the case of validation failure,on the xml end, I get error ???en_US.prompt.username??? is required, instead of User Name is required ApplicationResources.properties snapshot is this: prompt.username = User Name Now the war file is working fine in all directory, but not in default directory, it seems like its not extracting prompts from properties file. -Original Message- From: Erez Efrati [SMTP:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 4:48 PM To: 'Struts Users Mailing List' Subject:RE: JBoss configuration problem with struts If you just put more information and specify more about what and how did you do. Just for of it, I am working with JBoss and Struts and it all works just fine under the JBoss default. Erez -Original Message- From: Younis, Shahzaib [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:45 PM To: 'Struts Users Mailing List' Subject: JBoss configuration problem with struts After I put my war file into JBOSS all direcotry, it works, but before that it was in default directory and it was not extracting prompts from properties file. Any idea wats the difference between JBOSS sub directory defualt and all According to JBoss documentation, the only difference, that all directory configuration includes services of RMI/IIOP and clustering. but that should not affect the extraction of prompts from Properties file. Any help will be appreciated, Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JBoss configuration problem with struts
What version of JBoss? I personally deploy an EAR file instead of just WAR. I heard something about a problem with WAR deployment a long time ago, but I am not sure if that is still the case. I would advise you to check with the Forums on the JBoss.org site - I find them very efficient and helpful. Erez -Original Message- From: Younis, Shahzaib [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:59 PM To: 'Struts Users Mailing List' Subject: RE: JBoss configuration problem with struts Oops! validation.xml code is this one: field property=username depends=required arg0 key=prompt.username resource=true / /field and in the case of validation failure,on the xml end, I get error ???en_US.prompt.username??? is required, instead of User Name is required ApplicationResources.properties snapshot is this: prompt.username = User Name Now the war file is working fine in all directory, but not in default directory, it seems like its not extracting prompts from properties file. -Original Message- From: Younis, Shahzaib [SMTP:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:55 PM To: 'Struts Users Mailing List' Subject: RE: JBoss configuration problem with struts Ok here's what I'm trying to do. validation.xml: field property=username depends=required arg0 key=logon.username.error resource=true / /field and in the case of validation failure,on the xml end, I get error ???en_US.prompt.username??? is required, instead of User Name is required ApplicationResources.properties snapshot is this: prompt.username = User Name Now the war file is working fine in all directory, but not in default directory, it seems like its not extracting prompts from properties file. -Original Message- From: Erez Efrati [SMTP:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 4:48 PM To: 'Struts Users Mailing List' Subject:RE: JBoss configuration problem with struts If you just put more information and specify more about what and how did you do. Just for of it, I am working with JBoss and Struts and it all works just fine under the JBoss default. Erez -Original Message- From: Younis, Shahzaib [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:45 PM To: 'Struts Users Mailing List' Subject: JBoss configuration problem with struts After I put my war file into JBOSS all direcotry, it works, but before that it was in default directory and it was not extracting prompts from properties file. Any idea wats the difference between JBOSS sub directory defualt and all According to JBoss documentation, the only difference, that all directory configuration includes services of RMI/IIOP and clustering. but that should not affect the extraction of prompts from Properties file. Any help will be appreciated, Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] web.xml error-page configuration problem
I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
Is you /jsp/error.jsp page a error page? If not it as the Error Page via. %@ page isErrorPage=true % Jimmy -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:59 PM To: Struts-User (E-mail) Subject: [OT] web.xml error-page configuration problem I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] web.xml error-page configuration problem
Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
Not sure I totally understood your response, but I looked up the directive you mentioned. Here's what I learned: Purpose --- - Indicates whether or not the current page can act as the error page for another JSP page Notes - 1. Use this for emergency backup only; explicitly handle as many exceptions as possible 2. The web.xml file can designate general error pages rather than page-specific ones like this According to item #2, I shouldn't have to do this. Furthermore, this means each JSP within my application needs the following: %@ page errorPage=error.jsp % This is what I'm trying to avoid. I would prefer to only specify this via a single configuration setting in the web.xml. JOHN -Original Message- From: Jimmy Emmanual [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:05 PM To: 'Struts Users Mailing List' Subject: RE: [OT] web.xml error-page configuration problem Is you /jsp/error.jsp page a error page? If not it as the Error Page via. %@ page isErrorPage=true % Jimmy -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:59 PM To: Struts-User (E-mail) Subject: [OT] web.xml error-page configuration problem I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
David: When I add the errorPage directive to my JSP, my error page appeared in the screen b/c I'm using Struts Tiles. The page in which I'm creating a null pointer exception is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [OT] web.xml error-page configuration problem Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
%@ page errorPage=error.jsp % This is what I'm trying to avoid. I would prefer to only specify this via a single configuration setting in the web.xml. I think that's required. I created a header.jsp file that has all my taglib declarations and the error page declaration and then I include header.jsp in all of my other jsps. David JOHN -Original Message- From: Jimmy Emmanual [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:05 PM To: 'Struts Users Mailing List' Subject: RE: [OT] web.xml error-page configuration problem Is you /jsp/error.jsp page a error page? If not it as the Error Page via. %@ page isErrorPage=true % Jimmy -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:59 PM To: Struts-User (E-mail) Subject: [OT] web.xml error-page configuration problem I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
You could point your error-page to a redirected Struts action so that it doesn't show up in a tile. David David: When I add the errorPage directive to my JSP, my error page appeared in the screen b/c I'm using Struts Tiles. The page in which I'm creating a null pointer exception is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [OT] web.xml error-page configuration problem Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
Hi David, What container are you using and are you using Tiles? I'm using Jboss with Tomcat and I can't put all my taglibs in a common header (there was a discussion about this a while back on the Struts list). Thanks, -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem %@ page errorPage=error.jsp % This is what I'm trying to avoid. I would prefer to only specify this via a single configuration setting in the web.xml. I think that's required. I created a header.jsp file that has all my taglib declarations and the error page declaration and then I include header.jsp in all of my other jsps. David JOHN -Original Message- From: Jimmy Emmanual [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:05 PM To: 'Struts Users Mailing List' Subject: RE: [OT] web.xml error-page configuration problem Is you /jsp/error.jsp page a error page? If not it as the Error Page via. %@ page isErrorPage=true % Jimmy -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:59 PM To: Struts-User (E-mail) Subject: [OT] web.xml error-page configuration problem I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
sry 1. didn't mean to reply to the list and 2. the discussion was on the taglibs list. -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:51 PM To: 'Struts Users Mailing List' Subject: RE: [OT] web.xml error-page configuration problem Hi David, What container are you using and are you using Tiles? I'm using Jboss with Tomcat and I can't put all my taglibs in a common header (there was a discussion about this a while back on the Struts list). Thanks, -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem %@ page errorPage=error.jsp % This is what I'm trying to avoid. I would prefer to only specify this via a single configuration setting in the web.xml. I think that's required. I created a header.jsp file that has all my taglib declarations and the error page declaration and then I include header.jsp in all of my other jsps. David JOHN -Original Message- From: Jimmy Emmanual [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:05 PM To: 'Struts Users Mailing List' Subject: RE: [OT] web.xml error-page configuration problem Is you /jsp/error.jsp page a error page? If not it as the Error Page via. %@ page isErrorPage=true % Jimmy -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:59 PM To: Struts-User (E-mail) Subject: [OT] web.xml error-page configuration problem I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
Okay, I'll try that. Do you mean the error-page in my web.xml, for example: error-page exception-typejava.lang.Throwable/exception-type location/displaySystemError.do/location /error-page Or the @page directive. For example: %@ page errorPage=/displaySystemError.do % Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem You could point your error-page to a redirected Struts action so that it doesn't show up in a tile. David David: When I add the errorPage directive to my JSP, my error page appeared in the screen b/c I'm using Struts Tiles. The page in which I'm creating a null pointer exception is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [OT] web.xml error-page configuration problem Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
Okay, I'll try that. Do you mean the error-page in my web.xml, for example: This is how I set it up. error-page exception-typejava.lang.Throwable/exception-type location/displaySystemError.do/location /error-page Or the @page directive. For example: %@ page errorPage=/displaySystemError.do % I don't see why that wouldn't work either. David Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem You could point your error-page to a redirected Struts action so that it doesn't show up in a tile. David David: When I add the errorPage directive to my JSP, my error page appeared in the screen b/c I'm using Struts Tiles. The page in which I'm creating a null pointer exception is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [OT] web.xml error-page configuration problem Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
Yes, I am using Tiles and Tomcat and the common header works great. David Hi David, What container are you using and are you using Tiles? I'm using Jboss with Tomcat and I can't put all my taglibs in a common header (there was a discussion about this a while back on the Struts list). Thanks, -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem %@ page errorPage=error.jsp % This is what I'm trying to avoid. I would prefer to only specify this via a single configuration setting in the web.xml. I think that's required. I created a header.jsp file that has all my taglib declarations and the error page declaration and then I include header.jsp in all of my other jsps. David JOHN -Original Message- From: Jimmy Emmanual [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:05 PM To: 'Struts Users Mailing List' Subject: RE: [OT] web.xml error-page configuration problem Is you /jsp/error.jsp page a error page? If not it as the Error Page via. %@ page isErrorPage=true % Jimmy -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:59 PM To: Struts-User (E-mail) Subject: [OT] web.xml error-page configuration problem I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
Actually, that doesn't work. I'm getting an IllegalStateException doing %@ page errorPage=/displaySystemError.do % java.lang.IllegalStateException: Cannot forward a response that is already committed I think this is a direct result of using Tiles, right? A portion of the page has already been committed (from the earlier Tiles -- servlets that executed). JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem You could point your error-page to a redirected Struts action so that it doesn't show up in a tile. David David: When I add the errorPage directive to my JSP, my error page appeared in the screen b/c I'm using Struts Tiles. The page in which I'm creating a null pointer exception is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [OT] web.xml error-page configuration problem Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
Actually, that doesn't work. I'm getting an IllegalStateException doing %@ page errorPage=/displaySystemError.do % java.lang.IllegalStateException: Cannot forward a response that is already committed I think this is a direct result of using Tiles, right? A portion of the page has already been committed (from the earlier Tiles -- servlets that executed). I think that's right. So, just set it up in error-page. David JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem You could point your error-page to a redirected Struts action so that it doesn't show up in a tile. David David: When I add the errorPage directive to my JSP, my error page appeared in the screen b/c I'm using Struts Tiles. The page in which I'm creating a null pointer exception is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [OT] web.xml error-page configuration problem Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
I don't think using the error-page will work. That was the original crux of this problem. Run-time exceptions occuring within a JSP aren't getting redirected. Now, I'm back to square 1. Let me know if you have any other ideas. Thanks a lot, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:19 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem Actually, that doesn't work. I'm getting an IllegalStateException doing %@ page errorPage=/displaySystemError.do % java.lang.IllegalStateException: Cannot forward a response that is already committed I think this is a direct result of using Tiles, right? A portion of the page has already been committed (from the earlier Tiles -- servlets that executed). I think that's right. So, just set it up in error-page. David JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem You could point your error-page to a redirected Struts action so that it doesn't show up in a tile. David David: When I add the errorPage directive to my JSP, my error page appeared in the screen b/c I'm using Struts Tiles. The page in which I'm creating a null pointer exception is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [OT] web.xml error-page configuration problem Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] web.xml error-page configuration problem
I have this in my jsp: %@ page errorPage=/errors/getErrorPage.do?type=jsp % and this in web.xml: error-page exception-typejava.lang.Exception/exception-type location/errors/getErrorPage.do?type=error/location /error-page I'm using Tiles and this setup is working. However, the error page shows up inside the larger page template because of the tiling. It doesn't go to a separate error page. David I don't think using the error-page will work. That was the original crux of this problem. Run-time exceptions occuring within a JSP aren't getting redirected. Now, I'm back to square 1. Let me know if you have any other ideas. Thanks a lot, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:19 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem Actually, that doesn't work. I'm getting an IllegalStateException doing %@ page errorPage=/displaySystemError.do % java.lang.IllegalStateException: Cannot forward a response that is already committed I think this is a direct result of using Tiles, right? A portion of the page has already been committed (from the earlier Tiles -- servlets that executed). I think that's right. So, just set it up in error-page. David JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem You could point your error-page to a redirected Struts action so that it doesn't show up in a tile. David David: When I add the errorPage directive to my JSP, my error page appeared in the screen b/c I'm using Struts Tiles. The page in which I'm creating a null pointer exception is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [OT] web.xml error-page configuration problem Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26 -0500 I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. error-page configuration to work for exceptions occurring within a JSP. If the exception, occurs in Java code (i.e. non-JSP), the error page works fine. But if it occurs in the JSP, I see a stack trace on the screen instead of forwarding to the error JSP. Here's the setting I have in web.xml file: error-page exception-typejava.lang.Throwable/exception-type location/jsp/error.jsp/location /error-page This should handle every type of exception, right? In my JSP, I'm intentionally creating a null pointer exception. I also tried adding the following to my web.xml file and it still didn't work: error-page exception-typejava.lang.NullPointerException/exception-type location/jsp/error.jsp/location /error-page Any help is greatly appreciated, Thanks, JOHN HOHLEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Tile configuration problem: No value defined for bean
Hi, You should use tiles:insert name=sccLayout .../ rather than tiles:insert beanName=sccLayout .../ beanName is for retrieving a definition from the jsp scope. name is for retrieving a definition from the tiles factory. Cedric [EMAIL PROTECTED] wrote: Greetings, I'm experienced with Struts 1.0.2 and am trying to use 1.1 with Tiles for the first time, and have successfully created my layout, but now I can't seem to get my definitions to register in the tiles-defs.xml. I've been at this for two days and searched newsgroups and archives but can't seem to find a solution... I am using Struts 1.1 b3 on Weblogic 6.1 SP4 Using the struts-blank.war as my example, I placed the following in my struts-config.xml: controller processorClass =org.apache.struts.tiles.TilesRequestProcessor / message-resources parameter=resources.application / plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value =/WEB-INF/tiles-defs.xml / set-property property=moduleAware value=true / set-property property=definitions-parser-validate value=true / /plug-in then in the WEB-INF/tiles-def.xml, I have put: tiles-definitions definition name=sccLayout path=/common/layouts/upLayout.jsp put name=pageTitle value=CHANGEME/ put name=stylesheet value=css/scc.css / put name=menuoptions value=/common/scc-menuoptions.jsp / put name=body-content value=CHANGEME/ /definition /tiles-definitions Finally, in my jsp file, I have: tiles:insert beanName=sccLayout beanScope=request flush=true tiles:put name=pageTitle value=Shipment Cancellations direct=true type=string/ tiles:put name=body-content type=string html:errors/ centerh3bean:message key=index.heading//h3 table width=50% trtd bean:message key=index.message/ /td/tr /table /center /tiles:put /tiles:insert Any time I hit this jsp, I get the following error: Feb 21, 2003 12:08:06 PM CST Error HTTP [WebAppServletContext(3210383,scc,/scc)] Root cause of ServletException javax.servlet.jsp.JspException: Error - Tag Insert : No value defined for bean 'sccLayout' with property 'null' in scope 'request'. at org.apache.struts.taglib.tiles.InsertTag.processBean(InsertTag.java:629) at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:485) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:445) at jsp_servlet._secure.__index._jspService(__index.java:110) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:321) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:250) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:269) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:436) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:312) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) I have verifyed this layout will work, but only if I use it as a JSP include. Any clues? Am I missing something obvious here?? TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tile configuration problem: No value defined for bean
Greetings, I'm experienced with Struts 1.0.2 and am trying to use 1.1 with Tiles for the first time, and have successfully created my layout, but now I can't seem to get my definitions to register in the tiles-defs.xml. I've been at this for two days and searched newsgroups and archives but can't seem to find a solution... I am using Struts 1.1 b3 on Weblogic 6.1 SP4 Using the struts-blank.war as my example, I placed the following in my struts-config.xml: controller processorClass =org.apache.struts.tiles.TilesRequestProcessor / message-resources parameter=resources.application / plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value =/WEB-INF/tiles-defs.xml / set-property property=moduleAware value=true / set-property property=definitions-parser-validate value=true / /plug-in then in the WEB-INF/tiles-def.xml, I have put: tiles-definitions definition name=sccLayout path=/common/layouts/upLayout.jsp put name=pageTitle value=CHANGEME/ put name=stylesheet value=css/scc.css / put name=menuoptions value=/common/scc-menuoptions.jsp / put name=body-content value=CHANGEME/ /definition /tiles-definitions Finally, in my jsp file, I have: tiles:insert beanName=sccLayout beanScope=request flush=true tiles:put name=pageTitle value=Shipment Cancellations direct=true type=string/ tiles:put name=body-content type=string html:errors/ centerh3bean:message key=index.heading//h3 table width=50% trtd bean:message key=index.message/ /td/tr /table /center /tiles:put /tiles:insert Any time I hit this jsp, I get the following error: Feb 21, 2003 12:08:06 PM CST Error HTTP [WebAppServletContext(3210383,scc,/scc)] Root cause of ServletException javax.servlet.jsp.JspException: Error - Tag Insert : No value defined for bean 'sccLayout' with property 'null' in scope 'request'. at org.apache.struts.taglib.tiles.InsertTag.processBean(InsertTag.java:629) at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:485) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:445) at jsp_servlet._secure.__index._jspService(__index.java:110) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:321) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:250) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:269) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:436) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:312) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) I have verifyed this layout will work, but only if I use it as a JSP include. Any clues? Am I missing something obvious here?? TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts-examples parsing configuration problem
I want to look at struts is determine if it is appropriate for our project. However I am unable to get working the example web app that is supplied with the binary . I downloaded Struts 1.0.2. I droped the struts-example.war onto the webapps directory of my Tomcat 4.1.17 on localhost running on Windows 2000 When starting up I get the stacktrace below. (I droped the same .war onto a Tomcat 4.1.17 running on a unix box on the network with no problems whatsoever) What gives? Surely I am not the first to experience this ? Starting service Tomcat-Standalone Apache Tomcat/4.1.17-LE-jdk14 New org.apache.struts.webapp.example.User Set org.apache.struts.webapp.example.User properties New org.apache.struts.webapp.example.Subscription Set org.apache.struts.webapp.example.Subscription properties Call org.apache.struts.webapp.example.Subscription.setUser(User[username=user, fullName=John Q. User]) Pop org.apache.struts.webapp.example.Subscription New org.apache.struts.webapp.example.Subscription Set org.apache.struts.webapp.example.Subscription properties Call org.apache.struts.webapp.example.Subscription.setUser(User[username=user, fullName=John Q. User]) Pop org.apache.struts.webapp.example.Subscription Call org.apache.struts.webapp.example.DatabaseServlet.addUser(User[username=user, fullName=John Q. User]) Pop org.apache.struts.webapp.example.User register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:/C:/Program Files/Apache Group/Tom cat 4.1/webapps/struts-example/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 'jar:file:/C:/Program Files/Apache Group/Tomcat 4.1/w ebapps/struts-example/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd' register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 'jar:file:/C:/Program Files/Apache Group/Tomcat 4.1/w ebapps/struts-example/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd' resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/ struts-config_1_0.dtd') Resolving to alternate DTD 'jar:file:/C:/Program Files/Apache Group/Tomcat 4.1/webapps/struts-example/WEB-INF/lib/strut s.jar!/org/apache/struts/resources/struts-config_1_0.dtd' New org.apache.struts.action.ActionFormBean Set org.apache.struts.action.ActionFormBean properties Begin event threw exception java.lang.IllegalArgumentException: java.lang.ClassCastException@8d30fb at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509) at org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) at org.apache.struts.digester.Digester.startElement(Digester.java:528) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:393) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:216) at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:594) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:817) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:74 8) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentS cannerImpl.java:1454) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148) at javax.xml.parsers.SAXParser.parse(SAXParser.java:316) at javax.xml.parsers.SAXParser.parse(SAXParser.java:91) at org.apache.struts.digester.Digester.parse(Digester.java:755) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) at
Re: Struts configuration problem with Apache + Tomcat + Struts HELP!!!!!!!!!!!!!!!!!!!!
Subject: Re: Struts configuration problem with Apache + Tomcat + Struts HELP From: Hyunjin Kim [EMAIL PROTECTED] === Well.. Sorry for being not clear on my last msg.. I actually had: VirtualHost 111.111.111.111 ServerName asdf.com WebAppConnection conn warp asdf.com:8008 WebAppDeploy struts-examples conn / /VirtualHost which says if I call URL asdf.com, access struts-example from TOMCAT webapp directory using warp connection (If I understood it correctly). and I can see the index.jsp page using asdf.com, that should not be the problem(or so I think). What I have discovered just now is that when I try to access a jsp file that doesn't really sit in the struts-examples directory, such as iamnothere.jsp by calling asdf.com/iamnothere.jsp, the browser will show the TOMCAT SPECIFIC 404 error page (the blueish one...). But when I try to access *.do call that's actually mapped in the struts examples web.xml(the ones that I can get to using asdf.com:8080), the browser will give me the browser specific 404 error page(the microsoft one..).. I think it's some kinda clue... I think, apache is not forwarding a call of which extension it cannot recognize to tomcat such as *.do.. I think I should add some kinda AddHandler directive to httpd.conf file, but I can't find any documentation for warp connection HELP ME!!! Jack Gao [EMAIL PROTECTED] wrote in message news:a86fhp$ilb$[EMAIL PROTECTED]... Well, as you said, you are using warp connector to connect Apache with Tomcat. In your httpd.conf file, you define virtual directory for tomcat examples, which is: WebAppConnection conn warp asdf.com:8008 WebAppDeploy examples conn / But after you install struts, you didn't add virtual directory for struts examples, I believe that's the problem. You can add them like: WebAppDeploy struts-examples conn /struts-examples WebAppDeploy struts-. conn /struts- In fact, whatever you add in your tomcat, if you want direct request from apache to it, you need to add it into your WebAppConnections. Hope this can help. Jack Hyunjin Kim [EMAIL PROTECTED] wrote in message news:a86d6r$i6q$[EMAIL PROTECTED]... Hi, I have successfully installed Apache 1.3 and Tomcat 4 and they work beautifully. I have tried to test the example applications that came with Tomcat and they work without any problem when called from Apache(using port 80 and virtual host directive). All servlets are being called as expected (e.g. calling /servlet/HelloWorldExample will execute the expected HelloWorldExample..) my httpd.conf file fot the example application is as following: *** LoadModule rewrite_module libexec/mod_rewrite.so LoadModule webapp_module libexec/mod_webapp.so ClearModuleList AddModule mod_env.c AddModule mod_log_config.c AddModule mod_mime.c AddModule mod_negotiation.c AddModule mod_status.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c AddModule mod_userdir.c AddModule mod_alias.c AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_webapp.c IfModule mod_dir.c DirectoryIndex index.html index.htm, index.jsp /IfModule VirtualHost 111.111.111.111 ServerName asdf.com WebAppConnection conn warp asdf.com:8008 WebAppDeploy examples conn / /VirtualHost *** As you can see from the conf file, I am using WARP connector(recommended by TOMCAT, or so i thought) to connect Apache with TOMCAT. Warp connector's documentation says it should forward *ALL* requests to TOMCAT(which is not what I want, but for now, I can live with that) And you whould also see that my Apache doesn't have mod_jserv currently installed(not in libexec) OK.. So I thought everything was fine, and then I installed Struts 1.1b. Everything works as expected when called straight from TOMCAT (:8080). However, when I call the struts Action Servlet(*.do) from Apche, my apache gives me ***Error 404*** file not found exception. Can anyone help me with this problem?? I am in panic mode cause I should be doing coding, not configuration... THANK YOU VERY MUCH Jason Kim. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts configuration problem with Apache + Tomcat + Struts HELP!!!!!!!!!!!!!!!!!!!!
I'm not sure if this helps since I'm still learning struts too...you mentioned that *.do is not being recognized by TomCat huh...well, I wonder if it's because you did not configure your web.xml properly. Anyway, this is how I define the *.do in my web.xml: servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping Hopes this helps. Good Luck -- On Sun, 31 Mar 2002 00:25:01 Struts Newsgroup wrote: Subject: Re: Struts configuration problem with Apache + Tomcat + Struts HELP From: Hyunjin Kim [EMAIL PROTECTED] === Well.. Sorry for being not clear on my last msg.. I actually had: VirtualHost 111.111.111.111 ServerName asdf.com WebAppConnection conn warp asdf.com:8008 WebAppDeploy struts-examples conn / /VirtualHost which says if I call URL asdf.com, access struts-example from TOMCAT webapp directory using warp connection (If I understood it correctly). and I can see the index.jsp page using asdf.com, that should not be the problem(or so I think). What I have discovered just now is that when I try to access a jsp file that doesn't really sit in the struts-examples directory, such as iamnothere.jsp by calling asdf.com/iamnothere.jsp, the browser will show the TOMCAT SPECIFIC 404 error page (the blueish one...). But when I try to access *.do call that's actually mapped in the struts examples web.xml(the ones that I can get to using asdf.com:8080), the browser will give me the browser specific 404 error page(the microsoft one..).. I think it's some kinda clue... I think, apache is not forwarding a call of which extension it cannot recognize to tomcat such as *.do.. I think I should add some kinda AddHandler directive to httpd.conf file, but I can't find any documentation for warp connection HELP ME!!! Jack Gao [EMAIL PROTECTED] wrote in message news:a86fhp$ilb$[EMAIL PROTECTED]... Well, as you said, you are using warp connector to connect Apache with Tomcat. In your httpd.conf file, you define virtual directory for tomcat examples, which is: WebAppConnection conn warp asdf.com:8008 WebAppDeploy examples conn / But after you install struts, you didn't add virtual directory for struts examples, I believe that's the problem. You can add them like: WebAppDeploy struts-examples conn /struts-examples WebAppDeploy struts-. conn /struts- In fact, whatever you add in your tomcat, if you want direct request from apache to it, you need to add it into your WebAppConnections. Hope this can help. Jack Hyunjin Kim [EMAIL PROTECTED] wrote in message news:a86d6r$i6q$[EMAIL PROTECTED]... Hi, I have successfully installed Apache 1.3 and Tomcat 4 and they work beautifully. I have tried to test the example applications that came with Tomcat and they work without any problem when called from Apache(using port 80 and virtual host directive). All servlets are being called as expected (e.g. calling /servlet/HelloWorldExample will execute the expected HelloWorldExample..) my httpd.conf file fot the example application is as following: *** LoadModule rewrite_module libexec/mod_rewrite.so LoadModule webapp_module libexec/mod_webapp.so ClearModuleList AddModule mod_env.c AddModule mod_log_config.c AddModule mod_mime.c AddModule mod_negotiation.c AddModule mod_status.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c AddModule mod_userdir.c AddModule mod_alias.c AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_webapp.c IfModule mod_dir.c DirectoryIndex index.html index.htm, index.jsp /IfModule VirtualHost 111.111.111.111 ServerName asdf.com WebAppConnection conn warp asdf.com:8008 WebAppDeploy examples conn / /VirtualHost *** As you can see from the conf file, I am using WARP connector(recommended by TOMCAT, or so i thought) to connect Apache with TOMCAT. Warp connector's documentation says it should forward *ALL* requests to TOMCAT(which is not what I want, but for now, I can live with that) And you whould also see that my Apache doesn't have mod_jserv currently installed(not in libexec) OK.. So I thought everything was fine, and then I installed Struts 1.1b. Everything works as expected when called straight from TOMCAT (:8080). However, when I call the struts Action Servlet(*.do) from Apche, my apache gives me ***Error 404*** file not found exception. Can anyone help me with this problem?? I am in panic mode cause I should be doing coding, not configuration... THANK YOU VERY MUCH Jason Kim. -- To unsubscribe, e-mail
Struts configuration problem with Apache + Tomcat + Struts
Subject: Struts configuration problem with Apache + Tomcat + Struts From: Hyunjin Kim [EMAIL PROTECTED] === Hi, I have successfully installed Apache 1.3 and Tomcat 4 and they work beautifully. I have tried to test the example applications that came with Tomcat and they work without any problem when called from Apache(using port 80 and virtual host directive). All servlets are being called as expected (e.g. calling /servlet/HelloWorldExample will execute the expected HelloWorldExample..) my httpd.conf file fot the example application is as following: *** LoadModule rewrite_module libexec/mod_rewrite.so LoadModule webapp_module libexec/mod_webapp.so ClearModuleList AddModule mod_env.c AddModule mod_log_config.c AddModule mod_mime.c AddModule mod_negotiation.c AddModule mod_status.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c AddModule mod_userdir.c AddModule mod_alias.c AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_webapp.c IfModule mod_dir.c DirectoryIndex index.html index.htm, index.jsp /IfModule VirtualHost 111.111.111.111 ServerName asdf.com WebAppConnection conn warp asdf.com:8008 WebAppDeploy examples conn / /VirtualHost *** As you can see from the conf file, I am using WARP connector(recommended by TOMCAT, or so i thought) to connect Apache with TOMCAT. Warp connector's documentation says it should forward *ALL* requests to TOMCAT(which is not what I want, but for now, I can live with that) And you whould also see that my Apache doesn't have mod_jserv currently installed(not in libexec) OK.. So I thought everything was fine, and then I installed Struts 1.1b. Everything works as expected when called straight from TOMCAT (:8080). However, when I call the struts Action Servlet(*.do) from Apche, my apache gives me ***Error 404*** file not found exception. Can anyone help me with this problem?? I am in panic mode cause I should be doing coding, not configuration... THANK YOU VERY MUCH Jason Kim. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts configuration problem with Apache + Tomcat + Struts
Subject: Re: Struts configuration problem with Apache + Tomcat + Struts From: Jack Gao [EMAIL PROTECTED] === Well, as you said, you are using warp connector to connect Apache with Tomcat. In your httpd.conf file, you define virtual directory for tomcat examples, which is: WebAppConnection conn warp asdf.com:8008 WebAppDeploy examples conn / But after you install struts, you didn't add virtual directory for struts examples, I believe that's the problem. You can add them like: WebAppDeploy struts-examples conn /struts-examples WebAppDeploy struts-. conn /struts- In fact, whatever you add in your tomcat, if you want direct request from apache to it, you need to add it into your WebAppConnections. Hope this can help. Jack Hyunjin Kim [EMAIL PROTECTED] wrote in message news:a86d6r$i6q$[EMAIL PROTECTED]... Hi, I have successfully installed Apache 1.3 and Tomcat 4 and they work beautifully. I have tried to test the example applications that came with Tomcat and they work without any problem when called from Apache(using port 80 and virtual host directive). All servlets are being called as expected (e.g. calling /servlet/HelloWorldExample will execute the expected HelloWorldExample..) my httpd.conf file fot the example application is as following: *** LoadModule rewrite_module libexec/mod_rewrite.so LoadModule webapp_module libexec/mod_webapp.so ClearModuleList AddModule mod_env.c AddModule mod_log_config.c AddModule mod_mime.c AddModule mod_negotiation.c AddModule mod_status.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c AddModule mod_userdir.c AddModule mod_alias.c AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_webapp.c IfModule mod_dir.c DirectoryIndex index.html index.htm, index.jsp /IfModule VirtualHost 111.111.111.111 ServerName asdf.com WebAppConnection conn warp asdf.com:8008 WebAppDeploy examples conn / /VirtualHost *** As you can see from the conf file, I am using WARP connector(recommended by TOMCAT, or so i thought) to connect Apache with TOMCAT. Warp connector's documentation says it should forward *ALL* requests to TOMCAT(which is not what I want, but for now, I can live with that) And you whould also see that my Apache doesn't have mod_jserv currently installed(not in libexec) OK.. So I thought everything was fine, and then I installed Struts 1.1b. Everything works as expected when called straight from TOMCAT (:8080). However, when I call the struts Action Servlet(*.do) from Apche, my apache gives me ***Error 404*** file not found exception. Can anyone help me with this problem?? I am in panic mode cause I should be doing coding, not configuration... THANK YOU VERY MUCH Jason Kim. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4 + Apache + Struts 1.1 + Warp Connector Configuration Problem
Subject: Tomcat 4 + Apache + Struts 1.1 + Warp Connector Configuration Problem From: Hyunjin Kim [EMAIL PROTECTED] === Hi, I am not subscriber to this mailing list, so if you can cc my email([EMAIL PROTECTED]), I will really appreciate. I am trying to install struts 1.1beta on Tomcat 4.0.3 that¡¯s connected to Apache HTTP server by warp connector (OS is Linux ? RedHat 7.1). Warp connector was configured nicely and works fine (JSPs works fine when called by apache). Then, I installed struts on Tomcat 4.0.3 and deployed example and documentation and they work fine when called by Tomcat (http://localhost:8080/struts-example will work fine..). However, execution of those two applications will not generate tomcat-apache.conf file as described in struts installation document. So.. as a workaround, I created tomcat-apache.conf by hand and added AddHandler jserv-servlet .do To the tomcat-apache.conf file, then added Include /usr/local/apache/conf/tomcat-apache.conf To httpd.conf file. (passed ./apachectl configtest.) My httpd.conf file looks like: VirtualHost 111.111.111.111 ServerName www.foo.com ErrorLog logs/foo.com-error_log WebAppConnection connect warp www.foo.com:8008 WebAppDeploy foo connect / /VirtualHost I know the warp connector is configured correctly because I can access www.foo.com and execute jsps. However, when I try to execute .do calls, Apache tries to find the actual .do **FILE** instead of executing Action servlet. I don¡¯t think Apache knows about the existence of jserv-servlet handler. Or is that handler just for AJP connector?? If anyone has successfully configured Tomcat + Apache + Struts + Warp connector, your help would be greatly appreciated. And any one knows why tomcat didn¡¯t generate tomcat-apache.conf? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Configuration problem
I am trying to design an application using the Struts framework, however, I have come across some contradicting information in the documentation and was wondering what is the right way of implementing my design. Suppose I have a Action object that calls a JavaBean to perform some business logic returning a recordset to the action object. The action object can then take this recordset save it in the appropriate scope for the request and forward it onto the view to display the results. (At least this is what I have understood of the Struts framework) My problem is with the following statement, found in the User's Guide. Section 1.3 an action object should pass the request to another object, usually a JavaBean. To allow resuse on other platforms, business-logic JavaBeans should not refer to any Web application objects. The action object should translate needed details from the HTTP request and pass those along to the business-logic beans as regular Java variables Now in the Developers Guide under the section for Connection Pooling I found the following. DataSource dataSource = (DataSource) servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY); conn = dataSource.getConnection(); ... perform required functions as in the previous example ... conn.close(); If this getConnection code was in my JavaBean then I have tied the JavaBean to a web application object specifically the servlet.getServletContext() which is a no-no. Would I be better to allocate my connection in my Action object and then either set it or pass it in to my JavaBean object. What have people done to handle this situation. Thanks Scott Watson. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Configuration problem
Scott, In your Action object, get your DataSource using the call to servlet.getServletContext()..., and then pass the DataSource to your JavaBean object where you allocate your connection. This way you avoid tying your JavaBean to the web application, and also remove the business logic from your Action. Hope that helps, Karen -Original Message- From: Scott Watson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 6:16 AM To: Struts Users Mailing List Subject: Struts Configuration problem I am trying to design an application using the Struts framework, however, I have come across some contradicting information in the documentation and was wondering what is the right way of implementing my design. Suppose I have a Action object that calls a JavaBean to perform some business logic returning a recordset to the action object. The action object can then take this recordset save it in the appropriate scope for the request and forward it onto the view to display the results. (At least this is what I have understood of the Struts framework) My problem is with the following statement, found in the User's Guide. Section 1.3 an action object should pass the request to another object, usually a JavaBean. To allow resuse on other platforms, business-logic JavaBeans should not refer to any Web application objects. The action object should translate needed details from the HTTP request and pass those along to the business-logic beans as regular Java variables Now in the Developers Guide under the section for Connection Pooling I found the following. DataSource dataSource = (DataSource) servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY); conn = dataSource.getConnection(); ... perform required functions as in the previous example ... conn.close(); If this getConnection code was in my JavaBean then I have tied the JavaBean to a web application object specifically the servlet.getServletContext() which is a no-no. Would I be better to allocate my connection in my Action object and then either set it or pass it in to my JavaBean object. What have people done to handle this situation. Thanks Scott Watson. -- 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: Configuration problem
View source shows a href=http://www.foo.com; foo.com/a I assume you mean a href=http://www.foo.com; foo.com/a Without the close bracket on a. If this is what View Source is showing, then your browser is receiving the correct HTML. In other words, it isn't a problem with your server/jsp/struts configuration. Devon
RE: Configuration problem
Devon oops - just a typo when I sent the mail - but still the problem has gone away - and I don't know why. thanks for time and effort david View source shows a href=http://www.foo.com; foo.com/a I assume you mean a href=http://www.foo.com; foo.com/a Without the close bracket on a. If this is what View Source is showing, then your browser is receiving the correct HTML. In other words, it isn't a problem with your server/jsp/struts configuration. Devon BEGIN:VCARD VERSION:2.1 N:Bolsover;David;Paul;Mr. FN:David Paul Bolsover ORG:Bolsover.Com TITLE:Consultant NOTE:V card info TEL;WORK;VOICE:+44 (0) 1614276922 TEL;HOME;VOICE:+44 (0) 1614276920 TEL;CELL;VOICE:+44 07773428118 TEL;WORK;FAX:+44 (0) 1614276922 ADR;HOME;ENCODING=QUOTED-PRINTABLE:;;1 Stephouses =0D=0AHollywood Lane=0D=0AMellor;Stockport;Cheshire;SK6 5LR;U= nited Kingdom LABEL;HOME;ENCODING=QUOTED-PRINTABLE:1 Stephouses =0D=0AHollywood Lane=0D=0AMellor=0D=0AStockport, Cheshire SK6 5= LR=0D=0AUnited Kingdom URL: URL:http://www.bolsover.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010228T193131Z END:VCARD
Configuration problem
Hi I will confess from the start that this is not really a struts problem but I am sure that members of the group will have seen this before and know the solution. I have a link on a jsp page to an external site : a href=http://www.foo.com; foo.com/a The problem is that when I browse to the page containing this link (http://127.0.0.1/demosite/index.jsp) the browser insists on attempting to find http://127.0.0.1/www.foo.com which as you would expect returns a 404 Configuration is W2K Apache 1.3.20 Tomcat 3.2.1 david
RE: Configuration problem
I have a link on a jsp page to an external site : a href=http://www.foo.com; foo.com/a When you have this page in your browser and do a View Source is that really what you see? Devon
RE: Configuration problem
Devon View source shows a href=http://www.foo.com; foo.com/a Now the strangest thing - the problem has gone away - and I don't think I changed anything of significance - very odd - I wonder if this could be an ie6 thing? david -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 29 August 2001 10:49 To: [EMAIL PROTECTED] Subject: RE: Configuration problem I have a link on a jsp page to an external site : a href=http://www.foo.com; foo.com/a When you have this page in your browser and do a View Source is that really what you see? Devon