You can keep struts.jar in CP at compiler time, not run-time. But point to your_app/WEB-INF/lib dir.

Jesse Vitrone wrote:

 Maya et al:    Changing the <html:form ...>  tag fixed that other problem.    And my next problem, the "javax.servlet.ServletException: org.apache.struts.util.PropertyMessageResources" went away when I got rid of my C:\ApacheGroup\Struts\lib\struts.jar    Why aren't I allowed to have the above file?!    How am I supposed to compile if I dont' have struts.jar somewhere in my classpath?  CP is only there at compile time, it's not there at run-time, so I didn't think it would be an issue.Thanks to all for your help - you guys and gals rule!!!Jesse
-----Original Message-----
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 8:58 AM
To: [EMAIL PROTECTED]
Subject: Re: new problem - fixed one, now I've got another
 
Take out from CP and CLASSPATH marked with red!!! And remove C:\ApacheGroup\Struts\\lib\struts.jar file.
struts.jar file must be ONLY under webapps/WEB-INF/lib for each yours application !!!
 

Jesse Vitrone wrote:

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\gbapps\com\giantbear\soap;Z:\unix_dobson\gbapps\c
om\giantbear\soap\samples;Z:\unix_dobson\gbapps\com\giantbear\soap\test;c:\JavaMail\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.jarYes, 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:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 8:43 AM
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 8:30 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 8:26 AM
To: '[EMAIL PROTECTED]'
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
[EMAIL PROTECTED]
 

-----Original Message-----
From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 7:11 AM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 5:25 PM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 5:25 PM
To: [EMAIL PROTECTED]
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 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:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 5:00 PM
To: [EMAIL PROTECTED]
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
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:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 3:43 PM
To: [EMAIL PROTECTED]
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

Reply via email to