Strange Petstore Demo Problem - template.jsp or productcateg
youandwhosearmy Dec 5, 2001 12:17 PMI am having a puzzling problem with the Petstore Demo on JBoss.
First the specs:
Windows 98
JBoss 2.4.1/Tomcat 3.2.3
Petstore 1.1.2 JBoss Patch
I installed Petstore on JBoss/Tomcat and applied the patch. Everything seemed to work, until I selected a category, and I can see no animals.
Footer and header show up fine. I originally thought that it might be a .jsp problem or a database problem.
However I don't think it is though for the following reasons:
1) The database is populated.
2) I can login and change the default account (using .jsp and the database).
3) I can add new accounts
One thing that would help me immensely (I will post it in a seperate request) is to make sure that I know of all of the possible debugging logs.
In anycase, I have culled the following possibilities from the jboss\log\server.log (doubtful, but there is a note of desperation):
...
[WebService] Starting
[WebServer] Started server: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8083]
[WebService] Started webserver with address: null port: 8083
...
I was thinking the following might be the problem, yet note the snippet from the Tomcat log (which follows the one below) - these are the only template.jsp + null errors I have, but the Tomcat log snip is from a different time!
[EmbeddedTomcatSX] 2001-12-05 10:06:09 - Ctx( /estore ): IOException in: R( /estore + /template.jsp + null) Connection reset by peer: socket write error
[EmbeddedTomcatSX] 2001-12-05 10:06:18 - Ctx( /estore ): IOException in: R( /estore + /template.jsp + null) Connection reset by peer: socket write error
[EmbeddedTomcatSX] 2001-12-05 10:06:31 - Ctx( /estore ): IOException in: R( /estore + /template.jsp + null) Connection reset by peer: socket write error
[EmbeddedTomcatSX] 2001-12-05 10:08:43 - Ctx( /estore ): IOException in: R( /estore + /template.jsp + null) Connection reset by peer: socket write error
from the tomcat\log\jasper.log (long) - This is a sample of the output I get from the jasper.log. I thought perhaps the PathInfo being null might be the problem, but as I pointed out earlier, the other .jsp pages are rendering fine.
2001-12-05 10:04:28 - JspEngine --> /topindex.jsp
2001-12-05 10:04:28 - ServletPath: /template.jsp
2001-12-05 10:04:28 - PathInfo: null
2001-12-05 10:04:28 - RealPath: C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\topindex.jsp
2001-12-05 10:04:28 - RequestURI: /estore/template.jsp
2001-12-05 10:04:28 - QueryString: category_id=FISH
2001-12-05 10:04:28 - Request Params:
2001-12-05 10:04:28 - category_id = FISH
2001-12-05 10:04:28 - Classpath according to the Servlet Engine is: C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\classes;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\jaxp.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\parser.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\customerEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\personalizationEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\inventoryEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\shoppingcartEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\mailerEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\signonEjb_client.jar
2001-12-05 10:04:31 - JspEngine --> /productcategory.jsp
2001-12-05 10:04:31 - ServletPath: /template.jsp
2001-12-05 10:04:31 - PathInfo: null
2001-12-05 10:04:31 - RealPath: C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\productcategory.jsp
2001-12-05 10:04:31 - RequestURI: /estore/template.jsp
2001-12-05 10:04:31 - QueryString: category_id=FISH
2001-12-05 10:04:31 - Request Params:
2001-12-05 10:04:31 - category_id = FISH
2001-12-05 10:04:31 - Classpath according to the Servlet Engine is: C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\classes;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\jaxp.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\parser.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\customerEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\personalizationEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\inventoryEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\shoppingcartEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\mailerEjb_client.jar;C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\petstore.ear\web1010\WEB-INF\lib\signonEjb_client.jar
Any help would be greatly appreciated. I could simply drop this and move on, but I hate leaving it incomplete.
Many thanks,
David