• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

Tassie Online Book Store

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody, would anybody help me about this Tassie Online Book Store project, n'appreciate whom reply with this,
the matter is this:

i use jboss to run this n'my .war file name search and holdings are 4 Servlet, as the following xml version:
.......... web.xml ...........................................................................
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<servlet>
<servlet-name>BookDetailsServlet</servlet-name>
<servlet-class>com.brainysoftware.tassie.servlet.BookDetailsServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AddToCartServlet</servlet-name>
<servlet-class>com.brainysoftware.tassie.servlet.AddToCartServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>CheckCartServlet</servlet-name>
<servlet-class>com.brainysoftware.tassie.servlet.CheckCartServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>SearchServlet</servlet-name>
<servlet-class>com.brainysoftware.tassie.servlet.SearchServlet</servlet-class>
</servlet>


<servlet-mapping>
<servlet-name>BookDetailsServlet</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AddToCartServlet</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CheckCartServlet</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SearchServlet</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>

</web-app>
....................................................................................................


n'i'm havin' the .jar actually my ejb that is named tassie, that ejb-jar xml deployment descriptor drops down like this:

......... ejb-jar.xml ...........................................................................................
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>

<ejb-jar>
<description>The Search Bean for Tassie Online Bookstore</description>
<display-name>Search Bean</display-name>
<enterprise-beans>
<session>
<ejb-name>BookDetails</ejb-name>
<home>com.brainysoftware.tassie.ejb.BookDetailsHome</home>
<remote>com.brainysoftware.tassie.ejb.BookDetails</remote>
<ejb-class>com.brainysoftware.tassie.ejb.BookDetailsBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
<session>
<ejb-name>Search</ejb-name>
<home>com.brainysoftware.tassie.ejb.SearchHome</home>
<remote>com.brainysoftware.tassie.ejb.Search</remote>
<ejb-class>com.brainysoftware.tassie.ejb.SearchBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
<session>
<ejb-name>Cart</ejb-name>
<home>com.brainysoftware.tassie.ejb.CartHome</home>
<remote>com.brainysoftware.tassie.ejb.Cart</remote>
<ejb-class>com.brainysoftware.tassie.ejb.CartBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
............................................................................................................

the truth is that i'm searching this with the following url but it goes only to let me back only what is possible for 'SearchServlet' and some query through database even this is annoying too, because it won't look all field, and don't go any deeper than this for example don't let me see what happening in the other 'Servlets', what i'm trying is to look:
http://localhost:8080/search/
http://localhost:8080/search/servlet/...
http://localhost:8080/search/....


very thanks y'all
 
author & internet detective
Posts: 40685
827
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The URL Pattern is the same for all 4 of your servlets. How is your server supposed to know which one to use? Try making them more specific and distinct.
 
A. S. Georgie
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:The URL Pattern is the same for all 4 of your servlets. How is your server supposed to know which one to use? Try making them more specific and distinct.



thanksssssss
 
reply
    Bookmark Topic Watch Topic
  • New Topic