-
1. Re: JBoss 3.0.3_Tomcat 4.1.12
websel Oct 27, 2002 7:34 AM (in response to rupinder)Hi,
I presume you start JBOSS default server.
Placing jsp files in the deployment directory won't work.
Instead create a directory with the extension .war
Or create a war file with the jar tool.
Here's a quick&dirty example:
Start Jboss, en check if it's running.
(this is on linux, but it's similat on windows)
cd $JBOSS_HOME/server/default/deploy/
mkdir test.war
cd test.war
vi index.jsp
//or use any editor and put the following line in there:
<% out.print("Hello World!");%>
Now point your browser to http://<your jboss host name>:8080/test/
And voila Hello World! is on your screen.
Now the .war package file trick:
Use the same jsp file from the previous example and change it in:
<% out.print("Hello World two!");%>
Create the package by the following command:
jar cvf test2.war index.jsp
Copy this package:
cp test2.war $JBOSS_HOME/server/default/deploy/
Now point your browser to http://<your jboss host name>:8080/test2/
And Hello World two! is on your screen.
See how the directory or the package name determents the addition to the url. For pages in the root you need to check the manuals. (hint) This is set in the web-inf.xml and jboss.xml files.
Happy coding!
Wessel de Roode -
2. Re: JBoss 3.0.3_Tomcat 4.1.12
websel Oct 27, 2002 7:50 AM (in response to rupinder)RTFM ;-)
http://www.jboss.org/faq.jsp#FAQ-WEB
Wessel