Avatar billede fredand Forsker
21. november 2002 - 15:29 Der er 3 kommentarer og
1 løsning

Problems with ear-file with JBoss!!!

Hello Amigos!

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
Avatar billede arne_v Ekspert
21. november 2002 - 17:07 #1
JBoss 2.4.x with Tomcat
JBoss 2.4.x with Jetty
JBoss 3.0.x (with Jetty)
JBoss 3.0.x with Tomcat

?
Avatar billede arne_v Ekspert
21. november 2002 - 17:09 #2
What errors do you get ?
Avatar billede arne_v Ekspert
21. november 2002 - 17:19 #3
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 !
Avatar billede fredand Forsker
27. november 2002 - 09:40 #4
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.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester