Subject: Deploying an expanded WAR file - msg#00311
List: java.jboss.user
Hi. I'm using JBoss 3.0.0 with the embedded Jetty. I'm trying to deploy my
war file as a directory. I named my directory myapp.war. In it were some
jsp's, html, and the required WEB-INF/web.xml.
I put this in my jboss-service.xml:
<mbean code="org.jboss.deployment.scanner.URLDirectoryScanner"
name="jboss.deployment:type=DeploymentScanner,flavor=URL">
....
<attribute name="URLs">
<urls>
<dir name="C:/projects/myapp.war" />
</urls>
</attribute>
</mbean>
But when I restarted JBoss, the deployer seemed to try to deploy each and
every file in the directory, failing each time because the jsp files weren't
valid zip files (duh). What might I be doing wrong?
Thanks,
Jim
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
JBoss 3.0 Quick Guide
Hi Geeks
I am going to finish the JBoss 3.0 Quick Guide that
can be found under
http://sourceforge.net/project/showfiles.php?group_id=22866&release_id=97289
So if you have feedback for it please send it directly
to me. Note that the template project is a separate
download just underneath the Quick Guide.
Have a nice day
xxxxxxxxxxxxxxxxx
Andreas Schaefer
Senior Consultant
JBoss Group, LLC
xxxxxxxxxxxxxxxxx
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
Next Message by Date:
click to view message preview
Re: Deploying an expanded WAR file
You might try something like
<urls>
<dir name="C:/projects/" />
</urls>
I'm not quite sure what the scanner uses to decide if it should scan a
directory or deploy it. I think it always scans directories and deploys
files. You might also try
<urls>
<dir name="file://C:/projects/myapp.war" />
</urls>
david jencks
On 2002.07.08 22:45:22 -0400 Jim Crossley wrote:
> Hi. I'm using JBoss 3.0.0 with the embedded Jetty. I'm trying to deploy
> my
> war file as a directory. I named my directory myapp.war. In it were
> some
> jsp's, html, and the required WEB-INF/web.xml.
>
> I put this in my jboss-service.xml:
>
> <mbean code="org.jboss.deployment.scanner.URLDirectoryScanner"
> name="jboss.deployment:type=DeploymentScanner,flavor=URL">
> ....
> <attribute name="URLs">
> <urls>
> <dir name="C:/projects/myapp.war" />
> </urls>
> </attribute>
> </mbean>
>
> But when I restarted JBoss, the deployer seemed to try to deploy each and
> every file in the directory, failing each time because the jsp files
> weren't
> valid zip files (duh). What might I be doing wrong?
>
> Thanks,
> Jim
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Oh, it's good to be a geek.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
Previous Message by Thread:
click to view message preview
JBoss 3.0 Quick Guide
Hi Geeks
I am going to finish the JBoss 3.0 Quick Guide that
can be found under
http://sourceforge.net/project/showfiles.php?group_id=22866&release_id=97289
So if you have feedback for it please send it directly
to me. Note that the template project is a separate
download just underneath the Quick Guide.
Have a nice day
xxxxxxxxxxxxxxxxx
Andreas Schaefer
Senior Consultant
JBoss Group, LLC
xxxxxxxxxxxxxxxxx
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
Next Message by Thread:
click to view message preview
Re: Deploying an expanded WAR file
You might try something like
<urls>
<dir name="C:/projects/" />
</urls>
I'm not quite sure what the scanner uses to decide if it should scan a
directory or deploy it. I think it always scans directories and deploys
files. You might also try
<urls>
<dir name="file://C:/projects/myapp.war" />
</urls>
david jencks
On 2002.07.08 22:45:22 -0400 Jim Crossley wrote:
> Hi. I'm using JBoss 3.0.0 with the embedded Jetty. I'm trying to deploy
> my
> war file as a directory. I named my directory myapp.war. In it were
> some
> jsp's, html, and the required WEB-INF/web.xml.
>
> I put this in my jboss-service.xml:
>
> <mbean code="org.jboss.deployment.scanner.URLDirectoryScanner"
> name="jboss.deployment:type=DeploymentScanner,flavor=URL">
> ....
> <attribute name="URLs">
> <urls>
> <dir name="C:/projects/myapp.war" />
> </urls>
> </attribute>
> </mbean>
>
> But when I restarted JBoss, the deployer seemed to try to deploy each and
> every file in the directory, failing each time because the jsp files
> weren't
> valid zip files (duh). What might I be doing wrong?
>
> Thanks,
> Jim
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Oh, it's good to be a geek.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf