Re: Help, please! :)

2004-01-13 Thread Yakov Belov
Dear Martin,

this is the weird thing. I do have $CATALINA_HOME/bin/bootstrap.jar in the
classpath

I can say this because, I start up Tomcat (on Linux this is) with bash
catalina.sh run. Looking at the catalina.sh file I can say that
$CATALINA_HOME/bin/bootstrap.jar is in the classpath.

BUT, org.apache.naming.JndiPermission.class is in
$CATALINA_HOME/bin/bootstrap.jar!!!

Anyway, what i did was reinstall JDK and Tomcat from scratch and it seemed
to have fixed my problems with jar files. If anyone knows exactly why I had
to reinstall everything I would like to know :) Also, if anyone knows a less
invasive solution to my troubles, I would really appreciate if they would
tell me as well.

Regards,
Yakov
P.S. my problems with jar files, can be probably attributed to the fact,
that I decided to copy and paste different jar files from all over the
place, inlcuding other version of Tomcat. Alas, I paid the price.

- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 11:02 PM
Subject: Re: Help, please! :)


 Yakov
 You need bootstrap.jar in your classpath
 How do you start Tomcat without bootstrap.jar in your classpath?
 Martin
 - Original Message -
 From: Yakov Belov [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 7:29 PM
 Subject: Help, please! :)


 Dear All,

 it is me again.

 The full story is, that I get the stacktrace only if I uncomment the /ROOT
 context tag in the server.xml file.

 But if I leave everything as it was, I don't get any exceptions, but also
 none of my aspplications get installed, which sux. However if I try to
 manually install them using manager application, which runs, thank god, I
 get get the same error:

 FAIL - Encountered exception java.lang.NoClassDefFoundError:
 org/apache/naming/JndiPermission

 This is why I attempted to uncomment the /ROOT context tag. But it didn't
 work.

 So, why are my applications not able to be installed ?

 Regards,
 Yakov

 - Original Message -
 From: Yakov Belov [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 6:01 PM
 Subject: All of a sudden Catalina can not start.


 Dear All,

 I have Tomcat 4.1.29 and untill today I had no problems with it.

 Today I decided to restart it (silly me) and Tomcat won't start, but shows
 the following stack trace:

 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 Caused by: java.lang.NoClassDefFoundError:
org/apache/naming/JndiPermission

 so, I think what is happening, is that server.xml is being processed and
for
 some reason JndiPermission.class, which is in bootstrap.jar, is not seen.
 How can I tell Tomcat where to look? I have created a CLASSPATH variable,
 but I am not sure if it is used.

 I looked on the web and noticed other people having the same problem, but
 not too many answers to it.

 Can someone help?

 Regards,
 Yakov


 -
 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]



Help, please! :)

2004-01-12 Thread Yakov Belov
Dear All,

it is me again.

The full story is, that I get the stacktrace only if I uncomment the /ROOT
context tag in the server.xml file.

But if I leave everything as it was, I don't get any exceptions, but also
none of my aspplications get installed, which sux. However if I try to
manually install them using manager application, which runs, thank god, I
get get the same error:

FAIL - Encountered exception java.lang.NoClassDefFoundError:
org/apache/naming/JndiPermission

This is why I attempted to uncomment the /ROOT context tag. But it didn't
work.

So, why are my applications not able to be installed ?

Regards,
Yakov

- Original Message - 
From: Yakov Belov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 6:01 PM
Subject: All of a sudden Catalina can not start.


Dear All,

I have Tomcat 4.1.29 and untill today I had no problems with it.

Today I decided to restart it (silly me) and Tomcat won't start, but shows
the following stack trace:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NoClassDefFoundError: org/apache/naming/JndiPermission

so, I think what is happening, is that server.xml is being processed and for
some reason JndiPermission.class, which is in bootstrap.jar, is not seen.
How can I tell Tomcat where to look? I have created a CLASSPATH variable,
but I am not sure if it is used.

I looked on the web and noticed other people having the same problem, but
not too many answers to it.

Can someone help?

Regards,
Yakov


Tomcat won't startup

2003-02-12 Thread Yakov Belov
Dear All,

when I try to start up tomcat I receive the following exception:

Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: 
org/apache/naming/JndiPermission
at 
org.apache.naming.resources.DirContextURLStreamHandler.openConnection(DirContextURLStreamHandler.java:135)
at java.net.URL.openConnection(URL.java:781)
at sun.net.www.protocol.jar.JarURLConnection.init(JarURLConnection.java:67)
at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:27)
at java.net.URL.openConnection(URL.java:781)
at 
org.apache.catalina.startup.ContextConfig.tldConfigJar(ContextConfig.java:1091)
at org.apache.catalina.startup.ContextConfig.tldConfig(ContextConfig.java:1042)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:828)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:224)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3334)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

am I missing a jar file somewhere or something else is wrong?

Best Regards,
Yakov Belov