RE: CD Drive as webapps (EmbeddedTomcat)

2003-06-16 Thread Shapira, Yoav

Howdy,
What error do you get?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Lee Peik Feng [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 12:38 PM
To: Tomcat Users List
Subject: CD Drive as webapps (EmbeddedTomcat)

Hi,
I would like to set my CD Rom drive as one of my webapps.

When I run tomcat with normal installation with below setting in
server.xml (my CD Rom drive is F:\ and the content of the CD is MP3
files)
Context path=/music docBase=F:/ debug=0/
I could create the webapps and get my mp3 songs link correctly.

However, when I use EmbeddedTomcat with reference to O'Reily
website, I
couldn't create the webapps.

The error occur in
org.apache.catalina.core.StandardHostDeployer.install
(at line 260 from tomcat 4.1.24 source)

if
(appBase.getCanonicalPath().equals(baseDir.getCanonicalPath()))
{
isAppBase = true;
}

baseDir.getCanonicalPath() will give a null pointer exception if
baseDir
is a drive name, eg: C:/

How could I solve this problem? Any clue for me?

Regards,
Peik Feng



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CD Drive as webapps (EmbeddedTomcat)

2003-06-16 Thread Lee Peik Feng
java.lang.NullPointerException
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:260)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at Tomcat.registerWAR(Tomcat.java:200)
 at EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:1098)
 at EmbeddedTomcat.main(EmbeddedTomcat.java:1292)



- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 12:41 AM
Subject: RE: CD Drive as webapps (EmbeddedTomcat)



 Howdy,
 What error do you get?

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Lee Peik Feng [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 12:38 PM
 To: Tomcat Users List
 Subject: CD Drive as webapps (EmbeddedTomcat)
 
 Hi,
 I would like to set my CD Rom drive as one of my webapps.
 
 When I run tomcat with normal installation with below setting in
 server.xml (my CD Rom drive is F:\ and the content of the CD is MP3
 files)
 Context path=/music docBase=F:/ debug=0/
 I could create the webapps and get my mp3 songs link correctly.
 
 However, when I use EmbeddedTomcat with reference to O'Reily
 website, I
 couldn't create the webapps.
 
 The error occur in
 org.apache.catalina.core.StandardHostDeployer.install
 (at line 260 from tomcat 4.1.24 source)
 
 if
 (appBase.getCanonicalPath().equals(baseDir.getCanonicalPath()))
 {
 isAppBase = true;
 }
 
 baseDir.getCanonicalPath() will give a null pointer exception if
 baseDir
 is a drive name, eg: C:/
 
 How could I solve this problem? Any clue for me?
 
 Regards,
 Peik Feng
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]