Greenpages sample problem [message #639798] |
Wed, 17 November 2010 20:32 |
Fabian Caballero Messages: 3 Registered: November 2010 |
Junior Member |
|
|
Hi all, first sorry by my english... well i have this problem, when i try to add the dependency of greenpages.app on the pom of greenpages.web, the pom breaks making that the others dependecies become missing, i'm following the tutorial, and i have repeated several times and i could not found the problem or the solution about that, i`ve made mvn package, install, etc. and nothing, i took several weeks trying to make it work, please i need help, if somebody had have this problem and got to fix it...make a comment help!!!. well im talking about the start folder
[Updated on: Wed, 17 November 2010 20:33] Report message to a moderator
|
|
|
Re: Greenpages sample problem [message #640159 is a reply to message #639798] |
Fri, 19 November 2010 11:49 |
|
Hi,
Is this at section 4.6 is the getting started guide? Have you tried comparing what you have against the solution folder to see what differences there are? The addition of the dependency in the web pom should be:
<dependency>
<groupId>com.springsource.dmserver</groupId>
<artifactId>greenpages.app</artifactId>
<version>${project.version}</version>
</dependency>
I got this from the solution where it is the first child element of the <dependancies> tag. How do you mean the other dependencies become missing? If this still isn't working could you please provide a little more detail.
Thanks, Chris.
------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
|
|
|
Re: Greenpages sample problem [message #640219 is a reply to message #639798] |
Fri, 19 November 2010 15:42 |
Fabian Caballero Messages: 3 Registered: November 2010 |
Junior Member |
|
|
Hi Chris,
thanks for answer, well i solved the problem yesterday at night, it was that i had to run mvn install in the POM of the parent folder, then the dependency started to work, but now i had another problem when i deploy the greenpages.PAR, the VWS console show me the next exception, if u now how to fix it, i will be grateful:
[2010-11-19 16:41:10.637] TCP Connection(4)-127.0.0.1 <DE0002E> Installation of bundle 'greenpages.web' version '2.0.0' failed. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundl eDependenciesException: Unable to satisfy dependencies of bundle 'greenpages.web' at version '2.0.0': Cannot resolve: greenpages.web
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <greenpages.web_2.0.0>
constraint: <Import-Package: greenpages; version="[2.0.0,2.1.0)">
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.inte rnal.QuasiResolveStage.process(QuasiResolveStage.java:45)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.Compensat ingPipeline.doProcessTree(CompensatingPipeline.java:72)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.driveInstallPipeline(PipelinedApplicationDe ployer.java:268)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.doInstall(PipelinedApplicationDeployer.java :151)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.install(PipelinedApplicationDeployer.java:1 23)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.deploy(PipelinedApplicationDeployer.java:18 7)
at org.eclipse.virgo.kernel.deployer.management.StandardDeploye r.deploy(StandardDeployer.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenRetur n(ConvertingMethod.java:167)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIn trospector.java:96)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIn trospector.java:33)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntro spector.java:208)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.jav a:120)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.jav a:262)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke (DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer .java:761)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RM IConnectionImpl.java:1426)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMI ConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOper ation.run(RMIConnectionImpl.java:1264)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOp eration(RMIConnectionImpl.java:1359)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConn ectionImpl.java:788)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja va:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspo rt.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TC PTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCP Transport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
[2010-11-19 16:41:10.652] TCP Connection(4)-127.0.0.1 <DE0003E> Install failed for bundle 'greenpages.web' version '2.0.0'.
[2010-11-19 16:41:10.667] TCP Connection(4)-127.0.0.1 <DE0500E> Unable to install application from URI 'file:/C:/virgo-web-server-2.1.0.M03-incubation/stage/greenp ages.web.war'. Cannot satisfy constraints for bundle 'greenpages.web' version '2.0.0'. Cannot resolve: greenpages.web
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <greenpages.web_2.0.0>
constraint: <Import-Package: greenpages; version="[2.0.0,2.1.0)">
. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundl eDependenciesException: Unable to satisfy dependencies of bundle 'greenpages.web' at version '2.0.0': Cannot resolve: greenpages.web
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <greenpages.web_2.0.0>
constraint: <Import-Package: greenpages; version="[2.0.0,2.1.0)">
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.inte rnal.QuasiResolveStage.process(QuasiResolveStage.java:45)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.Compensat ingPipeline.doProcessTree(CompensatingPipeline.java:72)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.driveInstallPipeline(PipelinedApplicationDe ployer.java:268)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.doInstall(PipelinedApplicationDeployer.java :151)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.install(PipelinedApplicationDeployer.java:1 23)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.deploy(PipelinedApplicationDeployer.java:18 7)
at org.eclipse.virgo.kernel.deployer.management.StandardDeploye r.deploy(StandardDeployer.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenRetur n(ConvertingMethod.java:167)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIn trospector.java:96)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIn trospector.java:33)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntro spector.java:208)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.jav a:120)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.jav a:262)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke (DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer .java:761)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RM IConnectionImpl.java:1426)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMI ConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOper ation.run(RMIConnectionImpl.java:1264)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOp eration(RMIConnectionImpl.java:1359)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConn ectionImpl.java:788)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja va:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspo rt.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TC PTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCP Transport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
[2010-11-19 16:41:10.678] fs-watcher <HD0005I> Hot deploy not performed because file 'org.eclipse.virgo.apps.admin-2.1.0.M03-incubation.plan' is already deployed.
[2010-11-19 16:41:10.690] fs-watcher <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.virgo.apps.repository-2.1.0.M03-incubation.par' .
[2010-11-19 16:41:10.711] fs-watcher <HD0005I> Hot deploy not performed because file 'org.eclipse.virgo.apps.repository-2.1.0.M03-incubation.par' is already deployed.
[2010-11-19 16:41:10.723] fs-watcher <HD0001I> Hot deployer processing 'INITIAL' event for file 'org.eclipse.virgo.apps.splash-2.1.0.M03-incubation.war'.
[2010-11-19 16:41:10.736] fs-watcher <HD0005I> Hot deploy not performed because file 'org.eclipse.virgo.apps.splash-2.1.0.M03-incubation.war' is already deployed.
|
|
|
|
Re: Greenpages sample problem [message #640709 is a reply to message #640490] |
Mon, 22 November 2010 21:35 |
Fabian Caballero Messages: 3 Registered: November 2010 |
Junior Member |
|
|
thnks Lorie for answer, well a little problem, i don´t know much about OSGi, could you tell me, how can i do to deploy and start the bundle greenpages.app? or are you talking about install with maven??
thanks again
i got this:
[2010-11-22 22:40:22.216] TCP Connection(7)-127.0.0.1 <DE0000I> Installing par 'greenpages' version '2.0.0'.
[2010-11-22 22:40:22.224] TCP Connection(7)-127.0.0.1 <DE0000I> Installing bundle 'greenpages-2-greenpages' version '2.0.0'.
[2010-11-22 22:40:22.231] TCP Connection(7)-127.0.0.1 <DE0000I> Installing bundle 'greenpages-2-greenpages.web' version '2.0.0'.
[2010-11-22 22:40:25.431] TCP Connection(7)-127.0.0.1 <DE0001I> Installed bundle 'greenpages-2-greenpages' version '2.0.0'.
[2010-11-22 22:40:25.442] TCP Connection(7)-127.0.0.1 <DE0001I> Installed bundle 'greenpages-2-greenpages.web' version '2.0.0'.
[2010-11-22 22:40:25.453] TCP Connection(7)-127.0.0.1 <DE0001I> Installed bundle 'greenpages-2-synthetic.context' version '2.0.0'.
[2010-11-22 22:40:25.463] TCP Connection(7)-127.0.0.1 <DE0001I> Installed par 'greenpages' version '2.0.0'.
[2010-11-22 22:40:25.563] TCP Connection(7)-127.0.0.1 <DE0004I> Starting par 'greenpages' version '2.0.0'.
[2010-11-22 22:40:25.576] TCP Connection(7)-127.0.0.1 <DE0004I> Starting bundle 'greenpages-2-greenpages' version '2.0.0'.
[2010-11-22 22:40:26.270] TCP Connection(7)-127.0.0.1 <DE0004I> Starting bundle 'greenpages-2-greenpages.web' version '2.0.0'.
[2010-11-22 22:40:26.285] TCP Connection(7)-127.0.0.1 <DE0004I> Starting bundle 'greenpages-2-synthetic.context' version '2.0.0'.
[2010-11-22 22:40:26.304] Thread-21 <WE0000I> Starting web bundle 'greenpages-2-greenpages.web' version '2.0.0' with context path '/greenpages'.
[2010-11-22 22:40:26.335] start-signalling-4 <DE0005I> Started bundle 'greenpages-2-synthetic.context' version '2.0.0'.
[2010-11-22 22:40:26.520] start-signalling-4 <DE0005I> Started bundle 'greenpages-2-greenpages' version '2.0.0'.
[2010-11-22 22:40:33.504] Thread-21 <WE0005E> Failed to start web bundle 'greenpages-2-greenpages.web' version '2.0.0': consult the serviceability log for further details.
[2010-11-22 22:40:33.521] start-signalling-3 <DE0006E> Start failed for bundle 'greenpages-2-greenpages.web' version '2.0.0'. org.eclipse.virgo.kernel.deployer.core.DeploymentException: Web application failed to start
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListen er.onStarted(WebBundleLifecycleListener.java:129)
at org.eclipse.virgo.kernel.install.artifact.internal.ArtifactS tateMonitor.onStarted(ArtifactStateMonitor.java:205)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.j ava:273)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact.access$0(AbstractInstallArtifact.java:270)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact$StateMonitorSignal.signalSuccessfulCompletion (AbstractInstallArtifact.java:223)
at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1. run(BundleStartTracker.java:140)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.eclipse.gemini.web.core.WebApplicationStartFailedExcepti on: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/greenpages' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.internal.StandardWebApplication.start (StandardWebApplication.java:107)
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListen er.onStarted(WebBundleLifecycleListener.java:120)
... 8 common frames omitted
Caused by: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/greenpages' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContaine r.startWebApplication(TomcatServletContainer.java:123)
at org.eclipse.gemini.web.internal.StandardWebApplication.start (StandardWebApplication.java:90)
... 9 common frames omitted
[2010-11-22 22:40:33.534] start-signalling-3 <DE0010I> Stopping bundle 'greenpages-2-greenpages.web' version '2.0.0'.
[2010-11-22 22:40:33.545] start-signalling-3 <DE0011I> Stopped bundle 'greenpages-2-greenpages.web' version '2.0.0'.
[2010-11-22 22:40:33.554] start-signalling-3 <DE0006E> Start failed for par 'greenpages' version '2.0.0'. org.eclipse.virgo.kernel.deployer.core.DeploymentException: Web application failed to start
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListen er.onStarted(WebBundleLifecycleListener.java:129)
at org.eclipse.virgo.kernel.install.artifact.internal.ArtifactS tateMonitor.onStarted(ArtifactStateMonitor.java:205)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.j ava:273)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact.access$0(AbstractInstallArtifact.java:270)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact$StateMonitorSignal.signalSuccessfulCompletion (AbstractInstallArtifact.java:223)
at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1. run(BundleStartTracker.java:140)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.eclipse.gemini.web.core.WebApplicationStartFailedExcepti on: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/greenpages' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.internal.StandardWebApplication.start (StandardWebApplication.java:107)
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListen er.onStarted(WebBundleLifecycleListener.java:120)
... 8 common frames omitted
Caused by: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/greenpages' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContaine r.startWebApplication(TomcatServletContainer.java:123)
at org.eclipse.gemini.web.internal.StandardWebApplication.start (StandardWebApplication.java:90)
... 9 common frames omitted
[2010-11-22 22:40:33.562] TCP Connection(7)-127.0.0.1 <DE0013I> Uninstalling par 'greenpages' version '2.0.0'.
[2010-11-22 22:40:33.569] TCP Connection(7)-127.0.0.1 <DE0010I> Stopping bundle 'greenpages-2-greenpages' version '2.0.0'.
[2010-11-22 22:40:33.613] TCP Connection(7)-127.0.0.1 <DE0011I> Stopped bundle 'greenpages-2-greenpages' version '2.0.0'.
[2010-11-22 22:40:33.625] TCP Connection(7)-127.0.0.1 <DE0013I> Uninstalling bundle 'greenpages-2-greenpages' version '2.0.0'.
[2010-11-22 22:40:33.636] TCP Connection(7)-127.0.0.1 <DE0014I> Uninstalled bundle 'greenpages-2-greenpages' version '2.0.0'.
[2010-11-22 22:40:33.651] TCP Connection(7)-127.0.0.1 <DE0010I> Stopping bundle 'greenpages-2-synthetic.context' version '2.0.0'.
[2010-11-22 22:40:33.663] TCP Connection(7)-127.0.0.1 <DE0011I> Stopped bundle 'greenpages-2-synthetic.context' version '2.0.0'.
[2010-11-22 22:40:35.000] TCP Connection(7)-127.0.0.1 <DE0013I> Uninstalling bundle 'greenpages-2-greenpages.web' version '2.0.0'.
[2010-11-22 22:40:35.332] TCP Connection(7)-127.0.0.1 <DE0014I> Uninstalled bundle 'greenpages-2-greenpages.web' version '2.0.0'.
[2010-11-22 22:40:36.580] TCP Connection(7)-127.0.0.1 <DE0013I> Uninstalling bundle 'greenpages-2-synthetic.context' version '2.0.0'.
[2010-11-22 22:40:36.596] TCP Connection(7)-127.0.0.1 <DE0014I> Uninstalled bundle 'greenpages-2-synthetic.context' version '2.0.0'.
[2010-11-22 22:40:37.499] TCP Connection(7)-127.0.0.1 <DE0014I> Uninstalled par 'greenpages' version '2.0.0'.
[Updated on: Mon, 22 November 2010 21:43] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03497 seconds