cancel
Showing results for 
Search instead for 
Did you mean: 

Hybris 6.7:-server.xml configuration issue in Tomcat 8.0

nik26jaz
Explorer
0 Kudos

Hello,

I have set up Hybris 6.7 Commerce with Telco extensions included. After performing 'ant clean all', I am unable to start the server because of this problem in /config/tomcat/conf/server.xml

 <Host startStopThreads="0"      name="localhost"
                   appBase="webapps"
                    unpackWARs="false"
                    autoDeploy="false"
                    startStopThreads="${tomcat.startStopThreads}">

The home tag gets a duplicate entry of startStopThreads="0", due to which the server throws an exception. This property exists in platform/project.properties; why does this happen? Can anything be done to prevent it?

Thanks and Regards,

nik26jaz
Explorer
0 Kudos

So I was able to find the reason behind this. I use the SAP Hybris Ee plug-in, which has the option to set the StartStopThreads property to config/server.xml file; I disabled the check-box for the same while importing the projects using SAP Hybris plug-in, as well as while synchronizing projects using the plug-in.

Accepted Solutions (1)

Accepted Solutions (1)

nik26jaz
Explorer
0 Kudos

So I was able to find the reason behind this. I use the SAP Hybris Ee plug-in, which has the option to set the StartStopThreads property to config/server.xml file; I disabled the check-box for the same while importing the projects using SAP Hybris plug-in, as well as while synchronizing projects using the plug-in.

former_member630291
Participant
0 Kudos

Didn't actually solve the issue. I tried it. :(

karthikc
Discoverer
0 Kudos

Yes, It's working. I have disabled the checkbox while importing the projects via Hybris plug-in. This option alone is solved my issue. Thanks Nikhil.

Answers (2)

Answers (2)

Former Member
0 Kudos

Even I'm facing the same issue, every time startStopThreads="0" is getting appended to the server.xml file Host entry.Hope hybris fixes this.

tino_kissig
Active Participant
0 Kudos

Our config/tomcat/conf/server.xml doesn't contain this first startStopThreads attribute. Just remove it completely and your are fine.

nik26jaz
Explorer
0 Kudos

Hi Tino,

The process works such that after ant build, the startStopThreads property should be overridden with the actual value. Instead, it just makes a duplicate entry and is an annoyance. Hopefully, Hybris catches wind of it and fixes it.

tino_kissig
Active Participant
0 Kudos

Our config/tomcat/conf/server.xml was created when the config folder was created by the hybris build process. You can try to remove your config folder and let the build process create a fresh one.

The server.xml should be fine afterwards. Are you sure you haven't edited the file manually?

nik26jaz
Explorer
0 Kudos

I am certain. The config/tomcat/conf/server.xml has not been edited manually, not even touched.

d_j_boyd
Participant
0 Kudos

I ran into this same issue with V1811. bin/platform/tomcat/conf/server.xml had the duplicate startStopThread in the Host. Not sure as to what cause this value in the platform to be changed - but once I removed it all worked just fine.

former_member630291
Participant
0 Kudos

Did it come back after building the platform?

I'm getting the same issue after building in Hybris 6.7.

Also, can you please share me the V1811 through google drive?

0 Kudos

It worked by regenerating the config folder for V1811 hybris version.

d_j_boyd
Participant
0 Kudos

It keeps coming back - so if I do a hot deploy - the server fails - it is not able to restart itself due to this issue