Hello Cyrill,
maybe the nightly build doesn't include the changes.
I have changed the log level from error to warn
else {
LOG.warn("Unknown protocol '" + themeUrl + "'");
addResources(classLoader, resources, themeUrl, protocol, prefix);
}
and try to load the theme resource if the protocol is unknown.
Can you check the latest nightly build, please.
Regards
Bernd
Cyrill Zadra schrieb:
Hi Bernd,
I tried the nightly builds (tobago-core-1.0.8-SNAPSHOT - 02-Aug-2006 04:58)
but there is no difference. The same error occurs.
ERROR: Unknown protocol
'code-source:/C:/IENGINE/MyFace/HelloWorld/lib/tobago-
theme-standard-1.0.8-SNAPSHOT.jar!META-INF/tobago-theme.xml'
Regards
Cyrill
On 8/1/06, Bernd Bohmann <[EMAIL PROTECTED]> wrote:
Hello Cyrill,
can you try the nighly build?
Regards
Bernd
Cyrill Zadra schrieb:
> *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/[email protected]/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
> *
>
--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333
--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333