[JBoss-user] [EJB/JBoss] - Re: HTTP Status 404

2004-10-31 Thread Raist_Majere
I think I know the problem you have and the solution to it: you have to define the 
servlet-mapping element on your web.xml file after the servlet element declaration. It 
can be something like:

  | 
  |   SearchServlet
  |   /Search
  | 
  | 
There are two reasons you have to add this:
- The first one is that with the servlet element you just declare the servlet for 
being deployed in the webapp, but with the servlet-mapping you associate an URL to 
your servlet, so "everyone" can access it.
- What is said in your book about accessing "anonymous" servlets (that is, servlets 
without mappings) using the URL "/servlet/ServletClass" is correct, but due to 
security reasons, almost on every web container (like Tomcat) this behaviour is 
disabled.
Well, after that explanation only rests to explain you the URL you have to use to 
access that servlet. If you use the mapping I wrote, it would be 
"http://localhost:8080/TassieOnlineWeb/Search";. This URL is composed first of your 
webapp context-root (defined in application.xml) which is TassieOnlineWeb, and then 
the servlet-mapping name you used in the web.xml file (in the example above, 
"/Search").
Hope my explanations helps you in understanding the error you have.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853406#3853406

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853406


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: HTTP Status 404

2004-10-30 Thread Kjell-Einar

This is
..deploy/TassieOnline.ear/META-INF/application.xml


http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.4" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; >
   TassieOnline
   
  
 TassieOnlineWeb.war
 /TassieOnlineWeb
  
   
   
  TassieOnlineEJB.jar
   

-
Here follows
deploy/TassieOnline.ear/TassieOnlineWeb.war/WEB-INF/web.xml:
---

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
   Deployment for Tassie Online

Tassie Online Book Store -- Example application


SearchServlet

com.brainysoftware.tassie.servlet.SearchServlet






I should also mention that according to the log-file this application is loaded 
without any error:
-
10:25:51,886 INFO  [EARDeployer] Init J2EE application: 
file:/usr/local/jboss-4.0.0/server/default/deploy/TassieOnline.ear/
10:25:52,486 INFO  [EjbModule] Deploying Search
10:25:52,585 INFO  [EjbModule] Deploying BookDetails
10:25:52,669 INFO  [EjbModule] Deploying Cart
10:25:53,219 INFO  [EJBDeployer] Deployed: 
file:/usr/local/jboss-4.0.0/server/default/deploy/TassieOnline.ear/TassieOnlineEJB.jar/
10:25:53,328 INFO  [TomcatDeployer] deploy, ctxPath=/TassieOnlineWeb, 
warUrl=file:/usr/local/jboss-4.0.0/server/default/deploy/TassieOnline.ear/TassieOnlineWeb.war/
10:25:53,837 INFO  [EARDeployer] Started J2EE application: 
file:/usr/local/jboss-4.0.0/server/default/deploy/TassieOnline.ear/


Any ideas?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853371#3853371

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853371


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: HTTP Status 404

2004-10-29 Thread Raist_Majere
Do you have a jboss-web.xml in your WAR file or application.xml in EAR file? If so, 
can you provide them, as well as your web.xml file? That could help.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853347#3853347

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853347


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user