the way you try to work is quite opposed to the ear/war autodeploy concept

setting individual context is not possible with autodeploy,
but you may set some parameters with a defaultcontext tag
in the <Attribute name="Config"> tag, using eithe my patch designed for
jboss2.4.4
or jboss2.4.5 which should  integrate it in a more coherent way

anyway in my opinion it wont works for generated jsp, since
docbase is set by the auto deployer...

however there is maybe a way which is more coherent with jboss "feel"

deploy a blank webapp into a directory 
generated.war   (jboss deploys either war/ear/jar archive or plain dir with
the war/ear/jar suffix),
put the generated jsp in this directory

and rewrite (ie touch) the web.xml so that the autodeployer detect that and
redeploy the webapp...

You can also try to do that with your main webapp,
but I'm afraid it will cause subtle "cutting the branch you sit on"
problems...

however having 2 webbapp cause other problems because the webapps share
nothing.

you may also try  to deploy the webapp into an ear:
put the jsp in the embedded .war directory
(I'm not sure one can embed a .war plain directory in a .ear directory),
and then touch the application.xml

 -----Message d'origine-----
De: John Morrow [mailto:[EMAIL PROTECTED]]
Date: mercredi 8 mai 2002 21:06
�: [EMAIL PROTECTED]
Objet: [JBoss-user] virtual directories


Hi All,

I'm working on an application that's deployed on JBoss 2.4.4 with Tomcat
4.0.1. When the application is running, the user performs actions that
generate jsp files which are used later on to display the results of the
user's work.

The application is packaged as an .ear file in the jboss\deploy directory
and when I start JBoss it is hot-deployed into a jboss\tmp\webXXXX
directory. The problem I have is at runtime, I don't know where to write
these generated jsp files to. As the .ear file is hot-deployed to a
temporary directory with a name that can change (webXXXX) I can't write it
there as I won't necessarily know the directory name beforehand. I know that
I could unpack .ear file in a directory like myapp.ear and have it deployed
like that (i.e. not hot-deployed) but there are quite a lot of EJB jars in
the .ear file and unjarring them would result in a lot of files and I was
hoping there might be a neater solution.

I've seen some previous posts on this that suggest creating a new directory
like newstuff.war and adding this to the list of autodeployed dirs in
jboss.jcml and placing my new files there. However in my case, the generated
jsps contain custom tags and the classes for them and the classes they
themselves reference are all in the .ear file so my newstuff webapp would
have to use classes in the main webapp and I'm not sure if it is possible
for one webapp to use classes in another? or how to do that if it is??


One solution I was trying to get working was to use virtual directories, by
editing the jboss.jcml file EmbeddedCatalinaSX mbean and adding a
                  <context path="generatedJsps"
docBase="c:\mydir\generatedfiles\"/> 

in the config attribute, like it's done in tomcat's server.xml. Then I could
just write my generated jsp files to a definite directory and have requests
to the "generatedJsps" redirected to their real location. However this isn't
working for me at the moment - has anyone done something similar using
virtual directories in the EmbeddedCatalinaSX mbean?

Anyway, any ideas or brainwaves greatly appreciated!

Thanks in advance,


John.

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to