Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Deploying EclipseRT bundles to Eclipse-embedded Virgo Tomcat doesn't work
Deploying EclipseRT bundles to Eclipse-embedded Virgo Tomcat doesn't work [message #819978] Tue, 13 March 2012 15:19 Go to next message
Jason Levine is currently offline Jason LevineFriend
Messages: 12
Registered: July 2009
Junior Member
I currently have a bunch of EclipseRT Bundle projects in Eclipse, and when I deploy them to my version of Virgo Tomcat I'm running as a server in Eclipse, they appear to try to deploy as plain WAR files, not as the WABs that they are. I'm adding them to the server as described in the Virgo Programmer Guide section 7.7 (using the "Add and Remove" dialog); I see them deploy, but they don't deploy to the Web-ContextPath that's defined in their MANIFEST.MF files, and when I look in the /stage/ and /work/org.eclipse.virgo.kernel.deployer_3.0.2.RELEASE/staging/global/bundle/ subdirectories of my Virgo Tomcat installation directory, I see that there's a .war entry for my project; it's a tiny tiny WAR file that simply contains an empty WEB-INF/classes directory and a META-INF/MANIFEST.MF file with "Manifest-Version: 1.0" and nothing else.

Is there a setting on my project somewhere that makes it behave with the embedded Virgo server like the WAB it really is? Note that if I build my project external to Eclipse -- using Maven, issuing "mvn package" -- then it perfectly builds my .jar file that I can either upload to the Virgo server using the admin interface or throw into the /pickup/ subdirectory to have it grab it automatically. But I'd love to work out using the built-in Virgo server in Eclipse, so I can debug without having to go through the manual build/redeploy stage.

I'm using the latest snapshot of the Eclipse Virgo Tools (1.0.0.201203100237-SNAPSHOT), and Virgo Tomcat 3.0.2.RELEASE.

Thanks in advance....
Jason
Re: Deploying EclipseRT bundles to Eclipse-embedded Virgo Tomcat doesn't work [message #825431 is a reply to message #819978] Tue, 20 March 2012 20:50 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Hi Jason,

Sorry we missed this one! Is it possible you're hitting:

333343: Incorrect packaging of JAR dependencies when deploying WAR to Embedded Virgo via STS/Eclipse
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333343

?

cheers,

Miles
Re: Deploying EclipseRT bundles to Eclipse-embedded Virgo Tomcat doesn't work [message #825979 is a reply to message #825431] Wed, 21 March 2012 13:52 Go to previous messageGo to next message
Jason Levine is currently offline Jason LevineFriend
Messages: 12
Registered: July 2009
Junior Member
I don't think I'm hitting that -- if you note, I'm getting functionally NO contents in my WAR file, and that bug seems to imply that it's only the packaged libraries that are affected. Likewise, there's the context path issue -- they're simply deployed to the incorrect context path.
Re: Deploying EclipseRT bundles to Eclipse-embedded Virgo Tomcat doesn't work [message #826556 is a reply to message #825979] Thu, 22 March 2012 08:09 Go to previous message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
I guess this could be related to the variety of symptoms that were reported under https://bugs.eclipse.org/bugs/show_bug.cgi?id=342552

Jason: it sounds like this is happening repeatably. If so, would it be possible to package up a minimal project that exhibits the problem?
Previous Topic:Servlet ClassNotFound exception
Next Topic:Virgo White Paper
Goto Forum:
  


Current Time: Tue Apr 23 17:30:01 GMT 2024

Powered by FUDForum. Page generated in 0.03497 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top