| Forum: Virgo |
|---|
| Topic: [Tooling] Feedback on Default VM settings |
|---|
|
| Topic: Virgo 3.5.0.M04 released |
|---|
|
| Topic: Spring Annotation Driven Controller in different bundles |
|---|
| Spring Annotation Driven Controller in different bundles [message #865699] |
Mon, 30 April 2012 10:28 |
Amritesh Bhardwaj Messages: 1 Registered: April 2012 |
Junior Member |
|
|
Hello,
I am trying to use Snaps and Spring MVC annotation driven controller and using this i want to develop my UI code in a way that a new functionality with all its UI code (including the JSP's and Controllers can become a new bundle) For this i am using the annotation driven controller. However my new controllers defined in a new snap are not mapped and seem to get ignored during the deployment.
This is how its configured:
In our host bundle we have this configuration
<context:component-scan base-package="com.esprittechnology.animals.ui.controller"/>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>
this is how my controller is annotated:
@Controller
@RequestMapping("/categories.do")
public class CategoryController {
}
While deploying the host bundle I can see the debug showing the annotation configuration working: " Mapped URL path [/categories.do] onto handler 'categoryController' "
In my snap i have this configuration:
<context:component-scan base-package="com.esprittechnology.animals.ui.mammals.controller"/>
<bean id="internalViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>
However on deployment of the snap i don't see the annotation configuration work to create the appropriate controller mappings.
Can somebody please let me know if this kind of configuration is not supported..? I only tried snaps because I read Virgo TS does not support fragments for web bundles.
thanks
Amritesh
|
|
|
| Topic: Virgo 3.0.3.RELEASE |
|---|
|
| Topic: Juno, Indigo, Helios..? |
|---|
| Juno, Indigo, Helios..? [message #854329] |
Mon, 23 April 2012 18:07 |
Miles Parker Messages: 1238 Registered: July 2009 |
Senior Member |
|
|
Hi all,
We've got a number of dependency issues we're sorting out for Virgo tooling, some of which affect Helios availability and some of which affect Indigo. I'd like to get a sense for just how much effort to put into preserving support for these. Our current target is to do everything we can to support Indigo and probably drop Helios, but please speak up if you have a hard requirement for Helios or anticipate having one for Indigo post-Juno release.
cheers,
Miles
|
|
|
| Topic: Eclipse Help for Virgo |
|---|
| Eclipse Help for Virgo [message #845050] |
Sat, 14 April 2012 13:36 |
Miles Parker Messages: 1238 Registered: July 2009 |
Senior Member |
|
|
Hi all,
Just a note that the latest snapshot build includes all of the Virgo documentation (including the programmer and user guides as well as for tooling proper) packaged as Eclipse Help. So that might be a reason for people to try out the tooling even if they are managing Virgo manually. But please note that the tooling documentation itself is very out of date and not complete. We're working on that next..
cheers,
Miles
|
|
|
| Topic: CME Group Experience of Virgo |
|---|
|
| Topic: Virgo tomcat Server 3.0.2 uploading war file problem |
|---|
| Virgo tomcat Server 3.0.2 uploading war file problem [message #829319] |
Mon, 26 March 2012 02:12 |
 |
karthik elavan Messages: 67 Registered: August 2011 Location: Chennai |
Member |
|
|
Hi Friends,
I have currently using virgo tomcat server 3.0.2 in my application and successful working, But i got some exception for when i goin to updated war file deployed my server(test server for production) the i got exception already three to foure bundle(other application WAR file is runing) please help me... below the exception log..
Log.log
------------------------------
org.eclipse.virgo.apps.admin.web Handler execution resulted in exception org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out
at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:162)
at org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:138)
at org.springframework.web.servlet.DispatcherServlet.checkMultipart(DispatcherServlet.java:887)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:750)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
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.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:359)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:155)
... 25 common frames omitted
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:528)
at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:497)
at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:559)
at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:118)
at org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:326)
at org.apache.coyote.Request.doRead(Request.java:422)
at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:287)
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:407)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:310)
at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:202)
at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:959)
at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)
at java.io.InputStream.read(InputStream.java:85)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:354)
... 27 common frames omitted
Thanks
karthik
|
|
|
| Topic: Virgo White Paper |
|---|
|
| Topic: **RFC: Supporting PDE/Equinox bundles in Eclipse IDE |
|---|
|
| Topic: Attention Virgo builders: upgrade Ant |
|---|
| Attention Virgo builders: upgrade Ant [message #788254] |
Wed, 01 February 2012 10:09 |
Glyn Normington Messages: 889 Registered: July 2009 |
Senior Member |
|
|
If you build Virgo, please upgrade Ant to 1.8.2 or later before attempting to build Virgo 3.5.x (currently on the branch 364571-introduce-nano).
If you don't upgrade, the packaging step will fail with errors like this:
/Users/glynnormington/eclipse/virgo/org.eclipse.virgo.kernel/build-kernel/build.xml:128: Problem creating zip: /Users/glynnormington/eclipse/virgo/org.eclipse.virgo.kernel/build-kernel/target/kernel_resources_zipped/binary/kernel_resources (No such file or directory) (and the archive is probably corrupt but I could not delete it)
Regards,
Glyn
|
|
|
| Topic: Virgo Server Adapter Immediate Shutdown |
|---|
| Virgo Server Adapter Immediate Shutdown [message #788187] |
Wed, 01 February 2012 08:08 |
Andi Buechler Messages: 1 Registered: February 2012 |
Junior Member |
|
|
Hello,
I'm using STS 2.7.2 with SpringSource dm Server Tools 2.7.0. I noticed that when I stop Virgo via Eclipse a "immediate shutdown" is performed. This causes some problems because OSGi bundles are not stopped, the database is not shutdown properly etc.
Is there a way to configure the Eclipse server adapter to not perform an immediate shutdown but a "regular" shutdown?
Thanks,
Andi
|
|
|
| Topic: CME Group and Virgo |
|---|
|
| Topic: What bundles Should I use to work with Hibernate and Virgo? |
|---|
|
| Topic: Virgo 3.5.0.M01 released |
|---|
|
| Topic: eclipse and bundlor 'Bundle-Classpath File Detection Criteria' |
|---|
|
| Topic: Bundlor 1.1.0.M02 released |
|---|
|
| Topic: Re: How does the Virgo server get started from the Eclipse Servers view? |
|---|
|
| Topic: Re: How does the Virgo server get started from the Eclipse Servers view? |
|---|
|
| Topic: Problem deploying a plan that contains an already active bundle |
|---|
| Problem deploying a plan that contains an already active bundle [message #727050] |
Tue, 20 September 2011 06:05 |
Barbara Rosi-Schwartz Messages: 431 Registered: July 2009 |
Senior Member |
|
|
Hello.
I have a bundle, say bundle A, which is started in my Virgo kernel when I start the kernel up.
Another bundle is responsible for gathering some information from the user and then writing a plan file in the kernel's pickup directory. The plan file references bundle A which is already active.
When Virgo attempts to deploy the plan, it fails with a DeploymentException of this sort:
org.eclipse.virgo.kernel.deployer.core.DeploymentException: InstallArtifact bundle 'A' version '0.0.1.SNAPSHOT' in scope 'null' was installed when bundle 'A' version '0.0.1.SNAPSHOT' in scope 'null' was installed
Why is this happening? What am I getting wrong?
TIA,
B.
|
|
|
| Topic: Virgo 3.0.1 Released |
|---|
|
| Topic: Note: Spring IDE nightly builds got incompatible |
|---|
| Note: Spring IDE nightly builds got incompatible [message #722074] |
Sun, 04 September 2011 05:26 |
Martin Lippert Messages: 119 Registered: July 2009 |
Senior Member |
|
|
At the moment, we still need Spring IDE to install the Virgo IDE. Aside from the fact that we are working on removing this dependency, we used the Spring IDE nightly update site in the past to let people install the Virgo IDE.
Because Spring IDE has moved towards supporting Spring 3.1, the nightly builds ar no longer compatible with the Virgo IDE. Therefore we changed the link on the installation instructions wiki page to a compatible Spring IDE release update site.
If you have the Virgo IDE installed based on the nightly site, you should disable that update site from the list of available update sites (Preferences -> Available Update Sites) to avoid unnecessary update alerts.
-Martin
|
|
|
| Topic: Virgo Maya (3.0) Available for Download |
|---|
|
| Topic: Virgo 3.0.0.RC2 available |
|---|
|
| Topic: Virgo on CloudFoundry |
|---|
|
| Topic: Virgo 3.0.0.RC1 available, including snaps |
|---|
|
| Topic: Put yourself on the OSGi map |
|---|
|
| Topic: New blog on Virgo and p2 |
|---|
|
| Topic: The Closure of Event-Based Communication between Spring DM Extender and Spring-Power Bundlers |
|---|
|
| Topic: Spring framework creator's opinion on OSGI |
|---|
|
| Topic: Adding bundle nature |
|---|
| Adding bundle nature [message #689286] |
Mon, 27 June 2011 06:48 |
Ivana Messages: 14 Registered: December 2010 |
Junior Member |
|
|
Hi everyone,
I need some information.
I want to add osgi bundle nature to my plugin project, but I don't want to use
right click -> spring tools -> add osgi bundle nature, I don't want to have that possibility only in eclipse environment.
I tried to do that using "mvn eclipse:eclipse" and adding the following lines of code in project pom.xml:
------------------------------------------------
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<classpathContainers>
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6</classpathContainer>
<classpathContainer>org.eclipse.pde.core.requiredPlugins</classpathContainer>
</classpathContainers>
<buildcommands>
<buildcommand>org.eclipse.wst.common.project.facet.core.builder</buildcommand>
<buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
<buildcommand>org.eclipse.pde.ManifestBuilder</buildcommand>
<buildcommand>org.eclipse.pde.SchemaBuilder</buildcommand>
<buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
</buildcommands>
<projectnatures>
<projectnature>com.springsource.server.ide.facet.core.bundlenature</projectnature>
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
<projectnature>org.eclipse.pde.PluginNature</projectnature>
<projectnature>org.eclipse.jdt.core.javanature</projectnature>
<projectnature>org.eclipse.wst.common.project.facet.core.nature</projectnature>
</projectnatures>
</configuration>
</plugin>
----------------------------------------
but that wasn't enough.
---How I could create the following files in .settings using by configuration for eclipse plugin:
org.eclipse.wst.common.project.facet.core.xml
org.eclipse.jdt.core.prefs
and
---how to disable adding on a build path
<classpathentry kind="var" path="M2_REPO/org/eclipse/osgi/org.eclipse.osgi_/3.6.0/org.eclipse.osgi_-3.6.0-gs4tr.jar"/>
and similar staffs from dependencies.
Thank you for your time,
Ivana
Attachment: pom.xml
(Size: 3.69KB, Downloaded 39 times)
|
|
|
| Topic: Virgo IDE 1.0.0.M01 released |
|---|
| Virgo IDE 1.0.0.M01 released [message #687789] |
Thu, 23 June 2011 04:37 |
Martin Lippert Messages: 119 Registered: July 2009 |
Senior Member |
|
|
Hi!
I am happy to announce that we released the first milestone build of the Virgo IDE tooling. For installation instructions, please take a look at the this wiki page:
http://wiki.eclipse.org/Virgo/Tooling
This is the first milestone build after the code contribution from SpringSource and there aren't that much changes with regards to features or bugs in there compared to the latest dm server tooling releases. But this will change now... 
Please file bugzilla issues for this using the Virgo project and the tooling component.
Enjoy!
Cheers,
-Martin
|
|
|
| Topic: Virgo 3.0 plan date |
|---|
| Virgo 3.0 plan date [message #677755] |
Thu, 09 June 2011 06:16 |
Glyn Normington Messages: 889 Registered: July 2009 |
Senior Member |
|
|
I have changed the 3.0 schedule from June to July/August 2011 to allow for integration of the p2 work. (If we cannot integrate and stabilise the p2 work in time, we will ship 3.0 without it and target a future release with the p2 work.)
Regards,
Glyn
|
|
|
| Topic: Virgo 3.0.0.M05 available |
|---|
| Virgo 3.0.0.M05 available [message #675830] |
Wed, 01 June 2011 12:06 |
Glyn Normington Messages: 889 Registered: July 2009 |
Senior Member |
|
|
Milestone 5 of Virgo 3.0.0 is available for download. This is an important milestone which adds significant functional enhancements, upgrades several dependencies to their latest levels including Spring 3.0.5, Tomcat 7.0.12, and Servlet 3.0, and fixes a number of bugs. Full details are available in the release notes.
Regards,
Glyn
|
|
|
| Topic: volatile variable to propagate event between bundles |
|---|
| volatile variable to propagate event between bundles [message #672635] |
Sun, 22 May 2011 01:56 |
Ming Qin Messages: 22 Registered: July 2009 |
Junior Member |
|
|
I get an idea to use volatile variable to propagate event between bundles.
The design is to set a volatile variable in a spring-powered bundle and export that bundle to other spring-powered bundles. Other spring-powered bundles will poll the status of that volatile variable, if volatile variable gets changed which indicates an event happened on that bundle, then the other bundles could refresh their contained spring context.
This design can avoid the bundle events propagation complexity caused by whiteboard pattern implementation.
Does anyone have implemented this light-weight event propagation on virgo kernel-based application?
Thanks
|
|
|
| Topic: Comparison between Virgo and WAS 7 |
|---|
| Comparison between Virgo and WAS 7 [message #672074] |
Thu, 19 May 2011 15:19 |
facundo rodriguez Messages: 5 Registered: September 2010 Location: argentina |
Junior Member |

|
|
Hello everybody,
I want to ask you about differences between Virgo server and Websphere App Server 7 with OSGI feature pack. We are starting a new OSGI project and we proposed to use Virgo to our customer, because we've some experience using it and we're glad with it. The issue is that they has WAS licences and ask we to evaluate the posibility to develop the app for deploy in it. We haven't any experience in WAS so we don't know if there any difference to have in mind to develop for it, specially for web bundles.
Any tips to promove the use of Virgo will be appreciated too.
Thanks in advance!!
|
|
|
| Topic: Error building sample application virgo snap |
|---|
| Error building sample application virgo snap [message #670939] |
Mon, 16 May 2011 05:41 |
Rakhs Messages: 1 Registered: May 2011 |
Junior Member |
|
|
Hi all,
I am new to virgo. I want to use virgo snap in my project. i want to try out some samples. I downloaded virgo server and snap code.
I build snap code and integrated to virgo web server.
To try some example i used menubar sample in the snap project. I want to build it. i build sample api. it build properly with out any error using 'ant clean jar package'. Second i build sample-impl. Build failed. its showing unresolved dependency for snap-api. DO i need to copy the sample api jar to make it available for other bundles.
Please let me know.
|
|
|
| Topic: NoClassDefFoundError: javax.ws.rs.core.MediaType |
|---|
| NoClassDefFoundError: javax.ws.rs.core.MediaType [message #670396] |
Fri, 13 May 2011 16:41 |
rshelley Messages: 59 Registered: April 2010 |
Member |
|
|
I'm importing the bundle "com.springsource.javax.ws.rs" (version 1.0.0), the bundle is active in Virgo (http://screencast.com/t/ghUDlZcwBVI) but my app is getting a NoClassDefFoundError exception when starting:
[2011-05-13 13:19:36.071] start-signalling-2 System.err SEVERE: Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
[2011-05-13 13:19:36.071] start-signalling-2 System.err java.lang.NoClassDefFoundError: Could not initialize class javax.ws.rs.core.MediaType
[2011-05-13 13:1
Here's my manifest:
Manifest-Version: 1.0
Export-Package: testapp.webshell;version="0.1";uses:="javax.ser
vlet.http,javax.ws.rs,javax.ws.rs.core,org.springframework.stereotype
,org.springframework.web.bind.annotation,org.springframework.web.serv
let"
Import-Bundle: com.springsource.javax.ws.rs;version="[1.0.0,1.0.0]"
Unversioned-Imports: *
Bundle-ClassPath: .,WEB-INF/classes,WEB-INF/lib
Bundle-Version: 0.1
Tool: Bundlor 1.0.0.RELEASE
Import-Library: org.springframework.spring;version="[3.0.0.RELEASE,3.0
.0.RELEASE]"
Bundle-ManifestVersion: 2
Bundle-SymbolicName: testapp.webshell
Web-ContextPath: /webshell
Import-Package: javax.servlet.http;version="[2.5.0,2.5.0]",javax.ws.rs
,javax.ws.rs.core,org.springframework.stereotype;version="[2.5.6,3.0.
0.RELEASE]",org.springframework.web.bind.annotation;version="[2.5.6,3
.0.0.RELEASE]",org.springframework.web.servlet;version="[2.5.6,3.0.0.
RELEASE]"
What might I be doing wrong? Thanks!
|
|
|
| Topic: Expanding Environment Variables For Watch Folders |
|---|
| Expanding Environment Variables For Watch Folders [message #669565] |
Tue, 10 May 2011 14:22 |
Jan Fetyko Messages: 22 Registered: April 2011 |
Junior Member |
|
|
Is there a way to get Virgo to expand environment variables in the org.eclipse.virgo.repository.properties file for an external watch folder? So something like this:
configs.type=external
configs.searchPattern=${env.CONFIG_ROOT}/appname
and based upon whatever that CONFIG_ROOT environment variable is set to at launch time this will be populated properly? I see in the documentation that it handles ${user.home} but there is no mention of environment variables and after some trial and error I can't seem to get it working.
Thanks,
Jan
|
|
|
| Topic: Snap Context Path from JSP |
|---|
| Snap Context Path from JSP [message #668757] |
Fri, 06 May 2011 23:52 |
Sean Messages: 2 Registered: May 2011 |
Junior Member |
|
|
Is there an easy way from within a JSP to access the context path of a snap? Something like ${snap.contextPath} or the like?
I ask because we're using Tiles to render our pages. We have the template for a tile specified within the host using the host:/ syntax which works fairly well. The problem is we want to render certain pages from the snap in the tile but since the rendering is being performed from the context of the host the jstl core<c:url taglib is rendering with the host context path.
I was hoping that instead of using the <c:url to construct a url that i'd be able to use a variable like ${snap.contextPath} instead of hard coding the path to the snap. I'd prefer to keep that a build/manifest only setting.
Thoughts? Thanks for the help ... we've encountered a number of issues getting snaps, tiles, and virgo working including having to tweak the teardown of Tiles itself. We're hoping on sharing these lessons back soon once we get past a few final small hurdles.
Sean
|
|
|