[CONTROLLER-1257] Tomcat as startupFeature prevents first run of controller Created: 17/Apr/15  Updated: 19/Oct/17  Resolved: 05/May/15

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: Post-Helium
Fix Version/s: None

Type: Bug
Reporter: Juraj Sebin Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 3011

 Description   

When running ./karaf on controller from built from master (build Finished at: 2015-04-17T04:09:59-04:00), an exception is thrown:

Error installing bundle listed in startup.properties with url: wrap:mvn:javax.servlet.jsp/jsp-api/2.1 and startlevel: 30
Exception in thread "main" java.lang.NullPointerException
at org.apache.karaf.main.Main.destroy(Main.java:525)
at org.apache.karaf.main.Main.main(Main.java:173)



 Comments   
Comment by Juraj Sebin [ 17/Apr/15 ]

karaf.log file contains:

Apr 17, 2015 4:30:50 AM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Apr 17, 2015 4:30:51 AM org.apache.karaf.main.Main main
SEVERE: Could not launch framework
java.lang.RuntimeException: Error installing bundle listed in startup.properties with url: wrap:mvn:javax.servlet.jsp/jsp-api/2.1 and startlevel: 30
at org.apache.karaf.main.Main.installAndStartBundles(Main.java:392)
at org.apache.karaf.main.Main.launch(Main.java:245)
at org.apache.karaf.main.Main.main(Main.java:167)
Caused by: java.lang.RuntimeException: Could not resolve wrap:mvn:javax.servlet.jsp/jsp-api/2.1
at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
at org.apache.karaf.main.Main.installAndStartBundles(Main.java:384)
... 2 more

Comment by Tony Tkacik [ 17/Apr/15 ]

Are you starting controller using Java 8?

Comment by Juraj Sebin [ 17/Apr/15 ]

my java version:

java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1~deb7u1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

should it be upgraded to java 8 (or to any other version)?

Comment by Juraj Sebin [ 17/Apr/15 ]

resolved by updating java version to:

java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~deb7u1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Comment by Tony Tkacik [ 17/Apr/15 ]

Are you starting controller using Java 8?

Comment by Tony Tkacik [ 17/Apr/15 ]

https://git.opendaylight.org/gerrit/#/c/18542/

  • Removed startup features to install only what is necessary (tomcat is mostly unused).
Comment by Carol Sanders [ 05/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.

Generated at Wed Feb 07 19:55:04 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.