Hi Udo & Bernd,

thanks for your responses. I think I've mixed up the two ways to handle
resources. I'll have a look at this but it might be the end of the week
till I've time to do so.

Regards,

Stefan.

Udo Schnurpfeil schrieb:
> You might have unpacked the tobago-theme-xxx.jar files into the war
> (Possibility 2 in http://tobago.atanion.net/site/themes.html).
>
> But the META-INF must not unpacked.
>
> Does this helps?
>
> I don't know JBoss very good. If the JBoss does it themself, we might
> have to fix something...
>
> Regards
>
> Udo
>
> Stefan Hedtfeld schrieb:
>> Hi,
>>
>> when deploying my webapp placed inside an ear using the latest tobago
>> from svn (I'm running on a JBoss 4.0.4RC1) I get the followin error
>> (see stacktrace below). The tobago-theme.xml file is generated during
>> the build process using the values from tobago-config.xml (please
>> corret me if I'm wrong).
>>
>> This is my tobago-config.xml (taken from the example demo, only
>> changed ajax-enabled to false):
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE tobago-config PUBLIC
>>     "-//The Apache Software Foundation//DTD Tobago Config 1.0//EN"
>> "tobago-config_1_0.dtd">
>> <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>
>>   <ajax-enabled>false</ajax-enabled>
>> </tobago-config>
>>
>> This is the content of the generated tobago-theme.xml:
>>
>> *<?xml* version="1.0" encoding="UTF-8"*?>*
>>
>> /<!--/
>> / * Copyright 2002-2005 The Apache Software Foundation./
>> / */
>> / *    Licensed under the Apache License, Version 2.0 (the "License");/
>> / *    you may not use this file except in compliance with the License./
>> / *    You may obtain a copy of the License at/
>> / */
>> / *        http://www.apache.org/licenses/LICENSE-2.0/
>> / */
>> / *    Unless required by applicable law or agreed to in writing,
>> software/
>> / *    distributed under the License is distributed on an "AS IS"
>> BASIS,/
>> / *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
>> or implied./
>> / *    See the License for the specific language governing
>> permissions and/
>> / *    limitations under the License./
>> /-->/
>>
>> /<!--/
>> /  todo: Test still under development/
>> /  http://issues.apache.org/jira/browse/TOBAGO-20/
>> /-->/
>> *<tobago-theme>*
>>   *<name>*speyside*</name>*
>>  
>> *<deprecated-name>*org.apache.myfaces.tobago.context.SpeysideTheme*</deprecated-name>*
>>
>>   *<resource-path>*org/apache/myfaces/tobago/renderkit*</resource-path>*
>>   *<fallback>*scarborough*</fallback>*
>> *</tobago-theme>*
>>
>> Any suggestions / hints? Is this likely to be a tobago issue or do
>> you think it is a JBoss issue?
>>
>> 22:53:43,093 ERROR [ResourceLocator] Unknown protocol
>> 'file:/home/stefan/as/jboss-4.0.4RC1/server/fuelmaster/tmp/deploy/tmp41369fuelmaster.ear-contents/fuelmaster-webapp-0.1-SNAPSHOT-exp.war/META-INF/tobago-theme.xml'
>>
>> 22:53:43,093 ERROR [ResourceLocator] while loading
>> java.lang.Exception: Unknown protocol
>> 'file:/home/stefan/as/jboss-4.0.4RC1/server/fuelmaster/tmp/deploy/tmp41369fuelmaster.ear-contents/fuelmaster-webapp-0.1-SNAPSHOT-exp.war/META-INF/tobago-theme.xml'
>>
>>         at
>> org.apache.myfaces.tobago.context.ResourceLocator.locateResourcesFromClasspath(ResourceLocator.java:167)
>>
>>         at
>> org.apache.myfaces.tobago.context.ResourceLocator.locate(ResourceLocator.java:61)
>>
>>         at
>> org.apache.myfaces.tobago.context.ResourceManagerFactory.init(ResourceManagerFactory.java:57)
>>
>>         at
>> org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized(TobagoServletContextListener.java:58)
>>
>>         at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)
>>
>>         at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
>>
>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>>
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>>         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:585)
>>         at
>> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>>
>>         at
>> org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.apache.catalina.core.StandardContext.init(StandardContext.java:5031)
>>         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:585)
>>         at
>> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>>
>>         at
>> org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
>>
>>         at
>> org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
>>
>>         at
>> org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
>>         at org.jboss.web.WebModule.startModule(WebModule.java:83)
>>         at org.jboss.web.WebModule.startService(WebModule.java:61)
>>         at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>>
>>         at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>>
>>         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
>>
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
>>
>>         at $Proxy0.start(Unknown Source)
>>         at
>> org.jboss.system.ServiceController.start(ServiceController.java:417)
>>         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
>>
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
>>         at $Proxy30.start(Unknown Source)
>>         at
>> org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:469)
>>         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:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at
>> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>>
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>>
>>         at
>> org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
>>
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
>>
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
>>         at $Proxy31.start(Unknown Source)
>>         at
>> org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
>>         at
>> org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
>>         at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at
>> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>>
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>>
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
>>
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
>>         at $Proxy6.deploy(Unknown Source)
>>         at
>> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
>>
>>         at
>> org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
>>
>>         at
>> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
>>
>>         at
>> org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
>>
>>         at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>>
>>         at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>>
>>         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:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
>>
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
>>
>>         at $Proxy0.start(Unknown Source)
>>         at
>> org.jboss.system.ServiceController.start(ServiceController.java:417)
>>         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:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
>>
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
>>         at $Proxy4.start(Unknown Source)
>>         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
>>         at
>> org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
>>         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:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at
>> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>>
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>>
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
>>
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
>>         at $Proxy5.deploy(Unknown Source)
>>         at
>> org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
>>         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
>>         at org.jboss.Main.boot(Main.java:200)
>>         at org.jboss.Main$1.run(Main.java:464)
>>         at java.lang.Thread.run(Thread.java:595)
>>
>>
>> Regards,
>>
>> Stefan.
>

Reply via email to