tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renato" <webmas...@cienciapura.com.br>
Subject Java Petstore + Tomcat 3.3 web.xml problem
Date Thu, 01 Jan 1970 00:00:00 GMT
Hi all,

I'm trying to deploy the Java Pet store 1.1.2 with Tomcat 3.3 and JBoss. I 
actually trying to run Tomcat apart from JBoss and putting just the client 
side EJBs on my WEB-INF directory.

I'm using the web.xml provided by the application ( they say to run Tomcat 
integrated with JBoss, so I don't know if it's suppose to work the way I'm 
doing )

....

  <env-entry>
    <env-entry-name>ejb/catalog/CatalogDAOClass</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-
value>com.sun.j2ee.blueprints.shoppingcart.catalog.dao.CatalogDAOImpl</env-
entry-value>
  </env-entry>
  <env-entry>
    <env-entry-name>ejb/profilemgr/ProfileMgrDAOClass</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-
value>com.sun.j2ee.blueprints.personalization.profilemgr.dao.ProfileMgrDAOIm
pl</env-entry-value>
  </env-entry>
  <env-entry>
    <env-entry-name>server/ServerType</env-entry-name>
    <env-entry-value>JBoss 2.4 BETA</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
  </env-entry>

  <ejb-ref>
    <ejb-ref-name>ejb/catalog/Catalog</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    
<home>com.sun.j2ee.blueprints.shoppingcart.catalog.ejb.CatalogHome</home>
    
<remote>com.sun.j2ee.blueprints.shoppingcart.catalog.ejb.Catalog</remote>
  </ejb-ref>

....

And I have the error during Tomcat initialization ( note that I didn't do 
anything yet... )

2002-02-02 18:26:37 - Ctx() : Validating web.xml
2002-02-02 18:26:37 - Ctx() : web.xml: Error org.xml.sax.SAXParseException: 
Element "web-app" does not allow "servlet" here.
2002-02-02 18:26:38 - Ctx() : Line 20 /web-app/
2002-02-02 18:26:38 - Ctx() : web.xml: Error org.xml.sax.SAXParseException: 
Element "env-entry" allows no further input; "env-entry-value" is not 
allowed.
2002-02-02 18:26:38 - Ctx() : Line 49 /web-app/env-entry/
2002-02-02 18:26:38 - Ctx() : Add env-entry ejb/catalog/CatalogDAOClass  
java.lang.String 
com.sun.j2ee.blueprints.shoppingcart.catalog.dao.CatalogDAOImpl null
2002-02-02 18:26:38 - Ctx() : web.xml: Error org.xml.sax.SAXParseException: 
Element "env-entry" allows no further input; "env-entry-value" is not 
allowed.
2002-02-02 18:26:38 - Ctx() : Line 54 /web-app/env-entry/
2002-02-02 18:26:38 - Ctx() : Add env-entry 
ejb/profilemgr/ProfileMgrDAOClass  java.lang.String 
com.sun.j2ee.blueprints.personalization.profilemgr.dao.ProfileMgrDAOImpl 
null
2002-02-02 18:26:38 - Ctx() : Add env-entry server/ServerType  
java.lang.String JBoss 2.4 BETA null

What can this be ? An old version of a parser ? Do these tags are allowed 
on the web.xml ? 

Thanks
Renato

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message