PDA

View Full Version : Unable to start application server



Beta User
May 21st, 2008, 01:11 PM
I'am not able to start an out-of-the-box version of the application server.
What do I miss?

environment:
- Windows XP, SP2
- Java 6 (version 1.6.0-05)

I perform the following steps:
1) extract springsource-ap-1.0.0.beta3.zip
2) extract springsource-ap-epl-1.0.0.beta3.zip
3) define environment variable 'PLATFORM_HOME'
4) cd %PLATFORM_HOME%
5) binstartup.bat
5) the program almost immidiate stops. The file 'serviceability race race.log' contains:

--------------------------------------------------------------------------------
|
| SpringSource Application Platform
|
--------------------------------------------------------------------------------
[2008-05-21 12:50:55.109] main com.springsource.platform.kernel.bootstrap.Bootstr ap I <SPKB0001I> Platform starting.
[2008-05-21 12:50:55.249] main rovisioning.repository.AntPathMatchingFileSystemSe archer.unknown I Ant path pattern: D:javaspringsource-ap-1.0.0.beta3
epositoryinstalled*
[2008-05-21 12:50:55.249] main System.err E Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.util.AntPathMatcher.matchStart (Ljava/lang/String;Ljava/lang/String;)Z
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.provisioning.reposi tory.AntPathMatchingFileSystemSearcher.search(AntP athMatchingFileSystemSearcher.java:132)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.provisioning.reposi tory.AntPathMatchingFileSystemSearcher.search(AntP athMatchingFileSystemSearcher.java:125)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.provisioning.reposi tory.AntPathMatchingFileSystemSearcher.getAgeOfDef initionSpace(AntPathMatchingFileSystemSearcher.jav a:104)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.provisioning.reposi tory.FileSystemBundleRepository.<init>(FileSystemBundleRepository.java:101)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.provisioning.reposi tory.MutableFileSystemBundleRepository.<init>(MutableFileSystemBundleRepository.java:85)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.provisioning.reposi tory.BundleRepositoryFactory.createMutableBundleRe pository(BundleRepositoryFactory.java:66)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.framework.support.A bstractOsgiFramework.<init>(AbstractOsgiFramework.java:105)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.framework.equinox.E quinoxOsgiFramework.<init>(EquinoxOsgiFramework.java:91)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.osgi.framework.equinox.E quinoxOsgiLauncher.start(EquinoxOsgiLauncher.java: 52)
[2008-05-21 12:50:55.249] main System.err E at com.springsource.platform.kernel.bootstrap.Bootstr ap.main(Bootstrap.java:89)

Beta User
May 23rd, 2008, 01:40 AM
I have exactly the same environment but I found a different error in my logs
[2008-05-23 10:26:10.625] platform-dm-1 <SPPM0001I> Installed profile 'web'.
[2008-05-23 10:26:13.265] platform-dm-11 <SPFF0002I> Wrote dump file "C:dev oolsspringsource-ap-1.0.0.beta3serviceabilitydump2008-05-23_10-26-10.dump"
java.lang.ClassCastException: org.apache.coyote.http11.Http11AprProtocol cannot be cast to org.apache.coyote.http11.Http11Protocol
at com.springsource.platform.servlet.tomcat.TomcatSer vletContainer.configureHttpConnector(TomcatServlet Container.java:209)
at com.springsource.platform.servlet.tomcat.TomcatSer vletContainer.<init>(TomcatServletContainer.java:165)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:96)
at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:87)
....

Andy Wilkinson
May 23rd, 2008, 03:04 AM
Hi Mark,

That NoSuchMethodError suggests that the Platform is somehow picking up an old version of Spring as it was added in 2.1.

Probably the easiest way to diagnose this is to enable verbose classloading to determine from where AntPathMatcher is being loaded:

> set JAVA_OPTS=-verbose:class
> startup.bat > classloads.txt

This will produce a *lot* of output so it would probably be best to redirect it to a file. Searching it for AntPathMatcher should hopefully tell us from where it's being loaded and help to narrow down the problem.

Thanks,
Andy

Sam Brannen
May 24th, 2008, 04:25 AM
Hi Dirk,

> I have exactly the same environment but I found a different error in my logs
> [2008-05-23 10:26:10.625] platform-dm-1 <SPPM0001I> Installed profile 'web'.
> [2008-05-23 10:26:13.265] platform-dm-11 <SPFF0002I> Wrote dump file
> "C:dev oolsspringsource-ap-1.0.0.beta3serviceabilitydump2008-05-23_10-26-10.dump"
> java.lang.ClassCastException: org.apache.coyote.http11.Http11AprProtocol cannot be cast
> to org.apache.coyote.http11.Http11Protocol

This should no longer occur on beta4.

Can you please try out beta4 and let me know if that solves your problem?

Thanks,

Sam

Beta User
May 25th, 2008, 12:31 PM
That
> set JAVA_OPTS=-verbose:class
> startup.bat > classloads.txt

helped me a lot. I had some manually added .jars files in the lib/ext of the java jre. Removing these helped and gave me the expected behavior.