cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using SAP Commerce 1905 / SAP machine with hotswapagent

mwoelm
Participant
1,522

Hi,

Somebody knows how to install in 1905 and jdk11? I saw that there is a bundled jdk11.(https://github.com/TravaOpenJDK/trava-jdk-11-dcevm).

But when I start SAP Commerce with it, it deadlocks very fast….

HOTSWAP AGENT: 15:56:29.603 INFO (org.hotswap.agent.plugin.tomcat.TomcatPlugin) - Tomcat plugin initialized - Tomcat version '8.5.40.0'
HOTSWAP AGENT: 15:56:30.024 INFO (org.hotswap.agent.config.PluginRegistry) - Plugin 'org.hotswap.agent.plugin.tomcat.TomcatPlugin' initialized in ClassLoader 'HybrisWebappClassLoader
  context: consignmenttrackingmock
  delegate: false
----------> Parent Classloader:
de.hybris.bootstrap.loader.PlatformInPlaceClassLoader@32c64135
'.
HOTSWAP AGENT: 15:56:30.024 INFO (org.hotswap.agent.plugin.tomcat.TomcatPlugin) - Tomcat plugin initialized - Tomcat version '8.5.40.0'

After this (Some seconds after start), nothing happens anymore.

However, I have to use the SAP machine or OpenJDK11 (local only) anyway, not any other 3rd party JDK.

Sadly, JRebel is not supporting 1905, yet and using it with 1905 is a real pain.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

Hi,

Adding this property in the local.properties file worked for me:

tomcat.debugjavaoptions= -javaagent:/Library/Java/JavaVirtualMachines/jdk-11.0.3.jdk.dcevm/Contents/Home/lib/hotswap/hotswap-agent.jar=autoHotswap=true,\
disablePlugin=hibernate,disablePlugin=jetty,disablePlugin=JSF,disablePlugin=ZK,disablePlugin=Weld,disablePlugin=Seam,disablePlugin=Spring,disablePlugin=Tomcat\
disablePlugin=Vaadin,disablePlugin=GlassFish,disablePlugin=Deltaspike,disablePlugin=ResteasyRegistry,disablePlugin=JBossModules,disablePlugin=WebObjects,\
disablePlugin=Owb,disablePlugin=OsgiEquinox,disablePlugin=WildFlyELResolver,disablePlugin=ELResolver,disablePlugin=MyFaces,disablePlugin=Mojarra,\
disablePlugin=Omnifaces,disablePlugin=Jersey1,disablePlugin=Jersey2,disablePlugin=Hibernate3JPA,disablePlugin=Hibernate3,disablePlugin=Log4j2 \
-XX:+UseSerialGC -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n

Regards!

0 Kudos

I tried this myself, but I end up in the same state as Michael

0 Kudos

my bad, changing tomcat.debugjavaoptions to tomcat.generaloptions helped alot

0 Kudos

First of all, there is a missing "," after Tomcat.

Second, I tried this many times but I still get the error messages like Michael and my backoffice dashboard is empty after accessing backoffice.

any ideas?

nsasi
Explorer
0 Kudos

Hi Michael,

If you found or find the solution, can you please update the steps you did?

I am facing issue while hotswap is registering resources in adaptivesearchsolr extension folder.

What additional thing I did is, added "-XX:+UseSerialGC" java option.

Regards,

Nitin