Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Starting with a Custom Configuration(7.5 Starting with a Custom Configuration Directory still pointing to 8080 port)
Starting with a Custom Configuration [message #1009624] Fri, 15 February 2013 11:57 Go to next message
Anjan Kumar is currently offline Anjan KumarFriend
Messages: 6
Registered: February 2013
Junior Member
Hi,

I am trying to run the DM server with multiple instances, based on Virgo User Guide (Section 7.5)
http://www.eclipse.org/virgo/documentation/virgo-documentation-3.6.0.RELEASE/docs/virgo-user-guide/htmlsingle/virgo-user-guide.html

According this configuration I have created another configuration/node1 directory and modified all required configuration files

example: tomcat-server.xml
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8444" /> and so on related configurations

But, While running with
prompt$ bin/startup.sh -configDir C:\\Install\\configuration\\node1

<DE0005I> Started bundle 'org.eclipse.gemini.web.core' version '2.2.0.RELEASE'.
<DE0004I> Starting bundle 'org.eclipse.gemini.web.tomcat' version '2.2.0.RELEASE'.
<TC0011E> Failed to start Tomcat. Port 8080 is in use.
<KE0010I> Shutdown initiated.

Server not starting properly, still the 8080 port binding

then I tried with

startup.bat -jmxport 8081 -configDir C:\\Install\\configuration\\node1

But the same Exception.

It would be very grateful if any body provide the solution.

Thanks,
Anjan
Re: Starting with a Custom Configuration [message #1009683 is a reply to message #1009624] Fri, 15 February 2013 14:12 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 244
Registered: October 2010
Senior Member
Hi

You need one additional modification in <Virgo>/configuration/config.ini file

modify:
org.eclipse.virgo.medic.log.config.path=configuration/serviceability.xml
org.eclipse.gemini.web.tomcat.config.path=configuration/tomcat-server.xml

Regards
Violeta
Re: Starting with a Custom Configuration [message #1010743 is a reply to message #1009683] Mon, 18 February 2013 06:57 Go to previous messageGo to next message
Anjan Kumar is currently offline Anjan KumarFriend
Messages: 6
Registered: February 2013
Junior Member
No Message Body
Re: Starting with a Custom Configuration [message #1010749 is a reply to message #1010743] Mon, 18 February 2013 07:12 Go to previous messageGo to next message
Anjan Kumar is currently offline Anjan KumarFriend
Messages: 6
Registered: February 2013
Junior Member
Hi Violeta,

Thanks for your response.

I have updated the configuration/node1/config.ini
org.eclipse.virgo.medic.log.config.path=configuration/node1/serviceability.xml
org.eclipse.gemini.web.tomcat.config.path=configuration/node1/tomcat-server.xml
osgi.java.profile.bootdelegation=override
osgi.framework=file\:plugins/org.eclipse.osgi_3.8.1.v20120830-144521.jar
org.osgi.service.http.port=8081

But, still it is server2 pointing to 8080 port

If I updated configuration/config.ini to
org.eclipse.gemini.web.tomcat.config.path=configuration/node1/tomcat-server.xml

Server2 running 8081 port
When restart Server1, it is not running 8080 port
[2013-02-18 12:32:44.702] system-artifacts <TC0011E> Failed to start Tomcat. Port 8081 is in use.
[2013-02-18 12:32:44.704] System Bundle Shutdown <KE0010I> Shutdown initiated.

My questing is; will Virgo load configuration/node1/config.ini by passing "-configDir configuration\node1"

Thanks,
Anjan
Re: Starting with a Custom Configuration [message #1010750 is a reply to message #1010749] Mon, 18 February 2013 07:13 Go to previous messageGo to next message
Anjan Kumar is currently offline Anjan KumarFriend
Messages: 6
Registered: February 2013
Junior Member
I want to Run
Server1 on 8080 port
Server2 on 8081 port
Re: Starting with a Custom Configuration [message #1012311 is a reply to message #1010750] Thu, 21 February 2013 10:20 Go to previous messageGo to next message
Anjan Kumar is currently offline Anjan KumarFriend
Messages: 6
Registered: February 2013
Junior Member
Hi,

My default Virgo working on 8080 port using default configurations: <virgo-dir>/configurations/

I have a requirement, I want to run one more Virgo Instance on 8085 port Custom Configuration Directory
For this I have created
<virgo-dir>/configurations/node1
Changed files inside <virgo-dir>/configurations/node1
1. tomcat-server.xml
<Connector port="8085" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8444" />

<Connector port="8444" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="configuration/keystore"
keystorePass="changeit"/>

<Connector port="8010" protocol="AJP/1.3" redirectPort="8444" />
2. serviceability.xml
<file>serviceability1/logs/${applicationName}/log.log</file>
Etc...
3. config.ini
org.eclipse.virgo.medic.log.config.path=configuration/node1/serviceability.xml
org.eclipse.gemini.web.tomcat.config.path=configuration/node1/tomcat-server.xml

But, When trying to start the Second Instance using:
<virgo-dir>/bin/startup.bat -configDir \configuration\node1 -jmxport 8085

Server not running and the error is
013-02-21 15:32:21.848] start-signalling-1 <DE0005I> Started bundle 'org.eclipse.gemini.web.core' version
013-02-21 15:32:21.849] system-artifacts <DE0004I> Starting bundle 'org.eclipse.gemini.web.tomcat' versi
013-02-21 15:32:22.367] system-artifacts <TC0011E> Failed to start Tomcat. Port 8080 is in use.
013-02-21 15:32:22.482] System Bundle Shutdown <KE0010I> Shutdown initiated.

Please anyone suggest me, is there any missing configuration or procedure.

Thanks,
Anjan
Re: Starting with a Custom Configuration [message #1013020 is a reply to message #1012311] Fri, 22 February 2013 16:09 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 244
Registered: October 2010
Senior Member
Hi,

This seems to be a bug.
Please create an issue in our bugtracking system.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Virgo

As a workaround, you can try the following:

set JAVA_OPTS=-Dosgi.sharedConfiguration.area=<configuration folder>

startup -configDir <configuration folder>


Please share with us the results from the workaround.

Regards
Violeta

[Updated on: Fri, 22 February 2013 18:32]

Report message to a moderator

Re: Starting with a Custom Configuration [message #1014678 is a reply to message #1013020] Tue, 26 February 2013 09:14 Go to previous message
Anjan Kumar is currently offline Anjan KumarFriend
Messages: 6
Registered: February 2013
Junior Member
Thanks Violeta,

workaround for setting "set JAVA_OPTS=-Dosgi.sharedConfiguration.area=<configuration folder>" also did not work.
related bug has been posted: Bug 401410 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=401410)

Regards,
Anjan
Previous Topic:FuseBundles support?
Next Topic:Some open sourced Virgo plans
Goto Forum:
  


Current Time: Sun Nov 23 04:56:10 GMT 2014

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

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