Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » where is catalina.base property defined?
where is catalina.base property defined? [message #1404543] Sun, 03 August 2014 21:35 Go to next message
Laurent Delamare is currently offline Laurent DelamareFriend
Messages: 13
Registered: March 2011
Junior Member
While researching my problem with Virgo deployment on Windows paths containing spaces (*) I am trying to fix a URISyntaxException during Tomcat startup (**) . The path "E:/Program Files/VMware/vCenter Server/WebClient/server" comes from the catalina.base property but I can't find how this property is defined in the Virgo setup. Does anyone knows? I was hoping that replacing the spaces with %20 would solve my problem on Windows!
Thanks,
--Laurent


(*) see https://www.eclipse.org/forums/index.php/m/1402992/#msg_1402992
(**)
[2014-08-02 15:34:28.436] [ERROR] start-signalling-2 org.apache.catalina.startup.ContextConfig Error processed default web.xml named conf/web.xml at E:\Program Files\VMware\vCenter Server\virgo\server\conf\web.xml java.net.URISyntaxException: Illegal character in path at index 16: file:/E:/Program Files/VMware/vCenter Server/WebClient/server/work/deployer/s/global/13/0/org.eclipse.gemini.web.tomcat_2.2.2.RELEASE.jar/conf/web.xml
at java.net.URI$Parser.fail(URI.java:2829)
at java.net.URI$Parser.checkChars(URI.java:3002)
at java.net.URI$Parser.parseHierarchical(URI.java:3086)
at java.net.URI$Parser.parse(URI.java:3034)
at java.net.URI.<init>(URI.java:595)
at java.net.URL.toURI(URL.java:938)
at org.apache.catalina.startup.ContextConfig.getWebXmlSource(ContextConfig.java:1832)
at org.apache.catalina.startup.ContextConfig.getGlobalWebXmlSource(ContextConfig.java:1745)
at org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment(ContextConfig.java:1418)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1253)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125)
at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:109)
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:122)
at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:271)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:319)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:316)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:252)
at org.eclipse.virgo.nano.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Re: where is catalina.base property defined? [message #1404555 is a reply to message #1404543] Mon, 04 August 2014 07:41 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 276
Registered: October 2010
Senior Member
Hi,

If your problem is only with the global web.xml then you can move it from org.eclipse.gemini.web.tomcat_2.2.2.RELEASE.jar bundle - see [1].
If you want to redefine catalina.base then use
set catalina.base=<path>


Regards
Violeta

[1] http://eclipse.org/gemini/web/documentation/gemini-web-documentation-2.2.3.RELEASE/gemini-web-user-guide/html/ch03.html#configuring-tomcat
chapter "Default web.xml Configuration"
Re: where is catalina.base property defined? [message #1404655 is a reply to message #1404555] Mon, 04 August 2014 18:37 Go to previous messageGo to next message
Laurent Delamare is currently offline Laurent DelamareFriend
Messages: 13
Registered: March 2011
Junior Member
Hi Violeta,
Thanks for your reply. I assume you mean to use "set catelina.base=<path>" on the command line.
In this case Virgo is being installed as part of our product so I need to configure the value of catelina.base ahead of time. Do you know where this property is defined during the Virgo startup?
Re: where is catalina.base property defined? [message #1404664 is a reply to message #1404655] Mon, 04 August 2014 19:24 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 276
Registered: October 2010
Senior Member
Can't you use setenv.bat file?
You can place it in bin folder.

catalina.base is not defined, by default it points to user.dir [1].

Regards,
Violeta

[1]http://git.eclipse.org/c/gemini.web/org.eclipse.gemini.web.gemini-web-container.git/tree/org.eclipse.gemini.web.tomcat/src/main/java/org/eclipse/gemini/web/tomcat/internal/OsgiAwareEmbeddedTomcat.java # initBaseDir()

[Updated on: Mon, 04 August 2014 19:30]

Report message to a moderator

Re: where is catalina.base property defined? [message #1413869 is a reply to message #1404543] Fri, 29 August 2014 16:15 Go to previous message
Gary Zharzhavsky is currently offline Gary ZharzhavskyFriend
Messages: 3
Registered: December 2013
Junior Member
I have same problem. My virgo ( 3.6.2 ) installed in directory that has a space (C:\Customer 1\virgo)
I'm getting error from org.apache.catalina.startup.ContextConfig Error processed default web.xml named conf/web.xml at c:\Customer 1\virgo\conf\web.xml java.net.URISyntaxException: Illegal character in path at index 17: file:/c:/Customer 1/virgo/./work/deployer/s/global/13/0/org.eclipse.gemini.web.tomcat_2.2.2.RELEASE.jar/conf/web.xml

I tried to re-define catalina.base property. (-Dcatalina.base="C:/Customer 1/virgo" )

Getting same error.

I run Virgo as windows tanuki service. I can not run startup.bat script.

Thanks for your thoughts.
Gary
Previous Topic:JVM exited while loading the application. (Virgo Service error)
Next Topic:Spring Framework 3.2.10.RELEASE - Bundlor and Eclipse EBR templates for generating OSGi metadata
Goto Forum:
  


Current Time: Sun Sep 23 14:44:54 GMT 2018

Powered by FUDForum. Page generated in 0.02146 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top