struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Noël Ribette <jean-noel.ribe...@improve.fr>
Subject Re: new problem - fixed one, now I've got another
Date Thu, 15 Mar 2001 15:04:03 GMT
Hum... I think you shoud have

<html:form action="..." focus="..."> 

and not 

<html:form action="..." focus="..."/>.


(no / at the end)


----- Original Message ----- 
From: Jesse Vitrone <jvitrone@giantbear.com>
To: <struts-user@jakarta.apache.org>
Sent: Thursday, March 15, 2001 1:52 PM
Subject: RE: new problem - fixed one, now I've got another


> David,
>     It's furthur down in this message already, but here it is again, now
> with the </body> added.
>  
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>  
> <html:html locale="true">
>  <head>
>   <title>
>    <bean:message key="generic.title"/>
>   </title>
>   <html:base/>
>  </head>
>  
>  <logic:notPresent name="org.apache.struts.action.MESSAGE"
> scope="application">
>   <font color="red">
>    ERROR:  Application resources not loaded -- check servlet container
>    logs for error messages.
>   </font>
>  </logic:notPresent>
>  
>  <body bgcolor="white">
>  
> <!-- <html:errors/> -->
>  
>   <h2><center><bean:message key="index.welcome"/></center></h2>
>  
>   <blockquote>
>    <html:form action="/checkPrice" focus="isbn"/>
>     <bean:message key="index.prompt"/>
>     <html:text property="isbn" size="10" maxlength="10"/>
>     <html:submit property="submit" value="Get Price"/>
>    </html:form>
>   </blockquote>
>  
>  </body> 
> </html:html>
>  
> Thanks for your help,
>     Jesse
>  
> 
> -----Original Message-----
> From: David Waddell [mailto:David.Waddell@citria.com]
> Sent: Thursday, March 15, 2001 8:51 AM
> To: 'struts-user@jakarta.apache.org'
> Subject: RE: new problem - fixed one, now I've got another
> 
> 
> think this is to do with the attributes you have set in some of the struts
> tags
> in you jsp code
> can you send the jsp code for the file that is causing  this error ?
> 
> -----Original Message-----
> From: Jesse Vitrone [mailto:jvitrone@giantbear.com]
> Sent: 15 March 2001 13:48
> To: 'struts-user@jakarta.apache.org'
> Subject: RE: new problem - fixed one, now I've got another
> 
> 
> Maya,
>     Here's my classpath.
>  
> CLASSPATH=C:\IBMDebug\lib\dertrjrt.jar;C:\IBMVJava\eab\runtime30;C:\IBMVJava
> \eab\runtime20;.;C:\SQLLIB\java\db2java.zip;
> C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;.;.;C:\Xerces\xerces.jar;
> C:\Xalan\xalan.jar;C:\Xerces\xercesSamples.j
> ar;C:\ApacheGroup\ApacheSOAP\lib\soap.jar;C:\ApacheGroup\ApacheSOAP\samples.
> jar;z:\unix_dobson\3rdparty\lib;z:\unix_dobs
> on\gbapps;z:\unix_dobson\gbservlets;C:\Jars\servlet.jar;Z:\unix_dobson\gbapp
> s\com\giantbear\soap;Z:\unix_dobson\gbapps\c
> om\giantbear\soap\samples;Z:\unix_dobson\gbapps\com\giantbear\soap\test;c:\J
> avaMail\mail.jar;c:\JAF\activation.jar;C:\JD
> BC\jdbc2_0-stdext.jar;C:\ApacheGroup\Ant\lib\ant.jar;C:\ApacheGroup\Ant\lib\
> jaxp.jar;C:\ApacheGroup\Ant\lib\parser.jar
> 
>     CP is used along with CLASSPATH when I compile.
>  
> CP=C:\ApacheGroup\Tomcat\lib\jaxp.jar;C:\ApacheGroup\Tomcat\lib\parser.jar;C
> :\jdk\lib\tools.jar;C:\ApacheGroup\Struts\\lib\struts.jar
>  
>  
> Yes, I can get the struts-example to run without a problem.
>  
> I have a bunch of struts.jar's, but they're all the same, and there's only
> one under my 'my-example' directory.
>  
> Thanks again for your time and ideas,
>     Jesse
> 
>  
>  -----Original Message-----
> From: Maya Muchnik [mailto:mmuchnik@pumatech.com]
> Sent: Thursday, March 15, 2001 8:43 AM
> To: struts-user@jakarta.apache.org
> Subject: Re: new problem - fixed one, now I've got another
> 
> 
> Check how many struts.jar files you have. Did you try EXAMPLE? What is your
> CLASSPATH? 
> 
> Jesse Vitrone wrote: 
> 
> 
>  The error says this:javax.servlet.ServletException: Cannot find bean
> org.apache.struts.taglib.html.BEAN in scope null 
> Wouldn't that imply that there should be a BEAN class in my struts.jar?If
> not, where is it trying to find it?Thanks again,    Jesse 
> 
> -----Original Message----- 
> From: Jesse Vitrone [ mailto:jvitrone@giantbear.com
> <mailto:jvitrone@giantbear.com> ] 
> Sent: Thursday, March 15, 2001 8:30 AM 
> To: 'struts-user@jakarta.apache.org' 
> Cc: 'WYoung@metasolv.com' 
> Subject: RE: new problem - fixed one, now I've got another 
>  
> Yes, my struts.jar is in my WEB-INF\lib dir. 
> 
> Thanks though, 
>         Jesse 
> 
> 
> -----Original Message----- 
> From: Young, Wayne [ mailto:WYoung@metasolv.com <mailto:WYoung@metasolv.com>
> ] 
> Sent: Thursday, March 15, 2001 8:26 AM 
> To: 'struts-user@jakarta.apache.org' 
> Subject: RE: new problem - fixed one, now I've got another 
> 
> 
> Is struts.jar in in WEB-INF\lib? (you answered all of Maya's questions 
> except that one) 
> 
> 
> Wayne 
> wyoung@metasolv.com 
>   
> 
> 
> -----Original Message----- 
> From: Jesse Vitrone [ mailto:jvitrone@giantbear.com
> <mailto:jvitrone@giantbear.com> ] 
> Sent: Thursday, March 15, 2001 7:11 AM 
> To: 'struts-user@jakarta.apache.org' 
> Subject: RE: new problem - fixed one, now I've got another 
> 
> 
> Ana - here's the soruce of the jsp that's getting the errors.  Anything look
> 
> wrong? 
> 
> 
> <%@ page language="java" %> 
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> 
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> 
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> 
> 
> 
> <html:html locale="true"> 
>  <head> 
>   <title> 
>    <bean:message key="generic.title"/> 
>   </title> 
>   <html:base/> 
>  </head> 
> 
> 
>  <logic:notPresent name="org.apache.struts.action.MESSAGE" 
> scope="application"> 
>   <font color="red"> 
>    ERROR:  Application resources not loaded -- check servlet container 
>    logs for error messages. 
>   </font> 
>  </logic:notPresent> 
> 
> 
>  <body bgcolor="white"> 
> 
> 
>  <h2><center><bean:message key="index.welcome"/></center></h2>

