This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
My app cannot locate the jsp file located in the main Beer-v1 folder .
I have checked and rechecked and can't seem to find what the problem is.
My Jsp file :result.jsp
Java file
Couldn't get any thing from the log files as well...
2011-03-12 06:31:46 Commons Daemon procrun stderr initialized
Mar 12, 2011 6:31:47 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Apache Software Foundation\Tomcat 5.5\bin;.;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Lenovo\Bluetooth Software\;C:\Program Files\Lenovo\Bluetooth Software\syswow64;C:\Program Files (x86)\Java\jdk1.6.0_19\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Common Files\Microsoft Shared\Windows Live
Mar 12, 2011 6:31:47 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 12, 2011 6:31:47 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 830 ms
Mar 12, 2011 6:31:48 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 12, 2011 6:31:48 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.33
Mar 12, 2011 6:31:48 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 12, 2011 6:31:48 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 12, 2011 6:31:48 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 12, 2011 6:31:48 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/20 config=null
Mar 12, 2011 6:31:48 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 12, 2011 6:31:48 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1017 ms
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Tom Reilly
Rancher
Joined: Jun 01, 2010
Posts: 618
posted
0
In which directory is your result.jsp located?
Edit: Sorry, you said where it is located in the first sentence of your post.
Yea, it got to be something silly, as the example you posted works fine on my tomcat 7. Take a look at the attachment for any differences with your version.
Cheers!
PS. I've commented all the model classes, as I don't have their source.
PS2. What extensions are allowed in javaranch? Zip, Jar, rar, tar.bz2, txt - all are rejected...
[edit] I removed the download link and added the zip file as attachment
I had a look at your problem and I saw the problem immediately
Your "result.jsp" is actually "result.jsp.txt", so I guess you created the file using some text editor (e.g. notepad) and notepad added ".txt" to the file. And that's why your servlet can't find the file. So remove ".txt" from "result.jsp.txt", so you'll get a real jsp and not a txt file and your example will work flawless