Can you post the output of
jar -tf MikeApp1.jar
Adrian please find the output of .jar.
It contains Simple JSP, Servlet, and HTML.
Do I have to deploy this as a .war file, .ear, or can I keep as a jar. Then how will I execute under JBoss?
Volume in drive G has no label.
Volume Serial Number is C090-B276
Directory of G:\JBoss-2.4.4_Tomcat-4.0.1\jboss\deploy
03/12/02 08:39a .
03/12/02 08:39a ..
12/29/01 02:06a 88 deploy.txt
03/06/02 03:19p lib
03/11/02 12:10p 6,126 MikeApp1.jar
12/29/01 02:18a 12,338 tomcat-test.ear
6 File(s) 18,552 bytes
6,750,883,840 bytes free
G:\JBoss-2.4.4_Tomcat-4.0.1\jboss\deploy>d:\jdk1.3.1\bin\jar -tvf MikeApp1.jar
0 Mon Mar 11 12:10:48 EST 2002 META-INF/
71 Mon Mar 11 12:10:48 EST 2002 META-INF/MANIFEST.MF
0 Thu Mar 07 14:15:52 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/
421 Thu Mar 07 10:02:46 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/Hello.htm
446 Thu Mar 07 10:03:18 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/Hello.jsp
0 Thu Mar 07 13:47:12 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/WEB-INF/
0 Thu Mar 07 15:24:00 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/WEB-INF/classes/
0 Thu Mar 07 15:24:00 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/WEB-INF/classes/dependency cache/
1347 Thu Mar 07 15:24:00 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/WEB-INF/classes/dependency cache/moreser
1451 Thu Mar 07 11:08:40 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/WEB-INF/classes/HelloWebApp.class
0 Thu Mar 07 15:24:00 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/WEB-/moreservlets/
1415 Thu Mar 07 15:24:00 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/WEB-INF/classes/moreservlets/HelloServle
1350 Thu Mar 07 15:27:28 EST 2002 g:/JBoss-2.4.4_Tomcat-4.0.1/catalina/webapps/MikeApp1/WEB-INF/web.xml
You don't want the directories in the jar.
You should have
jar -cf MikeApp1.jar *
To answer the first part of your question,
you could just copy the directory MikeApp1 into
Good call, I jarred up MikeApp1 and got the .jar deployed without the directory stuff from catalina and put it in the deploy directory under JBoss, it worked fine.
I also went to the FAQ about those nasty Error 500 mappings and created a workaround for the index.html under a .war subdirectory.
The only question I have is on the last point. When I
tried copying the the entire Catalina webapp directory MikeApp1 and put it under deploy, I can put in my URL the following http://localhost:8080/MikeApp1/
and see my 2 links I normally would, Hello.htm and Hello.jsp, but the problem is the hperlinks show another "/" (i.e.http://localhost:8080/MikeApp1//Hello.htm). Then
when I click on it, I get a 404 error telling me the resource is not available.
-- Any thoughts,
Try naming the directory
I think the lack of an extension might be confusing
That Works, thanks, for getting me going :)