> 
> 
>  <blockquote> 
>   <html:form action="/checkPrice" focus="isbn"/> 
>    <bean:message key="index.prompt"/> 
>    <html:text property="isbn" size="10" maxlength="10"/> 
>    <html:submit property="submit" value="Get Price"/> 
>   </html:form> 
>  </blockquote> 
> 
> 
> </html:html> 
> 
> 
> Thanks in advance, 
>     Jesse 
> 
> 
> -----Original Message----- 
> From: Jesse Vitrone [ mailto:jvitrone@giantbear.com
> <mailto:jvitrone@giantbear.com> ] 
> Sent: Wednesday, March 14, 2001 5:25 PM 
> To: 'struts-user@jakarta.apache.org' 
> Subject: RE: new problem - fixed one, now I've got another 
> 
> 
> OK, those are the 2 that I renamed, so I guess that's not my problem. 
> 
> 
> Thanks for you help, I'll keep pluggin' away. 
> 
> 
> Jesse 
> -----Original Message----- 
> From: Maya Muchnik [ mailto:mmuchnik@pumatech.com
> <mailto:mmuchnik@pumatech.com> ] 
> Sent: Wednesday, March 14, 2001 5:25 PM 
> To: struts-user@jakarta.apache.org 
> Subject: Re: new problem - fixed one, now I've got another 
> 
> 
> Yes, you can replace the 2 names (in red color): 
>   <!-- Action Servlet Configuration --> 
>   <servlet> 
>     <servlet-name>action</servlet-name> 
>     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

