-
1. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
cicerpjoe Jul 20, 2002 9:42 AM (in response to jhicks)Hi
I had the same problem but found a thread that gives a workaround.
1.) Create a directory called ROOT.war and put it in the directory \jboss-3.0.0_tomcat-4.0.3\server\default\deploy\
or where ever your jboss installation is.
2.) Create another directory called WEB-INF inside the ROOT.war directory.
3.) Create a file called web.xml with the following content:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app></web-app>
4.)Copy your original jsp and servlets to the ROOT.war directory
5.) Invoke your webserver on port 8083 (default installation port) or where you have configured it with the admin tool that is available on port 8082.
This is just copied stuff from different threads in the forum but it works.
If you find a better solution let me know.
Hope it works for you -
2. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
cicerpjoe Jul 21, 2002 7:01 AM (in response to jhicks)Me again
After restarting and checking again the configuration I recognized, that the described solution does not work correctly. Normal HTML pages are displayed but jsp and servlets does not work on port 8083. Frankly I had another instance of Apache/Tomcat running on 6080/6083 without Jboss installed.
Sorry for that.
But who has the answer how to get jboss 3.x Tomcat bundle running? -
3. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
javacanada Jul 24, 2002 12:52 AM (in response to jhicks)I got the same problem days ago. You did nothing wrong, your problems came from the zip file, I think that you got the jboss3-tomcat402.zip from jboss.org. NO! download it again from [http://prdownloads.sourceforge.net/jboss/jboss-3.0.0RC3_tomcat-4.0.3.zip?download] , you will not see that stupid exception again!
-
4. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
cicerpjoe Jul 25, 2002 5:51 PM (in response to jhicks)Hi
javacanada is absolutely right. It works excellent with the release candidate 3 "RC3" code.
But I am confused, that RC3 works as it should, and the final release 3.0.0 does not work as suggested.
Thanks anyway
Pat -
5. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
tomb Jul 30, 2002 1:58 PM (in response to jhicks)hi,
they forgot to put this webtest.ear file in jboss/server/default/deploy folder.
Just add this file in deploy older and thats it. -
6. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
romalley Jul 31, 2002 12:05 PM (in response to jhicks)Placing the webtest.ear file in my jboss/serverdefault/deploy folder did NOT clear up the problems for me. I am now downloading the release candidate RC3.
I had the No Context Error whether I was accessing the root folder on port 8080 or after copying that ROOT folder to ROOT.war within the jboss/serverdefault/deploy folder and trying to access it on port 8083. Same problem after creating a physical file ROOT.war and deploying it.
Also, when using the jar -cf command to create the war file, I believe the upper case folder name WEB-INF gets converted to lower case web-inf and as a result, a deployment module within JBoss says it can't find it. Makes me wonder if others who have been successful are using a Win2K or similar environment or some other operating system.
At any rate, I'll try RC3 and see if my many problems go away. -
7. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
romalley Jul 31, 2002 3:10 PM (in response to jhicks)Yes!
The RC3 did it. Now root works on port 8080 into the catalina folder, and on port 8083 as well. Yes, ROOT.war is in the webtest.ear file but there must be something else wrong with the production release that prevents port 8080 from working. The message I get with the standard release on port 8080 is the same 'No Context Configured' message.
BTW, my theory about lower case web-inf folders was wrong, it turns out I had the web-inf folder burried too deep in my war file.
Now, for some reason I can't get a short web app of my own running -- it's deploying properly from a physical .war file but serves up a blank page to the browser. Will keep trying. -
8. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
romalley Jul 31, 2002 6:13 PM (in response to jhicks)I seem to be talking to myself here but here's an update so I don't lead anyone else astray.
Turns out that the presence of webtest.ear in the jboss/server/default/deploy folder does in fact fix the whole problem alone.
My problem was that the 2-3 other web deployments I had placed into the /deploy folder were competing to be the root site. I am guessing that even the tomcat deployed on port 8080 is connected with the jboss/server/default/deploy folder in some way -- housed within the tomcat4-service.
I wish there were a quick read document that described how these components are hooked together so we would not have to do all the trial and error.
Bob -
9. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
palbornoz Jul 31, 2002 10:32 PM (in response to jhicks)hi,
I download the realese candidate 3 RC3. But it don't work, i don't know why? It don't deploy correctly the service.
I copy WEBTEST.EAR in the folder deploy/default of the version JBoss-3.0._Tomcat-4.0.3, it work right, too. -
10. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
rickplmr Aug 1, 2002 4:09 PM (in response to jhicks)This did the trick, and puts an end to the last 3 hours of searching around the forum this morning trying to figure out why that stupid-@#$%! context error was popping up when running JBoss 3.0 and Tomcat bundled.
I had figured out from other threads that I had to war up my web app and copied it to the deploy folder. But this webtest.ear file allowed me to also see the default Tomcat web applications.
How did you figure this out? I'm very impressed, and appreciate the help from both you and romalley.
This was a major blunder for JBoss IMHO.
Rick -
11. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
casanova Dec 12, 2002 4:54 PM (in response to jhicks)Hi,
I'm having the same troubles.
What I would like to know is why the ear file is still missing from later releases (ie jboss-3.0.4_tomcat-4.1.12)?!
I would have thought that Tomcat default webapps should be separate from JBoss stuff - that is, why doesn't the ROOT webapp packaged with Tomcat work on it's own - it should have nothing to do with JBoss (unless of course I'm missing something right in front of my face - which is more than likely).
What's confusing is that unzipping the package, and following the Tomcat setup docs doesn't seem to get the Tomcat default pages working - which seems erroneous to me.
Perhaps we should develop a JBoss/Tomcat integration doc? Or something to bridge the separate JBoss/Tomcat docs anyway.
Now, if only I can fix the database name binding issue..... -
12. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
finbarr Jan 15, 2003 4:13 PM (in response to jhicks)hi all-
new to jboss and trying to install 3.0.4 w tomcat 4.1.12 and having the same prob: can someone please tell me where i get this 'webtest.ear'? and where to put it? (be nice)
so much for runs out of the box, eh? but how much did i pay for it, right?
thank you,
finny -
13. Re: JBoss 3.0 Beta & Tomcat 4.0.2 - No Context Error
finbarr Jan 15, 2003 4:16 PM (in response to jhicks)hi all-
new to jboss and trying to install 3.0.4 w tomcat 4.1.12 and having the same prob: can someone please tell me where i get this 'webtest.ear'? and where to put it? (be nice)
so much for runs out of the box, eh? but how much did i pay for it, right?
thank you,
finny