You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Cyrill Zadra <cy...@gmail.com> on 2006/07/28 12:18:58 UTC

[tobago] Unknown protocol

Hi

When I'm trying to start an webapp with JDeveloper (embedded OC4J) on
Windows XP I get following error (Tried it with 1.0.7 and 1.0.8):

ERROR: Unknown protocol
'code-source:/C:/IENGINE/MyFace/HelloWorld/lib/tobago-
theme-standard-1.0.8-SNAPSHOT.jar!META-INF/tobago-theme.xml'
ERROR: Unknown protocol
'code-source:/C:/IENGINE/MyFace/HelloWorld/lib/tobago-
theme-standard-1.0.7.jar!META-INF/tobago-theme.xml'

In this mailling list I found a similar topic:
http://www.mail-archive.com/users@myfaces.apache.org/msg19463.html but in my
case the tobago-theme.xml exists in the theme jar file.

Is it possible that in JDev (oc4j) the getProtocol method return another
value than jar or does anybody has a solution to my problem.

String protocol = themeUrl.getProtocol(); //
org.apache.myfaces.tobago.context.ResourceLocator; line 121 v. 1.0.7
...
 if ("jar".equals(protocol) || "zip".equals(protocol)) {  //
org.apache.myfaces.tobago.context.ResourceLocator; line 124 v. 1.0.7
     ....
 } else {
          String error = "Unknown protocol '" + themeUrl + "'";
          LOG.error(error);
          throw new Exception(error);
 }

***tobago-config.xml***

<tobago-config>
  <theme-config>
    <default-theme>speyside</default-theme>
    <supported-theme>scarborough</supported-theme>
    <supported-theme>richmond</supported-theme>
  </theme-config>
  <resource-dir>tobago-resource</resource-dir>
</tobago-config>

***Exception***

java.lang.Exception: Unknown protocol
'code-source:/C:/IENGINE/MyFace/HelloWorld/lib/tobago-
theme-standard-1.0.8-SNAPSHOT.jar!META-INF/tobago-theme.xml'
    at
org.apache.myfaces.tobago.context.ResourceLocator.locateResourcesFromClasspath
(ResourceLocator.java:168)
    at org.apache.myfaces.tobago.context.ResourceLocator.locate(
ResourceLocator.java:63)
    at org.apache.myfaces.tobago.context.ResourceManagerFactory.init(
ResourceManagerFactory.java:57)
    at
org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized
(TobagoServletContextListener.java:58)
    at com.evermind.server.http.HttpApplication.initDynamic(
HttpApplication.java:1015)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java
:649)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(
ApplicationStateRunning.java:428)
    at com.evermind.server.Application.getHttpApplication(Application.java
:512)
    at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference
(HttpSite.java:1975)
    at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference
(HttpSite.java:1958)
    at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication
(HttpSite.java:1910)
    at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:427)
    at com.evermind.server.http.HttpRequestHandler.resolveApplication(
HttpRequestHandler.java:395)
    at com.evermind.server.http.HttpRequestHandler.processRequest(
HttpRequestHandler.java:437)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(
HttpRequestHandler.java:218)
    at com.evermind.server.http.HttpRequestHandler.run(
HttpRequestHandler.java:119)
    at com.evermind.server.http.HttpRequestHandler.run(
HttpRequestHandler.java:112)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(
ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(
ServerSocketAcceptHandler.java:230)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(
ServerSocketAcceptHandler.java:33)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
ServerSocketAcceptHandler.java:831)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(
ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:595)


thanks & regards,

Cyrill