tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <A.Solofne...@mdl.com>
Subject Re: Tomcat and path with pound sign (#) -> ClassNotFoundException
Date Thu, 09 Aug 2007 19:06:57 GMT
Try running "bash -x catalina.sh run" to see if Java is started 
correctly. If it is not, try running the same command from a normal 
directory, and run the same command yourself without using scripts 
provided with Tomcat.

- Alexey.

Markus Schiegl wrote:
> Hi,
>
> you're right about # as a special char for different programming
> languages. but nevertheless the # sign is a valid character for
> directory and file names (in contrast to * or / for example) for unix
> and windows. If it's wise to use it is another question but sometimes
> it's just beyond your control.
>
> The same problem (# in directory name) and error message
> (ClassNotFoundException) happens with Windows XP. Confirms my suspicion
> this beeing a Java and/or Tomcat issue.
>
> kind regards,
>    Markus
>
> Propes, Barry L wrote:
>   
>> isn't that likely because in some languages like PHP, Python and Perl the # is to
comment out a line, and it will invariably break the code?
>> Because I thought some on this list were integrating Tomcat with those languages.
>>
>> -----Original Message-----
>> From: Hassan Schroeder [mailto:hassan.schroeder@gmail.com]
>> Sent: Thursday, August 09, 2007 7:58 AM
>> To: Tomcat Users List
>> Subject: Re: Tomcat and path with pound sign (#) ->
>> ClassNotFoundException
>>
>>
>> On 8/8/07, Markus Schiegl <ms@schiegl.com> wrote:
>>
>>     
>>> Has anybody been able to start a tomcat server from such a directory?
>>>       
>> I copied a working installation from /usr/local/apache-tomcat-6.0.13
>> to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this:
>>
>>     
>>> ./bin/catalina.sh run
>>>       
>> Using CATALINA_BASE:   /usr/local/apache-tomcat#6.0.13
>> Using CATALINA_HOME:   /usr/local/apache-tomcat#6.0.13
>> Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp
>> Using JRE_HOME:       /usr/local/jdk1.6.0_02/jre
>> java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
>>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
>>
>> So it seems a genuine limitation...
>>
>> HTH,
>>     
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)

Mime
View raw message