Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Facing isses with creating a user macro and getting the application launched after atlas-run

Atul kumar singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 9, 2018

Hi ,

I am getting the following exceptions after executing the command atlas-run.

 

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/satul/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
[INFO] [talledLocalContainer] Mar 09, 2018 2:26:28 PM org.apache.catalina.core.JreMemoryLeakPreventionListener lifecycleEvent
[INFO] [talledLocalContainer] SEVERE: Failed to trigger creation of the GC Daemon thread during Tomcat start to prevent possible memory leaks. This is expected on non-Sun JVMs.
[INFO] [talledLocalContainer] java.lang.ClassNotFoundException: sun.misc.GC
[INFO] [talledLocalContainer] at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
[INFO] [talledLocalContainer] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
[INFO] [talledLocalContainer] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
[INFO] [talledLocalContainer] at java.base/java.lang.Class.forName0(Native Method)
[INFO] [talledLocalContainer] at java.base/java.lang.Class.forName(Class.java:292)
[INFO] [talledLocalContainer] at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:286)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.load(Catalina.java:580)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.load(Catalina.java:603)
[INFO] [talledLocalContainer] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO] [talledLocalContainer] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [talledLocalContainer] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
[INFO] [talledLocalContainer]

 

ERROR [localhost-startStop-1] [springframework.web.context.ContextLoader] initWebApplicationContext Context initialization failed
[INFO] [talledLocalContainer] java.lang.NoClassDefFoundError: javax/activation/MimetypesFileTypeMap
[INFO] [talledLocalContainer] at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
[INFO] [talledLocalContainer] at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3139)
[INFO] [talledLocalContainer] at java.base/java.lang.Class.getDeclaredMethods(Class.java:2266)
[INFO] [talledLocalContainer] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)
[INFO] [talledLocalContainer] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)

I have followed all the steps from https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-confluence-hello-world-macro/ . But still getting issues. Can someone please help me out in this.

1 answer

0 votes
Deleted user April 5, 2018

Which JDK version do you have installed. It seems Tomcat 8.x does not run on JDK 9, but it works fine with JDK 1.8

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events