server.profile incomplete [message #550494] |
Fri, 30 July 2010 10:37  |
Eclipse User |
|
|
|
Hi,
Moving swiftly on to my next bug. I'm trying to add the seperate bundles that I need for JSF through the admin console. I'm trying to add the jar
com.springsource.javax.servlet.jsp.jstl 1.2.0
Which I'm guessing is a fairly common jar, however when I add it I'm getting the error below
Cannot resolve: com.springsource.javax.servlet.jsp.jstl
Unsatisfied leaf constraints:
Bundle: com.springsource.javax.servlet.jsp.jstl_1.2.0 - Import-Package: com.sun.org.apache.xml.internal.utils; version="0.0.0"
Did you mean: 'org.apache.catalina.util'?
Bundle: com.springsource.javax.servlet.jsp.jstl_1.2.0 - Import-Package: com.sun.org.apache.xpath.internal.objects; version="0.0.0"
Did you mean: 'org.apache.catalina.mbeans'?
Bundle: com.springsource.javax.servlet.jsp.jstl_1.2.0 - Import-Package: com.sun.org.apache.xpath.internal; version="0.0.0"
Did you mean: 'org.apache.catalina.realm'?
Bundle: com.springsource.javax.servlet.jsp.jstl_1.2.0 - Import-Package: com.sun.org.apache.xpath.internal.jaxp; version="0.0.0"
Did you mean: 'org.aspectj.lang.internal.lang'?
Bundle: com.springsource.javax.servlet.jsp.jstl_1.2.0 - Import-Package: com.sun.org.apache.xalan.internal.res; version="0.0.0"
Did you mean: 'org.apache.catalina.valves'?
Now, I've googled this as you do and I've come up with an issue report 'dm Server DMS-424.lib/java6-server.profile is incomplete' which says that some lines are missing from the server.profile file. I decided to add these in and now I'm getting an error
Exception in thread "main" org.osgi.framework.BundleException: Bundle com.springsource.slf4j.api 1.5.10 failed to start.
at com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:180)
at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160)
at com.springsource.osgi.launcher.Launcher.main(Launcher.java:58)
Caused by: org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.slf4j.impl; version="[1.5.10,2.0.0)"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1313)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:309)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272)
at com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:178)
I've no idea why the sucide rate isn't higher among OSGI developers but I think it's going to go up a notch quite soon. I think I'm going to start with a heated spoon and my eyeballs.
|
|
|
|
Re: server.profile incomplete [message #550512 is a reply to message #550506] |
Fri, 30 July 2010 11:36   |
Eclipse User |
|
|
|
Many thanks for your reply, the spoons are gently cooling by the side for now.
I've just tried to enter the extra lines into the server.profile as you metioned but I'm still getting the error asking for the slf4j files. I'm guessing I'm adding them incorrectly although they seem congruent.
org.xml.sax,\
org.xml.sax.ext,\
org.xml.sax.helpers,\
com.sun.org.apache.xalan.internal.res,\
com.sun.org.apache.xml.internal.utils,\
com.sun.org.apache.xpath.internal,\
com.sun.org.apache.xpath.internal.jaxp,\
com.sun.org.apache.xpath.internal.objects
org.osgi.framework.bootdelegation = \
com.springsource.osgi.extensions.*,\
com.springsource.osgi.launcher.*,\
com.springsource.kernel.authentication,\
I'm using the dm server 2.0.2.M1 release and I'm also testing in virgo M01,
The problem I was having before with the xmlcommons file was because I was trying to add it into the import bundle of the project as it was the only way how I knew at the time, now that I am using the admin console as well as eclipse things seem to be progressing instead of a dead end. However I feel the road is long......
|
|
|
|
Re: server.profile incomplete [message #550518 is a reply to message #550513] |
Fri, 30 July 2010 11:49   |
Eclipse User |
|
|
|
Hi,
Glad to hear the spoons are down.
I have:
org.xml.sax,\
org.xml.sax.ext,\
org.xml.sax.helpers,\
com.sun.org.apache.xalan.internal.res,\
com.sun.org.apache.xml.internal.utils,\
com.sun.org.apache.xpath.internal,\
com.sun.org.apache.xpath.internal.jaxp,\
com.sun.org.apache.xpath.internal.objects
org.osgi.framework.bootdelegation = \
org.eclipse.virgo.osgi.extensions.*,\
I can't see any differences. I'm using Virgo M02, short of something really major we won't be doing any more releases on the dm Server line. Virgo is the future. Off the top of my head I can't think of any changes that would be affecting this.
How were you deploying things before? If you just put them in the repository they will be available if some other bundle needs it while the pickup dir and the admin console will both actively resolve and install the bundle.
When you get this problem could you use the admin console, osgi state tab to look for anything exporting the org.slf4j.impl package and just sanity check it is actually there, and at the requested version.
Chris.
|
|
|
|
|
Re: server.profile incomplete [message #668117 is a reply to message #595941] |
Tue, 03 May 2011 15:50  |
Eclipse User |
|
|
|
had the same issue too...edited java6-server.profile and the issue seemed to be resolved...ran into another issue though but this could be non related to this problem
I was trying to run the jsf-demo I found here:
https://issuetracker.springsource.com/browse/DMS-2874
and I now get this error:
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:131)
at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:293)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:290)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:228)
at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.eclipse.gemini.web.core.WebApplicationStartFailedException: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/jsf-demo' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:108)
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:122)
... 8 common frames omitted
Caused by: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/jsf-demo' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:123)
at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:91)
... 9 common frames omitted
Will try my luck in the JSF2 topic on the forums here. grts
|
|
|
Powered by
FUDForum. Page generated in 0.04224 seconds