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
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
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 :
|
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
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
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!!!
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
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
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
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
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
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
|
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
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):
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
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
|
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 :
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
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
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
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 :
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
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 :
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
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
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
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
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
___
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
29 matches
Mail list logo