Hello,
i try to create my own custom theme. When i use the theme example project in
my tobago application i get this error:
main WARN - org.apache.myfaces.tobago.context.ResourceLocator:141 - Unknown
protocol
java.lang.StringIndexOutOfBoundsException: String index out of range: -6
at java.lang.String.substring(Unknown Source)
at org.apache.myfaces.tobago.context.ResourceLocator.addResources(
ResourceLocator.java:163)
I drop the theme example in my Source Directory, i use tomcat 6.0.14:
src\org\apache\myfaces\tobago\renderkit\html\example...
src\META-INF\tobago-theme.xml
Can i use a custom theme in developing mode or its necessary to build a jar
file?
Thanks for helping me, kai.
-----------------------------------------------------------------------------------------------
main INFO - org.apache.myfaces.tobago.webapp.TobagoServletContextListener:40
- *** contextInitialized ***
main INFO - org.apache.myfaces.tobago.config.TobagoConfig:154 - adding
resourceDir = 'tobago-resource'
main ERROR - org.apache.myfaces.tobago.context.ResourceLocator:79 -
ResourcePath empty! Please check the tobago-config.xml file!
path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/wcprops'
main ERROR - org.apache.myfaces.tobago.context.ResourceLocator:79 -
ResourcePath empty! Please check the tobago-config.xml file!
path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/props'
main ERROR - org.apache.myfaces.tobago.context.ResourceLocator:79 -
ResourcePath empty! Please check the tobago-config.xml file!
path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/text-base'
main ERROR - org.apache.myfaces.tobago.context.ResourceLocator:79 -
ResourcePath empty! Please check the tobago-config.xml file!
path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/prop-base'
main INFO - org.apache.myfaces.tobago.context.ResourceLocator:123 - Loading
tobago-theme.xml
main INFO - org.apache.myfaces.tobago.context.ThemeParser:77 - Found theme:
'example'
main WARN - org.apache.myfaces.tobago.context.ResourceLocator :141 -
Unknown protocol
'file:/C:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/TobagoTest/WEB-INF/classes/META-INF/tobago-
theme.xml'
main INFO - org.apache.myfaces.tobago.context.ResourceLocator :162 -
themeUrl =
'file:/C:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/TobagoTest/WEB-INF/classes/META-INF/tobago-
theme.xml'
main FATAL - org.apache.myfaces.tobago.webapp.TobagoServletContextListener:71
- Error while deploy process. Tobago can't be initialized! Application
will not run!
java.lang.StringIndexOutOfBoundsException: String index out of range: -6
at java.lang.String.substring(Unknown Source)
at org.apache.myfaces.tobago.context.ResourceLocator.addResources(
ResourceLocator.java:163)
at
org.apache.myfaces.tobago.context.ResourceLocator.locateResourcesFromClasspath
(ResourceLocator.java:142)
at org.apache.myfaces.tobago.context.ResourceLocator.locate(
ResourceLocator.java:63)
at org.apache.myfaces.tobago.context.ResourceManagerFactory.init(
ResourceManagerFactory.java:58)
at
org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized(
TobagoServletContextListener.java:59)
at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3830)