Problems with ear-file with JBoss!!!
Hello Amigos!(
I have already asked this but I pushed the wrong button "accept", but I do not got it to work. So I have ask it again.
)
I have problems with deploying a ear-file at JBoss. When I try to deploy it at a Orion it works fine but not with JBoss.
The ear-file contains both a JSP and a Servlet. The JSP seams to work with Orion JBoss but not the servlet.
I want to make a ear-file thats works at both Orion and JBoss.
So if any one could tell me whats wrong I would be most happy!
You can download the file at: http://www.it-gymnasiet.info/programmering_c/enterprise_web.ear
It is a very small ear-fil.
Best regards
Fredrik
Ps please answer in english
-----------------------------------
Arne_v wrote
JBoss 2.4.x with Tomcat
JBoss 2.4.x with Jetty
JBoss 3.0.x (with Jetty)
JBoss 3.0.x with Tomcat
?
-----------------------------------
Arne_v wrote
What errors do you get ?
--------------------------
Arne_v wrote
In your JSP you refer to:
servlet/ControllerServlet => entrprise_web/servlet/ControllerServlet
In your web.xml you define:
<url-pattern>/ControllerServlet</url-pattern> =>
enterprise_web/ControllerServlet
This does not work together !
-------------------------------------
I wrote and pushed the worng button
Hello!
I have tried and tried to deploy the ear-fil but I cant get it right at JBoss.
I Only reach teh index.html but not the servlet. In Orion everything works fine.
I have change my web.xml to <url-pattern>enterprise_web/ControllerServlet</url-pattern> and that works with Orion as well so I will keep that.
But I could not change to servlet/ControllerServlet => entrprise_web/servlet/ControllerServlet in the index.html like:
<!--Works with Orion <FORM ACTION="servlet/ControllerServlet" METHOD="POST">-->
<FORM ACTION="entrprise_web/servlet/ControllerServlet" METHOD="POST">
That did not work, not either at Orion.
In Orion I got 2 config files
server.xml
<application name="enterprise_web" path="../applications/enterprise_web.ear" />
and
default-web-site.xml
<web-app application="enterprise_web" name="enterprise_web" root="/enterprise_web" />
...Is there anything in JBoss that I have to configure??.
So if anyone could help me out I would be most happy!!!
Best regards
Fredrik
PS
I Use JBoss 3.0.4
The error is that when I try to connect to the servlet from the index.hml I just get the page can not be displayed.
