Hi Ruben, > -----Original Message----- > From: Ruben Reusser [mailto:r...@headwire.com] > Sent: Wednesday, March 27, 2013 12:21 AM > To: dev@sling.apache.org > Subject: not able to run standalone jar file (6) from download site > > hi, > > I downloaded the sling standalone jar file from the website and tried to run > it with java 7. I also dropped down to Java 6, that makes everything work fine > - not sure if this is a known issue or if I should file a defect.
This is a known issue, and has been fixed some time ago in the affected bundles. Just that there hasn't been a Sling 7 release to incorporate it. Now that Java 7 is out the door, perhaps we should aim for a Sling 7 release ( nudge, nudge, wink, wink ). Robert > > Ruben > > ( http://sling.apache.org/downloads.cgi ) java -jar > org.apache.sling.launchpad-6-standalone.jar start > 26.03.2013 15:09:01.453 *INFO* [main] Setting sling.home=sling (default) > 26.03.2013 15:09:01.454 *INFO* [Sling Control > Listener@hw8win/192.168.56.1:63000] Sling Control Server started > 26.03.2013 15:09:01.454 *INFO* [main] Starting Sling in sling > (C:\projects\sling\sling) > 26.03.2013 15:09:01.462 *INFO* [main] Checking launcher JAR in folder sling > 26.03.2013 15:09:01.470 *INFO* [main] Installing new launcher: > jar:file:/C:/projects/sling/org.apache.sling.launchpad-6- > standalone.jar!/resources/org.apache.sli > ng.launchpad.base.jar, 2.3.0 > (org.apache.sling.launchpad.base.jar.1364335741470) > 26.03.2013 15:09:01.472 *INFO* [main] Loading launcher class > org.apache.sling.launchpad.base.app.MainDelegate from > org.apache.sling.launchpad.base.jar.136433574 > 1470 > 26.03.2013 15:09:01.486 *INFO* [main] Starting launcher ... > 26.03.2013 15:09:01.488 *INFO* [main] HTTP server port: 8080 > 26.03.2013 15:09:01.541 *ERROR* [main] Failed to Start OSGi framework > org.osgi.framework.BundleException: Uncaught Instantiation Issue: > java.lang.ArrayIndexOutOfBoundsException: -1 > at > org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:245) > at > org.apache.sling.launchpad.base.app.MainDelegate$1.<init>(MainDelegate. > java:159) > at > org.apache.sling.launchpad.base.app.MainDelegate.start(MainDelegate.jav > a:159) > at org.apache.sling.launchpad.app.Main.startSling(Main.java:244) > at org.apache.sling.launchpad.app.Main.<init>(Main.java:107) > at org.apache.sling.launchpad.app.Main.main(Main.java:56) > Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 > at java.util.ArrayList.elementData(Unknown Source) > at java.util.ArrayList.get(Unknown Source) > at > org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.jav > a:1046) > at > org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java > :863) > at > org.apache.sling.launchpad.base.impl.SlingFelix.getSymbolicName(SlingFel > ix.java:32) > at org.apache.felix.framework.Felix.toString(Felix.java:1012) > at org.apache.felix.framework.Logger.doLog(Logger.java:128) > at org.apache.felix.framework.Logger._log(Logger.java:181) > at org.apache.felix.framework.Logger.log(Logger.java:114) > at > org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.ja > va:201) > at org.apache.felix.framework.Felix.<init>(Felix.java:374) > at > org.apache.sling.launchpad.base.impl.SlingFelix.<init>(SlingFelix.java:39) > at > org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:235) > ... 5 more > 26.03.2013 15:09:01.591 *ERROR* [main] There was a problem launching > Sling > 26.03.2013 15:09:01.596 *INFO* [Sling Terminator] Java VM is shutting down