[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-21 Thread lovelyliatroim
Ok so its broken, cheers for the help Peter. I will wait for beta3 to come out. anonymous wrote : | c) wait for JBossAS 5.0 beta3 (looks like it might be out on the 21st) | Thats the 21st of when?? 21 st december?? So today?? Ok back to hot deployment, this is something that i will need

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-21 Thread PeterJ
Yes, by the the 21st I mean today (actually, I meant tomorrow ;-)). It's not there yet but there is still a lot of day left. Do not add the URLDeploymentScanner to bootstrap-beans.xml. The URLDeploymentScanner is an mbean while the beans in bootstrap-beans.xml are pojos. On 4.x, all deployers

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-20 Thread lovelyliatroim
anonymous wrote : | Does the application work in 4.2.2? You never said. | I kind of did, see my comment on the difference of the directory structure between 4.2.2 and 5.0. 4.2.2 has no web-inf directory in the work directory whereas 5.0 does. Works fine in 4.2.2!! anonymous wrote : |

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-20 Thread lovelyliatroim
Ok this might be easier, take the jmx-console.war in the default dir that is an exploded war file from jboss. In the work directory for this war i see | +jmx-console | +org | +WEB-INF | +classes | tldCache.ser | What do you have for this directory

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-20 Thread lovelyliatroim
Also JDK version is 1.5.0_13!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4114603#4114603 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114603 ___ jboss-user mailing list

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-20 Thread lovelyliatroim
Ok interesting update!! Downloaded the 5.0 beta2 again today, set the one up on my windows box and set up on my linux box, started both up!! Took a look in the work directory for the jmx-console.war on my linux box and i have no web-inf dir, take a look on my windows box and i do have it!!!

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-20 Thread lovelyliatroim
anonymous wrote : | m also having another issue and wondering is there any relation, i should post in the right forum but just want to ask do you think there is any relation going on. Im in the process of setting up my development environment and want to hot swap/deploy my code. Ive read

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-20 Thread lovelyliatroim
didnt mention that i was running on windows XP!! Now I have!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4114676#4114676 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114676

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-20 Thread PeterJ
Wow, lots of posts. Let me see what I can answer. First, I did see where you stated that in 4.2.x that the work directory does not contain web-inf, but as I pointed out you never said that the app worked correctly there, though you did now. The presence of the web-inf directory under the work

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-20 Thread PeterJ
Important correction! I just now downloaded the source from the beta3 tag in svn, built it, and tried my app there. It works correctly, even on Windows: 13:41:00,427 INFO [STDOUT] ProjectRootClass: Probe URL is jar:file:/F:/opt/jbos

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-19 Thread lovelyliatroim
Just to clear up the confusion, the WEB_INF is located under myapp.war and not standalone in the deploy directory!! Sorry my indentation again ;) The code that does this is packaged in a jar file in the WEB_INF/lib directory!! anonymous wrote : | So some more questions - where did the code

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-19 Thread lovelyliatroim
Just so you know my directory structure of where the jsp is packaged(shouldnt make a difference but ill post it anyways) So please note this is all below the myapp.war in case my indentation is not up to scratch again | +myapp.war | +conf | +conf.properties |

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-19 Thread PeterJ
I also placed my class in a jar file in the web-inf/lib directory, and I am calling it from a jsp. So as far as I can tell I have the same setup that you have. Yet there must be something different because I am not seeing what you are seeing. For example, here are the contents of my

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-19 Thread PeterJ
I tried something. Instead of exploded directories, I packaged the war into a file, and the ear into a file. Now I am seeing the same results you are seeing. I though you stated that you were using exploded directories? Here is my directory/file structure (starting with the deploy directory):

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-18 Thread lovelyliatroim
anonymous wrote : | Did you really mean the the WAR is as follows: | First off I had everything packed in the war, then i did like you suggested and exploded the WAR in a directory so it looked like | deploy | +myapp.war | +conf | +config.properties | +WEB-INF

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-18 Thread lovelyliatroim
Ok using 4.2.2.GA I see the difference now. In 5.0 version the whole lib directories are copied over into the work directory, this is not the case in 4.2.2GA, My dir structure in the work directory looks like this 5.0 version anonymous wrote : | myapp |+org |+WEB-INF |

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-18 Thread lovelyliatroim
Sorry in that last post it might look a bit confusing, the indentation didnt come through but the lib directory is under the web-inf directory. Just in case any confusion!! ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113683#4113683 Reply to the post :

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-18 Thread PeterJ
Regarding the contents of the war archive (whther file or directory), here is where my confusion comes in. This is your illustration: deploy | +myapp.war | +conf | +config.properties | +WEB-INF This tells me that there are two entities in the deploy directory: myapp.war

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-18 Thread PeterJ
Wait a minute, I think I understand now. What you posted is the code that gets the base directory, and the code that opens the properties file appends conf/config.properties top the base to get the file location. I added your code to my servlet, and here is the output (when all of my classes

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-17 Thread lovelyliatroim
I did delete the sub dir in the work but not in the tmp!! will delete them and get back to you!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113299#4113299 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113299

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-17 Thread lovelyliatroim
Ok I deleted the sub-dir for my war in both the tmp and work directories. I have my war file exploded in a directory in the deploy directory but still no joy. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113300#4113300 Reply to the post :

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-17 Thread PeterJ
LL, I am trying to replicate the problem, but I have a few questions. 1) Originally, you stated that the your WAR contained: myapp/conf/config.properties myapp/WEB-INF/ etc etc Did you really mean the the WAR is as follows: myapp.war | + conf |+ config.properties | + WEB-INF In other

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-15 Thread PeterJ
I am assuming that you also deleted the work and tmp directories, and restarted the server, when you exploded the war? Looks like I will have to try this myself to see what is going on. Won't get to that until Monday, I'll post my results. View the original post :

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-14 Thread lovelyliatroim
Ok i exploded the war file as a directory in the deploy directory and still i get the same problem. Makes no difference, the classloader loads the classes from the libraries inside the work directory so when class.getResource() gets called it returns a URL as to where the class file is located

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-13 Thread lovelyliatroim
Hi Folks, Im using the latest JBoss AS 5.0 beta2 and experiencing something similar to the above. I have a war file that looks like this myapp/conf/config.properties myapp/WEB-INF/ etc etc Ok now im a bit confused about what the tmp directory and the work directory do and their

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-13 Thread PeterJ
The tmp directory is used to explode war/ear/sar/etc files. The work directory is used by Tomcat to compile JSPs. If you are loading a properties file using a directory location (as opposed to getting it from the classpath), you are better off deploying an exploded directory. View the

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-13 Thread lovelyliatroim
Its a third party lib that i use that loads the resource file so i cant change how this works.It does this by getting hold of the class and then class.getResourceAs(). As a work around for the moment i have copied the properties file into the work directory but this would not be an ideal

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-13 Thread PeterJ
You could explode the existing ear and war files. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112717#4112717 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112717 ___

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Unwaring web app - leaves some files in the war

2007-12-13 Thread lovelyliatroim
will try it tomorrow and will let you know how i get on!! Cheers Peter, LL View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112719#4112719 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112719