tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From echevtch...@stva.com
Subject java.net.MalformedURLException: unknown protocol: jndi Please help.
Date Tue, 08 Jul 2003 15:51:36 GMT
This is a question for the jboss forum. Sorry to inflate traffic.
I just have no answer, and it coming from the tomcat containet deployment.

jboss-3.0.7_jakarta-tomcat-4.1.24

I enabled security manager
by setting

-Djava.security.manager

-Djava.security.policy==
../server/CONFIG%/conf/server.policy

Actually i have a strange exception from catalina AbstractWebContainer
implementation, the creation of url from string
"jar:jndi/localhost/lala/WEB-INF/lib/bebe/jar!/" throws
java.net.MalformedURLException: unknown protocol: jndi BUT ! only if
security manager is enabled


org.apache.catalina.startup;

...
import java.net.URL;
...

public final class ContextConfig
    implements LifecycleListener {

...
--->            url = new URL("jar:" + url.toString() + "!/");


ooops ::



16:59:35,218 ERROR [Engine] ContextConfig[/JaasJBossExampleWeb] Exception
lors d
u traitement du JAR indiquÚ par le chemin de ressource
/WEB-INF/lib/controller.j
ar
javax.servlet.ServletException: Exception lors du traitement du JAR indiquÚ
par
le chemin de ressource /WEB-INF/lib/controller.jar
        at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja
va:930)
        at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:
868)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64
7)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
567)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:821)
        at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:
162)
        at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(Contain
erBase.java:182)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
5)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)


....

16:59:35,265 ERROR [Engine] ----- Root Cause -----
java.net.MalformedURLException: java.lang.NullPointerException: invalid
url: jnd
i:/localhost/JaasJBossExampleWeb/WEB-INF/lib/controller.jar!/
(java.net.Malforme
dURLException: unknown protocol: jndi)
        at java.net.URL.<init>(URL.java:491)
        at java.net.URL.<init>(URL.java:371)
        at java.net.URL.<init>(URL.java:325)
        at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja
va:902)
        at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:
868)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64
7)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
567)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:821)
        at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:
162)
        at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(Contain
erBase.java:182)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
5)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

        .....

Cordialement
Edouard Chevtchouk
--

This message is for the designated recipient only and may contain
privileged or confidential information.  If you have received it in error,
please notify the sender immediately and delete the original.  Any other
use of the email by you is prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message