Bugs item #803983, was opened at 2003-09-10 13:23
Message generated for change (Settings changed) made by starksm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=803983&group_id=22866

Category: JBossWeb
Group: v3.2
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Mike Youngstrom (youngm)
>Assigned to: Scott M Stark (starksm)
Summary: deploy url passed to Tomcat used as relative

Initial Comment:
If I add a url to for deployment to the JBoss Deploy

service, for example:



<attribute name="URLs">

     deploy/,file://C:/Projects/Footbush/BSCore/deploy/

</attribute>



And then create a .war directory in the above path:

C:/Projects/Footbush/BSCore/deploy/BSCoreActionsTest.war



When I start the server I get a deployment error like

the following:



14:17:24,343 INFO  [MainDeployer] Starting deployment

of package:

file://C:/Projects/Footbush/BSCore/deploy/BSCoreActionsTest.war/

14:17:24,484 INFO  [EmbeddedTomcatService] deploy,

ctxPath=/BSCoreActionsTest,

warUrl=file://C:/Projects/Footbush/BSCore/deploy/BSCoreActionsTest.war/

14:17:24,531 ERROR [Engine]

StandardContext[/BSCoreActionsTest]: Resources start

failed:

java.lang.IllegalArgumentException: Document base

C:\Projects\Footbush\BSCore\dist\jboss\server\default\.\Projects\Footbush\BSCore\deploy\BSCoreActionsTest.war

does not exist or is not a readable directory

        at

org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193)



I'm no expert but it appears that there is a problem in

the tomcat integrations interpritation of deployemnt

URLs.  In that it assumes all urls in the deployment

service are relative and not absolute.  If I change the

URLs attribute to:



    <attribute name="URLs">

       deploy/, ../../../../deploy/

    </attribute>



then everything seems to deploy and work fine.



Mike

----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2003-09-17 10:48

Message:
Logged In: YES 
user_id=175228

This is a win32 file system artifact/feature that sees the

file portion of the

"file://C:/Projects/Footbush/BSCore/deploy/" as not being an

absolute path. Try the following code frament:



URL u2 = new URL("file://C:/tmp/bugs/803983/");

String file = u2.getFile();

System.out.println(u2+".getFile() : "+file);

File f2 = new File(file);

System.out.println("isAbsolute: "+f2.isAbsolute());



and this indicates that the file URL is not an absolute path:



file://C:/tmp/bugs/803983/.getFile() : /tmp/bugs/803983/

isAbsolute: false



which causes the problem. Change the deploy url to:

   "file:/C:/Projects/Footbush/BSCore/deploy/"

and it works fine.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=803983&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to