>     <init-param> 
>       <param-name>application</param-name> 
> 
> 
> <param-value>org.apache.struts.example.ApplicationResources</param-value>

>     </init-param> 
>     <init-param> 
>       <param-name>config</param-name> 
>       <param-value>/WEB-INF/struts-config.xml</param-value> 
> Jesse Vitrone wrote: 
>  That's exacly the setup that I have :)*.tld and my web and config xml files
> 
> are in my_app/WEB-INFand my 2 jsp's are under 
> my_app/ http://localhost/my_app/index.jsp
> <http://localhost/my_app/index.jsp>  is what's giving me that error.I 
> have Apache with Tomcat, so the :8080 isn't needed.Any other ideas?  The 
> config xml and resource properties file can be named what ever I want, 
> right?  As long as I refer to them with the right name in my web.xml?Thanks 
> again,    Jesse 
> -----Original Message----- 
> From: Maya Muchnik [ mailto:mmuchnik@pumatech.com
> <mailto:mmuchnik@pumatech.com> ] 
> Sent: Wednesday, March 14, 2001 5:00 PM 
> To: struts-user@jakarta.apache.org 
> Subject: Re: new problem - fixed one, now I've got another 
> 
> 
> Check a location of all struts-*tld files. They have to be under 
> your_app/WEB-INF (check with your web.xml). struts.jar file has to be under 
> your_app/WEB-INF/lib. Put your first.jsp file under your_app directory and 
> try http://localhost:8080/your_app/first.jsp
> <http://localhost:8080/your_app/first.jsp>  
> Jesse Vitrone wrote: 
> Good idea, but it didn't help, I still got the same directory.Thanks anyway,
> 
> Jesse 
> -----Original Message----- 
> From: Maya Muchnik [ mailto:mmuchnik@pumatech.com
> <mailto:mmuchnik@pumatech.com> ] 
> Sent: Wednesday, March 14, 2001 3:43 PM 
> To: struts-user@jakarta.apache.org 
> Subject: Re: new problem - fixed one, now I've got another 
> Try to stop Tomcat. Remove everything under tomcat/work directory and 
> startup Tomcat again. 
> Jesse Vitrone wrote: 
> 
> 
> OK, I fixed the other properties file problem, it turned out that I had a 
> syntax error in my web.xml and I didn't see Tomcat barf when it loaded. 
> Now that I've fixed that, and Tomcat doesn't give any error when it starts, 
> I get this error when I try to load my first page. 
> javax.servlet.ServletException: Cannot find bean 
> org.apache.struts.taglib.html.BEAN in scope null 
> at 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> 
> l.java:459) 
> at 
> _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.
> 
> java:315) 
> 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.connector.Ajp13ConnectionHandler.processConnection
> 
> (Ajp13ConnectionHandler.java:160) 
> 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:484) 
> Does this look familiar to anyone? 
> Thanks in advance, 
>         Jesse
> 
> __________________________________________________________________
> 
> If you are not the addressee of this confidential e-mail and any
> attachments, please delete it and inform the sender; unauthorised
> redistribution or publication is prohibited.
> Views expressed are those of the author and do not necessarily
> represent those of Citria Limited.
> __________________________________________________________________
> 
> 


Mime
View raw message