cancel
Showing results for 
Search instead for 
Did you mean: 

OAuth local server failure in sdk 2.26.7.1

ChrisPaine
Active Contributor
0 Kudos

Hi All - especially

I'm getting an error every time I start up a local 2.26.7.1 server:

java.lang.ClassNotFoundException: com.sap.cloud.security.oauth2.commons.exception.OAuthClientEntityException

Anything you are aware of?

Cheers,


Chris

Accepted Solutions (1)

Accepted Solutions (1)

ChrisPaine
Active Contributor
0 Kudos

Hi All,

I actually sat down with Martin and team and solved this one.

The problem is that you not only need to update the run-time of the local server, you also need to delete and recreate the server.

Just updating the runtime reference in the runtime environment area of server is not enough

You need to remove the server and re-create it - this loads the new package - for some reason changing the runtime doesn't upload the default apps to the server - it must be part of a different script.

Anyway, after doing that (and recreating all my destinations, users, etc) it all works!

jaronfrenk
Explorer
0 Kudos

Thanks for that!

Answers (3)

Answers (3)

jaronfrenk
Explorer
0 Kudos

Did you get any reply to this? I am having the same problem.

ChrisPaine
Active Contributor
0 Kudos

Anyone from the HCP Eclipse support team - is OAuth depreciated on Tomcat local servers? Or are you going to include the  com.sap.cloud.security.oauth2.commons.exception.OAuthClientEntityException at some point in time?

former_member197689
Active Participant
0 Kudos

Hi Chris,

We have a newer version of the Java Web Tomcat 7 "2.36.4".  Please download it here.   https://tools.hana.ondemand.com/#cloud

Please let me know the result.

Thanks,

Jin

jaronfrenk
Explorer
0 Kudos

Hello Jin,

That's the one I am using, and I still get that error message.

Gr,

Jaron

ChrisPaine
Active Contributor
0 Kudos

Anyone, anyone, Bueller?

This is happening for all runtimes including and since 2.26.7.1 on startup the below occurs:

Jul 17, 2015 4:33:31 PM org.apache.catalina.core.ContainerBase addChildInternal

SEVERE: ContainerBase.addChild: start:

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oauth2.local]]

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

  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:652)

  at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)

  at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912)

  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

  at java.util.concurrent.FutureTask.run(FutureTask.java:262)

  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)

Caused by: java.lang.NoClassDefFoundError: com/sap/cloud/security/oauth2/commons/exception/OAuthClientEntityException

  at java.lang.Class.getDeclaredFields0(Native Method)

  at java.lang.Class.privateGetDeclaredFields(Class.java:2499)

  at java.lang.Class.getDeclaredFields(Class.java:1811)

  at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)

  at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)

  at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:139)

  at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)

  at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)

  at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)

  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)

  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

  at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  ... 10 more

Caused by: java.lang.ClassNotFoundException: com.sap.cloud.security.oauth2.commons.exception.OAuthClientEntityException

  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)

  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)

  ... 24 more

Jul 17, 2015 4:33:31 PM org.apache.catalina.startup.HostConfig deployDescriptor

SEVERE: Error deploying configuration descriptor C:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\conf\Catalina\localhost\oauth2.local.xml

java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oauth2.local]]

  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)

  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

  at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)

  at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912)

  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

  at java.util.concurrent.FutureTask.run(FutureTask.java:262)

  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)