cancel
Showing results for 
Search instead for 
Did you mean: 

How to give jar at runtime as JVM parameter in Config tool

Former Member
0 Kudos

Hi

I am executing java spring based webservice on WS navigator CE7.1 . I am getting the follwing error. To avoid this i have to provide the spring-agent.jar at runtime to the javm , I tried to configure the Configtool jvm parameters as specified in the sap help.

Is is possible to give the jar as JVM param via config tool.

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SOAP-ENV:Body>

<ns2:po1ProcessingResponse xmlns:ns2="http://metering.com/greams/flowmanagement/inbound/">

<return status="TECHNICAL_ERROR">

<technicalErrors>

<code>TECHNICAL_ERROR</code>

<description>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.weaving.AspectJWeavingEnabler#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [com.sap.engine.boot.loader.ResourceMultiParentClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar</description>

<additionalInformation>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.weaving.AspectJWeavingEnabler#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [com.sap.engine.boot.loader.ResourceMultiParentClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar</additionalInformation>

<responseMessageCode>TECHNICAL_ERROR</responseMessageCode>

</technicalErrors>

</return>

</ns2:po1ProcessingResponse>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Have you checked note 1363755 - Integration of third party zipping library with 6.40 Engine

It might be helpful for for your issue..

Or check parameter -Xrun<library>[:options] load native agent library

Kind regards,

Mark

Edited by: M. Dijsselbloem on Apr 8, 2010 3:02 PM

Former Member
0 Kudos

i think the issue is some thing to do with the spring framework incorporation with SAP WebAS. if the jar is made avaliable for the reference in the runtime then it could work. But some clarification is required if SAP Java stack supports AspectJ programing.

Former Member
0 Kudos

Hope this will work.

Go to the config tool>select the View as Expert >Select your instance> >Select the VM Parameters tab> select additional parameters> Choose the vendor as GLOBAL.> Select the new button to create the parameter>In the NAME field give your complete VM argument.>Save > Restart the cluster.

Answers (0)