Eclipse Helios + Geronimo Plugin
Dear all, I just wanted to notify you, that the GEP 2.2 is working again with the Eclipse Helios RC2 release, since it was broken in the M7 and RC1 release. Best regards, Johannes
Re: Geronimo plugin issue (or maven)?
Don't worry. This is starndard Manifest format - prefixing a wrapped line with a space. You can check the manifest in lib/server.jar. It's the same thing. -Jack On Sat, Mar 27, 2010 at 10:35 AM, Billy Vandory wrote: > > I got the above working by setting Maven as a dependency in eclipse. Now I > have another issue with GEP. I want to enable "in place library support", > but I noticed that the MANIFEST.MF that GEP produces and places in the > geronimo/var/shared/lib directory as a JAR file cuts off the paths with > spaces (in fact it appears to be truncating the lines). Here is a sample > of > the MANIFEST produced by the GEP plugin: > > > Manifest-Version: 1.0 > Class-Path: file:/C:/codebase.wakawaka/wakaear/target/ file:/C:/repo/o > rg/apache/log4j/1.2.15/log4j-1.2.15.jar file:/C:/repo/junit/junit/4.8 > .1/junit-4.8.1.jar file:/C:/repo/org/apache/log4j/1.2.15/log4j-1.2.15 > -sources.jar file:/C:/repo/com/waka/logging/1.0/logging-1.0.jar file: > /C:/repo/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/gero > nimo-servlet_2.5_spec-1.2.jar > > See how it puts a space between C:/repo/o rg/apache AND junit/4.8 .1 > > Could someone confirm that Geronimo reads the jar file placed in the > Geronimo/var/shared/lib directory to locate the libraries, and if the > spaces > would indeed cause problems. I'm trying to find where in the plugin code > the manifest is produced and fix that. > > Thanks, > Billy > > -- > View this message in context: > http://n3.nabble.com/Geronimo-plugin-issue-or-maven-tp634363p677851.html > Sent from the Users mailing list archive at Nabble.com. >
Re: Geronimo plugin issue (or maven)?
I got the above working by setting Maven as a dependency in eclipse. Now I have another issue with GEP. I want to enable "in place library support", but I noticed that the MANIFEST.MF that GEP produces and places in the geronimo/var/shared/lib directory as a JAR file cuts off the paths with spaces (in fact it appears to be truncating the lines). Here is a sample of the MANIFEST produced by the GEP plugin: Manifest-Version: 1.0 Class-Path: file:/C:/codebase.wakawaka/wakaear/target/ file:/C:/repo/o rg/apache/log4j/1.2.15/log4j-1.2.15.jar file:/C:/repo/junit/junit/4.8 .1/junit-4.8.1.jar file:/C:/repo/org/apache/log4j/1.2.15/log4j-1.2.15 -sources.jar file:/C:/repo/com/waka/logging/1.0/logging-1.0.jar file: /C:/repo/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/gero nimo-servlet_2.5_spec-1.2.jar See how it puts a space between C:/repo/o rg/apache AND junit/4.8 .1 Could someone confirm that Geronimo reads the jar file placed in the Geronimo/var/shared/lib directory to locate the libraries, and if the spaces would indeed cause problems. I'm trying to find where in the plugin code the manifest is produced and fix that. Thanks, Billy -- View this message in context: http://n3.nabble.com/Geronimo-plugin-issue-or-maven-tp634363p677851.html Sent from the Users mailing list archive at Nabble.com.
Geronimo plugin issue (or maven)?
Geronimo plugin 2.2 for Eclipse 3.4 on Geronimo 2.2 runtime I have a very simple project in Eclipse: 3 projects: Ear, Web and Java When I use the Geronimo plugin to publish my app, the dependencies that I have configured in my POM are not being included in the WAR file correctly. Oddly, when I build the war file using maven outside of eclipse, the dependencies are included correctly in the WAR file. I have three dependencies configured for the web app as follows: com.waka logging 1.0 org.apache log4j 1.2.15 org.apache.geronimo.specs geronimo-servlet_2.5_spec 1.2 provided Using the geronimo plugin, org.apache.log4j is being included (correct), the com.waka.logging dependency is not being included (problem) and the geronimo_servlet_specs is being included (it shouldnt be, since the scope is provided) I have tried using the "Add a runtime dependency to Geronimo's shared library" option, with the same result. Just as a side note, In geronimo-web.xml, im hiding the apache log4j classes as I want to use my own logging facility. Has anyone else experienced this problem? Thanks, Billy -- View this message in context: http://n3.nabble.com/Geronimo-plugin-issue-or-maven-tp634363p634363.html Sent from the Users mailing list archive at Nabble.com.
Re: Geronimo plugin project example?
Thanks, fixed now. Jeff C On Wed, Jul 15, 2009 at 5:51 PM, Fredrik Jonson wrote: > chi runhua wrote: > > > Fredrik, thanks for the post. > > > > Actually, there are some docs about what a geronimo-plugin looks like(1) > and > > how to create/install/update one. > > > > Here are the URLs FYR. Please let us know if you have any comments. > > > > (1) > > > http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugin+group > > (2) > > > http://cwiki.apache.org/confluence/display/GMOxDOC22/Administering+plugins > > Neat, thanks! > > The first link is missing an 's' though, the page is named: > > http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugins+group > > Also, that page has a subpage include that points the wrong place, under > the > title "Plugin groups" you probably want to link to: > http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugins+group > (or rename the page. the s seems a bit out of place.) > > Can anyone edit the wiki? > > -- > Fredrik Jonson > >
Re: Geronimo plugin project example?
chi runhua wrote: > Fredrik, thanks for the post. > > Actually, there are some docs about what a geronimo-plugin looks like(1) and > how to create/install/update one. > > Here are the URLs FYR. Please let us know if you have any comments. > > (1) > http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugin+group > (2) > http://cwiki.apache.org/confluence/display/GMOxDOC22/Administering+plugins Neat, thanks! The first link is missing an 's' though, the page is named: http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugins+group Also, that page has a subpage include that points the wrong place, under the title "Plugin groups" you probably want to link to: http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugins+group (or rename the page. the s seems a bit out of place.) Can anyone edit the wiki? -- Fredrik Jonson
Re: Geronimo plugin project example?
Fredrik, thanks for the post. Actually, there are some docs about what a geronimo-plugin looks like(1) and how to create/install/update one. Here are the URLs FYR. Please let us know if you have any comments. (1) http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugin+group (2) http://cwiki.apache.org/confluence/display/GMOxDOC22/Administering+plugins Jeff C On Tue, Jul 14, 2009 at 6:23 PM, Fredrik Jonson wrote: > David Jencks wrote: > > Fredrik Jonson wrote: > > > > > > I'm looking for a simple example geronimo plugin project. > > > > Building all of geronimo itself is the best way to see a lot of plugin > > projects. Most of them are "service" plugins but there are a lot of > > javaee applications in there too. > > That seems a bit daunting. I'll try it... some day... ;) > > On the bright side I have finally managed to build and deploy a simple > plugin! > The reason I failed last week was due to a combination of PEBCAK and maybe > a bit > of complexity and lack of documentation in the car-maven-plugin. What I did > was: > > 1. Tried to package a plugin with a broken plan.xml. I tried to copy the > activemq-broker > plugin from current trunk (2.2-SNAPSHOT) and that project configuration > is a bit > strange, lots of parent modules and their transitive dependencies made it > hard to > overview what parameters, configurations and files (history?) that > actually is required, > and what is just specific to that module. > > 2. PEBCAK. I tried to install the plugin using the "deploy" command instead > of > "install-plugin". Completely my own fault. > > Two major gothas for me was: > > 1. Not declaring the geronimoVersion property in the pom. > 2. Not declaring "true" on the plugin > configuration. > > If anyone else is interested, my very minimal geronimo-plugin example > project > is included below. The dependency org.example/provider is simply a jar > module > that contains the ExampleGBean implementation. > > |-- pom.xml > `-- src >`-- main >`-- plan >`-- plan.xml > > --- pom.xml --- > > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd";> > 4.0.0 > org.example > plugin > 1.0-SNAPSHOT > car > >2.1.4 > > > > org.example > provider > ${version} > > > > > >org.apache.geronimo.buildsupport >car-maven-plugin >2.1.4 >true > > >true >true > > JMS > > > > > > > --- src/main/plan/plan.xml --- > > > http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > > -- > Fredrik Jonson > >
Re: Geronimo plugin project example?
David Jencks wrote: > Fredrik Jonson wrote: > > > > I'm looking for a simple example geronimo plugin project. > > Building all of geronimo itself is the best way to see a lot of plugin > projects. Most of them are "service" plugins but there are a lot of > javaee applications in there too. That seems a bit daunting. I'll try it... some day... ;) On the bright side I have finally managed to build and deploy a simple plugin! The reason I failed last week was due to a combination of PEBCAK and maybe a bit of complexity and lack of documentation in the car-maven-plugin. What I did was: 1. Tried to package a plugin with a broken plan.xml. I tried to copy the activemq-broker plugin from current trunk (2.2-SNAPSHOT) and that project configuration is a bit strange, lots of parent modules and their transitive dependencies made it hard to overview what parameters, configurations and files (history?) that actually is required, and what is just specific to that module. 2. PEBCAK. I tried to install the plugin using the "deploy" command instead of "install-plugin". Completely my own fault. Two major gothas for me was: 1. Not declaring the geronimoVersion property in the pom. 2. Not declaring "true" on the plugin configuration. If anyone else is interested, my very minimal geronimo-plugin example project is included below. The dependency org.example/provider is simply a jar module that contains the ExampleGBean implementation. |-- pom.xml `-- src `-- main `-- plan `-- plan.xml --- pom.xml --- http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 org.example plugin 1.0-SNAPSHOT car 2.1.4 org.example provider ${version} org.apache.geronimo.buildsupport car-maven-plugin 2.1.4 true true true JMS --- src/main/plan/plan.xml --- http://geronimo.apache.org/xml/ns/deployment-1.2";> -- Fredrik Jonson
Re: Geronimo plugin project example?
On Jul 10, 2009, at 3:07 AM, Fredrik Jonson wrote: Hi all, I'm looking for a simple example geronimo plugin project. During the last couple of days I've tried building the samples, the daytrader and even some geronimo core plugin projects using maven. And I've failed every time! Either due to unresolved, probably (publicly) unpublished dependencies or due to a strange error message from the car-maven-plugin (Cannot deploy the requested application module because no deployer is able to handle it). Building all of geronimo itself is the best way to see a lot of plugin projects. Most of them are "service" plugins but there are a lot of javaee applications in there too. The missing dependencies problems for other things such as samples should be solved by building the appropriate version of geronimo on your local machine; due to some bad decisions in the past we have a private maven repository as one of the modules and building it gets these unpublished artifacts into your local maven repo. For 2.2 we will not have this particular problem. I'm not sure when people will have time to fix them, but I'd appreciate it if you could tell us which projects fail with the missing deployer message. thanks david jencks TIA, -- Fredrik Jonson
Geronimo plugin project example?
Hi all, I'm looking for a simple example geronimo plugin project. During the last couple of days I've tried building the samples, the daytrader and even some geronimo core plugin projects using maven. And I've failed every time! Either due to unresolved, probably (publicly) unpublished dependencies or due to a strange error message from the car-maven-plugin (Cannot deploy the requested application module because no deployer is able to handle it). TIA, -- Fredrik Jonson
RE: Geronimo Plugin
Thank you. I will give that a try. From: Forrest Xia [mailto:forres...@gmail.com] Sent: Wednesday, March 11, 2009 9:59 PM To: user@geronimo.apache.org Subject: Re: Geronimo Plugin The latest GEP is 2.1.3, I can install it into Ganymede JEE edition SR2. Suggest to use the JEE edtion of Ganymede SR2. Good luck! Forrest
Re: Geronimo Plugin
The latest GEP is 2.1.3, I can install it into Ganymede JEE edition SR2. Suggest to use the JEE edtion of Ganymede SR2. Good luck! Forrest
Geronimo Plugin
I am trying to install the latest GEP into Eclipse Ganymede 3.4.2. When I try to update, I get this error. Cannot complete the request. See the details. Cannot find a solution satisfying the following requirements org.eclipse.swt [3.4.1.v3449c]. I have found the latest swt.jar file and put it into the plug-in directory. I have also tried to manually put the GEP into the features and plug-in directories but eclipse does not recognize the plug-in and they are not usable. Does anyone know the remedy to this?
Re: Help need to create geronimo plugin for struts 2
Have you looked at http://cwiki.apache.org/GMOxDOC21/constructing-a- special-purpose-server-using-maven.html ? I think it should explain fairly well how to set up a maven project that will result in building the struts plugin you want. If you have any further questions or suggestions for improving the docs please please let us know! You might also look at the directory and roller plugins under https:// svn.apache.org/repos/asf/geronimo/plugins thanks david jencks On Apr 16, 2008, at 10:05 AM, CG wrote: Hi all, Since I will be using struts 2.x in my project , I would like to "deploy" struts' libraries into geronimo server. Q1 : Can I just copy those *.jars into GERONIMO_ROOT/repository/struts ? will it works ? I also plan to create plugin struts 2 for geronimo 2.1, with the jars file of struts-lib that I have downloaded, so that I can deploy it using the geronimo console. Any tutorial for plugin creation ? I only know that we need a geronimo-plugin.xml . I have categorized those *.jars , and the directory structure for those jars file. What else should I do to build the plugin ? Any hints will be appreciated , thanks. CG Directory structures for all the jars file come with struts 2.0.11 antlr 2.7.2.jar repository/antlr/2.7.2/ commons-beanutils-1.6.jar repository/commons-beanutils/1.6/ commons-chain-1.1.jar repository/commons-chain/1.1/ commons-logging-1.0.4.jar repository/commons-logging/commons- logging/1.0.4/ commons-logging-api-1.1.jar repository/commons-logging/commons- logging-api/1.1/ commons-validator-1.3.0.jar repository/commons-validator/1.3.0/ freemarker-2.3.8.jarrepository/freemarker/2.3.8/ ognl-2.6.11.jar repository/ognl/ognl/2.6.11/ oro-2.0.8.jar repository/org/apache/oro/2.0.8/ struts2-codebehind-plugin-2.0.11.1.jar repository/org/apache/ struts/struts2-codebehind-plugin/2.0.11.1/ struts2-config-browser-plugin-2.0.11.1.jar repository/org/apache/ struts/struts2-config-browser-plugin/2.0.11.1/ struts2-core-2.0.11.1.jar repository/org/apache/struts/struts2- core/2.0.11.1/ struts2-jasperreports-plugin-2.0.11.1.jar repository/org/apache/ struts/struts2-jasperreports-plugin/2.0.11.1/ struts2-jfreechart-plugin-2.0.11.1.jar repository/org/apache/ struts/struts2-jfreechart-plugin/2.0.11.1/ struts2-jsf-plugin-2.0.11.1.jar repository/org/apache/struts/ struts2-jsf-plugin/2.0.11.1/ struts2-pell-multipart-plugin-2.0.11.1.jar repository/org/apache/ struts/struts2-pell-multipart-plugin/2.0.11.1/ struts2-plexus-plugin-2.0.11.1.jar repository/org/apache/struts/ struts2-plexus-plugin/2.0.11.1/ struts2-sitegraph-plugin-2.0.11.1.jar repository/org/apache/struts/ struts2-sitegraph-plugin/2.0.11.1/ struts2-sitemesh-plugin-2.0.11.1.jar repository/org/apache/struts/ struts2-sitemesh-plugin/2.0.11.1/ struts2-spring-plugin-2.0.11.1.jar repository/org/apache/struts/ struts2-spring-plugin/2.0.11.1/ struts2-struts1-plugin-2.0.11.1.jar repository/org/apache/struts/ struts2-struts1-plugin/2.0.11.1/ struts2-tiles-plugin-2.0.11.1.jar repository/org/apache/struts/ struts2-tiles-plugin/2.0.11.1/ struts-core-1.3.5.jarrepository/org/apache/struts/struts-core/ 1.3.5/ tiles-api-2.0.4.jar repository/org/apache/tiles/tiles-api/2.0.4/ tiles-core-2.0.4.jar repository/org/apache/tiles/tiles-core/2.0.4/ tiles-jsp-2.0.4.jar repository/org/apache/tiles/tiles-jsp/2.0.4/ xwork-2.0.4.jar repository/org/opensymphony/xworki/2.0.4/
Help need to create geronimo plugin for struts 2
Hi all, Since I will be using struts 2.x in my project , I would like to "deploy" struts' libraries into geronimo server. Q1 : Can I just copy those *.jars into GERONIMO_ROOT/repository/struts ? will it works ? I also plan to create plugin struts 2 for geronimo 2.1, with the jars file of struts-lib that I have downloaded, so that I can deploy it using the geronimo console. Any tutorial for plugin creation ? I only know that we need a geronimo-plugin.xml . I have categorized those *.jars , and the directory structure for those jars file. What else should I do to build the plugin ? Any hints will be appreciated , thanks. CG Directory structures for all the jars file come with struts 2.0.11 antlr 2.7.2.jar repository/antlr/2.7.2/ commons-beanutils-1.6.jar repository/commons-beanutils/1.6/ commons-chain-1.1.jar repository/commons-chain/1.1/ commons-logging-1.0.4.jar repository/commons-logging/commons-logging/1.0.4/ commons-logging-api-1.1.jar repository/commons-logging/commons-logging-api/1.1/ commons-validator-1.3.0.jar repository/commons-validator/1.3.0/ freemarker-2.3.8.jarrepository/freemarker/2.3.8/ ognl-2.6.11.jar repository/ognl/ognl/2.6.11/ oro-2.0.8.jar repository/org/apache/oro/2.0.8/ struts2-codebehind-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-codebehind-plugin/2.0.11.1/ struts2-config-browser-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-config-browser-plugin/2.0.11.1/ struts2-core-2.0.11.1.jar repository/org/apache/struts/struts2-core/2.0.11.1/ struts2-jasperreports-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-jasperreports-plugin/2.0.11.1/ struts2-jfreechart-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-jfreechart-plugin/2.0.11.1/ struts2-jsf-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-jsf-plugin/2.0.11.1/ struts2-pell-multipart-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-pell-multipart-plugin/2.0.11.1/ struts2-plexus-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-plexus-plugin/2.0.11.1/ struts2-sitegraph-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-sitegraph-plugin/2.0.11.1/ struts2-sitemesh-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-sitemesh-plugin/2.0.11.1/ struts2-spring-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-spring-plugin/2.0.11.1/ struts2-struts1-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-struts1-plugin/2.0.11.1/ struts2-tiles-plugin-2.0.11.1.jar repository/org/apache/struts/struts2-tiles-plugin/2.0.11.1/ struts-core-1.3.5.jar repository/org/apache/struts/struts-core/1.3.5/ tiles-api-2.0.4.jar repository/org/apache/tiles/tiles-api/2.0.4/ tiles-core-2.0.4.jar repository/org/apache/tiles/tiles-core/2.0.4/ tiles-jsp-2.0.4.jar repository/org/apache/tiles/tiles-jsp/2.0.4/ xwork-2.0.4.jar repository/org/opensymphony/xworki/2.0.4/
Re: OpenLaszlo as a Geronimo plugin
Hi Jay, I am so glad you decided to share your experience on this issue as you are right on the money. Once I downloaded and deployed 4.1, it worked as expected. As to what changed, hard to say as there is nothing at all in the release-notes or README of the download. Again, thanks for sharing! Jim Jay D. McHugh-2 wrote: > > Hey Jim, > > I tried deploying the 4.0.9 version and got similar issues. > > But, I got the nightly 4.1 build and deployed that. > > It does initially bring up the 'quick links' page. But if you click on > the flash link in: > 'If this is the first time you've run OpenLaszlo or you are looking for > an introduction, please try Laszlo Explorer (Flash) (DHTML).' > > Then it brings up the Laszlo Explorer correctly. > > I don't know what they changed - but the nightly works where the > 'release' doesn't. > > Hope that helps, > > > Jay > > > Jim Foster wrote: >> Hi Viet, >> >> I tried both avenues that you suggested. >> >> [1] Console Navigation > Deploy New >> >> [2] Command line of >> geronimo-tomcat6-jee5-2.0.2\bin>java -jar ./deployer.jar -u system -p >> manager deploy [path to openlaszlo-4.0.9.war] >> >> >> In both cases, the .war seemed to deploy just fine, but both cases yield >> the >> following in the navigator frame of laszlo-explorer: >> >> Error: explore-nav.lzx:5:28: datatype library >> "http://www.w3.org/2001/XMLSchema-datatypes"; not recognized >> >> >> Still seems to me something with the schema. >> >> For what it's worth, I deployed the same openlaszlo-4.0.9.war file to a >> baseline installation of Tomcat 5.5.25, and it worked just fine. >> >> Thoughts? >> >> >> Jim > > > > -- View this message in context: http://www.nabble.com/OpenLaszlo-as-a-Geronimo-plugin-tp15187608s134p15231931.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: OpenLaszlo as a Geronimo plugin
Hey Jim, I tried deploying the 4.0.9 version and got similar issues. But, I got the nightly 4.1 build and deployed that. It does initially bring up the 'quick links' page. But if you click on the flash link in: 'If this is the first time you've run OpenLaszlo or you are looking for an introduction, please try Laszlo Explorer (Flash) (DHTML).' Then it brings up the Laszlo Explorer correctly. I don't know what they changed - but the nightly works where the 'release' doesn't. Hope that helps, Jay Jim Foster wrote: Hi Viet, I tried both avenues that you suggested. [1] Console Navigation > Deploy New [2] Command line of geronimo-tomcat6-jee5-2.0.2\bin>java -jar ./deployer.jar -u system -p manager deploy [path to openlaszlo-4.0.9.war] In both cases, the .war seemed to deploy just fine, but both cases yield the following in the navigator frame of laszlo-explorer: Error: explore-nav.lzx:5:28: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not recognized Still seems to me something with the schema. For what it's worth, I deployed the same openlaszlo-4.0.9.war file to a baseline installation of Tomcat 5.5.25, and it worked just fine. Thoughts? Jim
Re: OpenLaszlo as a Geronimo plugin
Hi Viet, I tried both avenues that you suggested. [1] Console Navigation > Deploy New [2] Command line of geronimo-tomcat6-jee5-2.0.2\bin>java -jar ./deployer.jar -u system -p manager deploy [path to openlaszlo-4.0.9.war] In both cases, the .war seemed to deploy just fine, but both cases yield the following in the navigator frame of laszlo-explorer: Error: explore-nav.lzx:5:28: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not recognized Still seems to me something with the schema. For what it's worth, I deployed the same openlaszlo-4.0.9.war file to a baseline installation of Tomcat 5.5.25, and it worked just fine. Thoughts? Jim -- View this message in context: http://www.nabble.com/OpenLaszlo-as-a-Geronimo-plugin-tp15187608s134p15211830.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: OpenLaszlo as a Geronimo plugin
ca-helper-tomcat/2.0.2/car > started in .172s > Module 36/38 sample.applications/HelloWorldApp/2.0/war > started in .281s > Module 37/38 org.apache.geronimo.samples/inventory-ear/2.0-SNAPSHOT/ear > started in .406s > Module 38/38 > org.apache.geronimo.configs/jsp-examples-tomcat/2.0.2-SNAPSHOT/car started > in .219s > Startup completed in 34.344s seconds > Listening on Ports: > 1050 127.0.0.1 CORBA Naming Service > 1099 0.0.0.0 RMI Naming > 1527 0.0.0.0 Derby Connector > 2001 127.0.0.1 OpenEJB ORB Adapter > 4201 0.0.0.0 OpenEJB Daemon > 6882 127.0.0.1 OpenEJB ORB Adapter > 8009 0.0.0.0 Tomcat Connector AJP AJP > 8080 0.0.0.0 Tomcat Connector HTTP BIO HTTP > 8443 0.0.0.0 Tomcat Connector HTTPS BIO HTTPS > 0.0.0.0 JMX Remoting Connector >61613 0.0.0.0 ActiveMQ Transport Connector >61616 0.0.0.0 ActiveMQ Transport Connector > > Started Application Modules: > EAR: org.apache.geronimo.configs/webconsole-tomcat/2.0.2/car > EAR: org.apache.geronimo.samples/inventory-ear/2.0-SNAPSHOT/ear > JAR: org.apache.geronimo.configs/mejb/2.0.2/car > RAR: org.apache.geronimo.configs/activemq-ra/2.0.2/car > RAR: org.apache.geronimo.configs/system-database/2.0.2/car > WAR: org.apache.geronimo.configs/ca-helper-tomcat/2.0.2/car > WAR: org.apache.geronimo.configs/dojo-tomcat/2.0.2/car > WAR: org.apache.geronimo.configs/jsp-examples-tomcat/2.0.2-SNAPSHOT/car > WAR: org.apache.geronimo.configs/remote-deploy-tomcat/2.0.2/car > WAR: org.apache.geronimo.configs/welcome-tomcat/2.0.2/car > WAR: sample.applications/HelloWorldApp/2.0/war > > Web Applications: > / > /CAHelper > /console > /console-standard > /dojo > /hello > /inventory > /jsp-examples > /remote-deploy > > Geronimo Application Server started > 10:02:59,390 WARN [TomcatModuleBuilder] Web application . does not contain > a WEB-INF/geronimo-web.xml deployment plan. This may or may not be a > problem, depending on whether you have things like res > ource references that need to be resolved. You can also give the deployer a > separate deployment plan file on the command line. > > > -- > View this message in context: > http://www.nabble.com/OpenLaszlo-as-a-Geronimo-plugin-tp15187608s134p15208943.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >
Re: OpenLaszlo as a Geronimo plugin
pache.geronimo.configs/jsp-examples-tomcat/2.0.2-SNAPSHOT/car started in .219s Startup completed in 34.344s seconds Listening on Ports: 1050 127.0.0.1 CORBA Naming Service 1099 0.0.0.0 RMI Naming 1527 0.0.0.0 Derby Connector 2001 127.0.0.1 OpenEJB ORB Adapter 4201 0.0.0.0 OpenEJB Daemon 6882 127.0.0.1 OpenEJB ORB Adapter 8009 0.0.0.0 Tomcat Connector AJP AJP 8080 0.0.0.0 Tomcat Connector HTTP BIO HTTP 8443 0.0.0.0 Tomcat Connector HTTPS BIO HTTPS 0.0.0.0 JMX Remoting Connector 61613 0.0.0.0 ActiveMQ Transport Connector 61616 0.0.0.0 ActiveMQ Transport Connector Started Application Modules: EAR: org.apache.geronimo.configs/webconsole-tomcat/2.0.2/car EAR: org.apache.geronimo.samples/inventory-ear/2.0-SNAPSHOT/ear JAR: org.apache.geronimo.configs/mejb/2.0.2/car RAR: org.apache.geronimo.configs/activemq-ra/2.0.2/car RAR: org.apache.geronimo.configs/system-database/2.0.2/car WAR: org.apache.geronimo.configs/ca-helper-tomcat/2.0.2/car WAR: org.apache.geronimo.configs/dojo-tomcat/2.0.2/car WAR: org.apache.geronimo.configs/jsp-examples-tomcat/2.0.2-SNAPSHOT/car WAR: org.apache.geronimo.configs/remote-deploy-tomcat/2.0.2/car WAR: org.apache.geronimo.configs/welcome-tomcat/2.0.2/car WAR: sample.applications/HelloWorldApp/2.0/war Web Applications: / /CAHelper /console /console-standard /dojo /hello /inventory /jsp-examples /remote-deploy Geronimo Application Server started 10:02:59,390 WARN [TomcatModuleBuilder] Web application . does not contain a WEB-INF/geronimo-web.xml deployment plan. This may or may not be a problem, depending on whether you have things like res ource references that need to be resolved. You can also give the deployer a separate deployment plan file on the command line. -- View this message in context: http://www.nabble.com/OpenLaszlo-as-a-Geronimo-plugin-tp15187608s134p15208943.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: OpenLaszlo as a Geronimo plugin
On Jan 30, 2008, at 5:45 PM, Viet Nguyen wrote: Hi Jim, The plugin that was posted on the JIRA is old. I forget what version it was for, probably G 2.0. So it will not work with G v2.1. You can obtain the WAR version of it at this link http://www.openlaszlo.org/download. It should deploy fine. If you wish to make a plugin out of it, just deploy the WAR into Geronimo, then use the plugin exporter from the administration console and the result is a new plugin. At least this was the trick that I used to "pluginize" OpenLaszlo several months ago. Alternatively, you can look at the roller plugin (https://svn.apache.org/repos/asf/geronimo/plugins/roller/trunk/ ) to see an example of how to build a plugin using maven. roller-jetty and roller-tomcat both build a plugin from a roller war. --kevan
Re: OpenLaszlo as a Geronimo plugin
Hi Jim, The plugin that was posted on the JIRA is old. I forget what version it was for, probably G 2.0. So it will not work with G v2.1. You can obtain the WAR version of it at this link http://www.openlaszlo.org/download. It should deploy fine. If you wish to make a plugin out of it, just deploy the WAR into Geronimo, then use the plugin exporter from the administration console and the result is a new plugin. At least this was the trick that I used to "pluginize" OpenLaszlo several months ago. Thanks, Viet On Jan 30, 2008 12:36 PM, Jim <[EMAIL PROTECTED]> wrote: > Hello, > > I am interested in exploring the use of OpenLaszlo as the front end to > some applications we are developing in-house. > > Some questions: > > [1] Has this already been looked into? > This page on JIRA: > http://www.nabble.com/-jira--Created%3A-%28GERONIMO-3202%29-OpenLaszlo-Plugin-to10913295s134.html#a10913295 > would suggest so. If this is the case, where would I find the relevant > information? > > [2] According to http://cwiki.apache.org/GMOxDEV/plugin-guide.html, it > would seem that the approach one should take is to develop OpenLaszlo as > a plugin, but I do not have a high level of confidence in how to proceed > with that, especially with the impending release of v2.1. Will the > instructions at that wiki page still be relevant, or will they be > supplanted with new guide-lines? > > [3] Given the above, would the dev team recommend my holding off a bit > until the 2.1 release, or can they provide me with assurance and steps > to follow? Assuming that I am successful at generating the plugin, I > would, of course, be willing to hand it off to the dev team for > polishing and release to the Geronimo community. > > > Thank you for your time, and any words of advise. > > Jim > >
OpenLaszlo as a Geronimo plugin
Hello, I am interested in exploring the use of OpenLaszlo as the front end to some applications we are developing in-house. Some questions: [1] Has this already been looked into? This page on JIRA: http://www.nabble.com/-jira--Created%3A-%28GERONIMO-3202%29-OpenLaszlo-Plugin-to10913295s134.html#a10913295 would suggest so. If this is the case, where would I find the relevant information? [2] According to http://cwiki.apache.org/GMOxDEV/plugin-guide.html, it would seem that the approach one should take is to develop OpenLaszlo as a plugin, but I do not have a high level of confidence in how to proceed with that, especially with the impending release of v2.1. Will the instructions at that wiki page still be relevant, or will they be supplanted with new guide-lines? [3] Given the above, would the dev team recommend my holding off a bit until the 2.1 release, or can they provide me with assurance and steps to follow? Assuming that I am successful at generating the plugin, I would, of course, be willing to hand it off to the dev team for polishing and release to the Geronimo community. Thank you for your time, and any words of advise. Jim
Re: Eclipse geronimo plugin doesnt Republish/Sync/Update
Even better !! If you have any other problems please let us know. Thanks much fmchale wrote: Oops I apologize, it seems the projects were set up without the geronimo-web.xml. As soon as we added this everything is working great. Apologies Tim McConnell-2 wrote: Hi fmchale, thanks for the information. I'm not aware of any problems with any synchronization problems with the Eclipse plugin and the Geronimo server. Do you happen to know whether you have the "Automatically publish to local server" setting checked in your server preferences ?? If so, it should republish ever few seconds based on what you have set, and you should not have to go through the uninstall and reinstall steps you describe below. Does this happen on all your projects or just specific ones ?? And would it be possible to either attach the project so we can test with it, or even describe it in more detail so we can emulate it ?? Also, what platform are you running on (looks like probably Windows) ?? Once I get a little more information I'll look at it immediately. Thanks again fmchale wrote: Hello, Our development team is using the latest stable Eclipse, Geronimo 2.0 , and Geronimo Sever Plugin. All of it awesome! But we are coming across a problem, Ive searched through the forums and havent seen this before. We can publish a project through Eclipse normally with no problems. But after that first publish we will make changes and save the projects, expecting it to republish/synchronize as Eclipse is telling us this, but no changes are made to the app running on the server. The only way we can get our updates to the server is to remove the project using eclipse, then add it again. Or by going into the Geronimo web console, uninstalling the war, removing the project in eclipse then adding it again. Also we have noticed that the zip file in workspace\.metadata\.plugins\org.apache.geronimo.st.core\server_10_20_07_10_29_PM4 that contains the project is not getting updated when we attempt to republish. This used to not be an issue when we were using the daily builds of the Geronimo Plugin. Any thoughts on this issue would be greatly appreciated. -- Thanks, Tim McConnell -- Thanks, Tim McConnell
Re: Eclipse geronimo plugin doesnt Republish/Sync/Update
Oops I apologize, it seems the projects were set up without the geronimo-web.xml. As soon as we added this everything is working great. Apologies Tim McConnell-2 wrote: > > Hi fmchale, thanks for the information. I'm not aware of any problems with > any > synchronization problems with the Eclipse plugin and the Geronimo server. > Do you > happen to know whether you have the "Automatically publish to local > server" > setting checked in your server preferences ?? If so, it should republish > ever > few seconds based on what you have set, and you should not have to go > through > the uninstall and reinstall steps you describe below. Does this happen on > all > your projects or just specific ones ?? And would it be possible to either > attach > the project so we can test with it, or even describe it in more detail so > we can > emulate it ?? Also, what platform are you running on (looks like probably > Windows) ?? Once I get a little more information I'll look at it > immediately. > Thanks again > > fmchale wrote: >> Hello, >> >> Our development team is using the latest stable Eclipse, Geronimo 2.0 , >> and >> Geronimo Sever Plugin. All of it awesome! But we are coming across a >> problem, Ive searched through the forums and havent seen this before. We >> can publish a project through Eclipse normally with no problems. But >> after >> that first publish we will make changes and save the projects, expecting >> it >> to republish/synchronize as Eclipse is telling us this, but no changes >> are >> made to the app running on the server. The only way we can get our >> updates >> to the server is to remove the project using eclipse, then add it again. >> Or >> by going into the Geronimo web console, uninstalling the war, removing >> the >> project in eclipse then adding it again. Also we have noticed that the >> zip >> file in >> workspace\.metadata\.plugins\org.apache.geronimo.st.core\server_10_20_07_10_29_PM4 >> that contains the project is not getting updated when we attempt to >> republish. This used to not be an issue when we were using the daily >> builds >> of the Geronimo Plugin. Any thoughts on this issue would be greatly >> appreciated. >> >> > > -- > Thanks, > Tim McConnell > > -- View this message in context: http://www.nabble.com/Eclipse-geronimo-plugin-doesnt-Republish-Sync-Update-tf4672528s134.html#a13410702 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Eclipse geronimo plugin doesnt Republish/Sync/Update
Hi fmchale, thanks for the information. I'm not aware of any problems with any synchronization problems with the Eclipse plugin and the Geronimo server. Do you happen to know whether you have the "Automatically publish to local server" setting checked in your server preferences ?? If so, it should republish ever few seconds based on what you have set, and you should not have to go through the uninstall and reinstall steps you describe below. Does this happen on all your projects or just specific ones ?? And would it be possible to either attach the project so we can test with it, or even describe it in more detail so we can emulate it ?? Also, what platform are you running on (looks like probably Windows) ?? Once I get a little more information I'll look at it immediately. Thanks again fmchale wrote: Hello, Our development team is using the latest stable Eclipse, Geronimo 2.0 , and Geronimo Sever Plugin. All of it awesome! But we are coming across a problem, Ive searched through the forums and havent seen this before. We can publish a project through Eclipse normally with no problems. But after that first publish we will make changes and save the projects, expecting it to republish/synchronize as Eclipse is telling us this, but no changes are made to the app running on the server. The only way we can get our updates to the server is to remove the project using eclipse, then add it again. Or by going into the Geronimo web console, uninstalling the war, removing the project in eclipse then adding it again. Also we have noticed that the zip file in workspace\.metadata\.plugins\org.apache.geronimo.st.core\server_10_20_07_10_29_PM4 that contains the project is not getting updated when we attempt to republish. This used to not be an issue when we were using the daily builds of the Geronimo Plugin. Any thoughts on this issue would be greatly appreciated. -- Thanks, Tim McConnell
Eclipse geronimo plugin doesnt Republish/Sync/Update
Hello, Our development team is using the latest stable Eclipse, Geronimo 2.0 , and Geronimo Sever Plugin. All of it awesome! But we are coming across a problem, Ive searched through the forums and havent seen this before. We can publish a project through Eclipse normally with no problems. But after that first publish we will make changes and save the projects, expecting it to republish/synchronize as Eclipse is telling us this, but no changes are made to the app running on the server. The only way we can get our updates to the server is to remove the project using eclipse, then add it again. Or by going into the Geronimo web console, uninstalling the war, removing the project in eclipse then adding it again. Also we have noticed that the zip file in workspace\.metadata\.plugins\org.apache.geronimo.st.core\server_10_20_07_10_29_PM4 that contains the project is not getting updated when we attempt to republish. This used to not be an issue when we were using the daily builds of the Geronimo Plugin. Any thoughts on this issue would be greatly appreciated. -- View this message in context: http://www.nabble.com/Eclipse-geronimo-plugin-doesnt-Republish-Sync-Update-tf4672528s134.html#a13348582 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
eclipse geronimo plugin and WTP 2.0
Hello! I'm reporting a few small error regarding the latest WTP 2.0 and the daily version of the Geronimo plugin from Nov. 28th. It reports the following error: The current configuration contains errors and this operation can have unpredictable results. org.apache.geronimo.feature (1.2.0) requires plug-in "org.eclipse.wst.rdb.models.sql.edit". In WTP 2.0 I can not define a Geronimo 1.1 server, but I see an entry in eclipse's error log "Version 1.1 of project facet org.apache.geronimo.facet has not been defined." What I can see in all WTP versions is: Warning: Both 'org.apache.geronimo.deployment.model' and 'org.apache.geronimo.v11.deployment.model' register an extension parser for 'web' I think, that the Database features have been removed from WTP and incorporated in the DTP project, where it should be referenced in the future. Best regards, Johannes Weberhofer -- |- | weberhofer GmbH | Johannes Weberhofer | information technologies, Austria | | phone : +43 (0)1 5454421 0| email: [EMAIL PROTECTED] | fax : +43 (0)1 5454421 19 | web : http://weberhofer.at | mobile: +43 (0)699 11998315 |--->>
WTP 2.0 M3 and Geronimo Plugin
Hello! after a short test of the Eclipse 3.3 / WTP 2.0 platform, I have found out, that I can add Geronimo 1.0 servers but no Geronimo 1.1 servers. I have the following message in my eclipse's error log: --- eclipse.buildId=I20061102-1715 java.version=1.5.0_08 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_AT Command-line arguments: -os win32 -ws win32 -arch x86 -data C:\work\workspace Error Mon Nov 20 11:42:52 CET 2006 Version 1.1 of project facet org.apache.geronimo.facet has not been defined. --- The error occurs with the latest nightly build as well as with the latest stable release. Best regards, Johannes Weberhofer -- |- | weberhofer GmbH | Johannes Weberhofer | information technologies, Austria | | phone : +43 (0)1 5454421 0| email: [EMAIL PROTECTED] | fax : +43 (0)1 5454421 19 | web : http://weberhofer.at | mobile: +43 (0)699 11998315 |--->>
Re: Installing Eclipse Geronimo plugin -- 17 artifacts missing
Sachin, I don't think the build died early. There was an awful lot of output between the ellipsis ("...") that I cut away in the email. As for downloaded distributions: [EMAIL PROTECTED]:$ ls -l ~/.m2/repository/eclipse/distributions/ total 341860 -rw-r--r-- 1 lerlands lerlands 139919360 2006-10-07 11:36 eclipse-SDK-3.2.1-linux-gtk.tar -rw-r--r-- 1 lerlands lerlands 123841314 2006-10-07 11:35 eclipse-SDK-3.2.1-linux-gtk.tar.gz -rw-r--r-- 1 lerlands lerlands 24768503 2006-10-07 11:22 emf-sdo-xsd-SDK-2.2.1.zip -rw-r--r-- 1 lerlands lerlands 6134105 2006-10-07 11:22 GEF-SDK-3.2.1.zip -rw-r--r-- 1 lerlands lerlands 2772087 2006-10-07 11:22 JEM-SDK-1.2.1.zip -rw-r--r-- 1 lerlands lerlands 52251365 2006-10-07 11:26 wtp-sdk-R-1.5.1-200609230508.zip [EMAIL PROTECTED]:~/.m2/repository/eclipse/distributions$ In any case, I have downloaded the daily build as per HubertB's suggestions. I am still mildly curious why the build instructions went so wrong, though... Thank you for your help. Lars. Sachin Patel wrote: Hubert's response is correct. You don't need to build in order to install it. You can simply pull the daily driver. As far as your build error, I'm not sure... looks like the build died extremely early. Look in your maven repo, do you see the eclipse distributions downloaded in /.m2/repository/eclipse/distributions/ ? If no you may have had a network connection error attempting to download it. On Nov 2, 2006, at 1:28 AM, Lars Erlandsen wrote: Hi, I apologise if this question has been answered already, but I cannot find any traces anywhere... I hand downloaded and installed Apache Geronimo 1.1, and got it running. Now I have turned my attention to getting the Geronimo Eclipse plugin installed. I have followed the build instruction in http://cwiki.apache.org/confluence/display/GMOxDOC11/Geronimo+Eclipse+Plugin+FAQ. I downloaded the code with: svn co https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/trunk/ geronimo-eclipse I have set MAVEN_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=256m" Then I simply typed 'mvn'. A good while later, several packages have been downloaded, but the installation fails with complaints of missing artifacts: [EMAIL PROTECTED]:~/src/java/Geronimo/geronimo-eclipse$ mvn [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Geronimo Eclipse Plugin :: Eclipse Deployment Support [INFO] Maven EMF Plugin [INFO] Root POM :: geronimo-eclipse-plugin [INFO] Geronimo Devtools Maven Plugin [INFO] geronimo-emf-parent [INFO] geronimo-common-emf [INFO] geronimo-1.0-emf [INFO] geronimo-1.1-emf [INFO] Parent POM :: eclipse-plugins-parent [INFO] org.apache.geronimo.runtime.common [INFO] org.apache.geronimo.st.core [INFO] org.apache.geronimo.common.deployment.model [INFO] org.apache.geronimo.runtime.v1 [INFO] org.apache.geronimo.deployment.model [INFO] org.apache.geronimo.st.v1.core [INFO] org.apache.geronimo.v11.deployment.model [INFO] org.apache.geronimo.runtime.v11 [INFO] org.apache.geronimo.st.v11.core [INFO] org.apache.geronimo.st.ui [INFO] org.apache.geronimo.common.deployment.model.edit [INFO] org.apache.geronimo.deployment.model.edit [INFO] org.apache.geronimo.st.v1.ui [INFO] org.apache.geronimo.v11.deployment.model.edit [INFO] org.apache.geronimo.st.v11.ui [INFO] Parent POM :: eclipse-features-parent [INFO] org.apache.geronimo.feature [INFO] org.apache.geronimo.installableruntime.jetty.feature [INFO] org.apache.geronimo.installableruntime.tomcat.feature [INFO] Assembly :: assembly [INFO] [INFO] Building Geronimo Eclipse Plugin :: Eclipse Deployment Support [INFO] task-segment: [install] [INFO] [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from maven2-codehaus-snapshot [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom 1/1K 1/1K 1K downloaded ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.jdt.core \ -Dversion=3.2.1.r321_v20060823 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 2) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823 2) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v200605040115 Try downlo
Re: Installing Eclipse Geronimo plugin -- 17 artifacts missing
HubertB, Sorry for the long silence, my broadband has been problematic :-(. I have downloaded the plugin, and I will keep everyone posted on progress. Thank you for all help. Lars. HubertB wrote: Hi Lars! I installed the Geronimo Eclipse Plugin using this ZIP-File (simple extract like other Plugins): http://people.apache.org/dist/geronimo/eclipse/unstable/g-eclipse-plugin-1.2.0-v20061037-deployable.zip Don't forget to install WTP and its requirements. Good luck! HubertB Am Donnerstag, den 02.11.2006, 06:28 + schrieb Lars Erlandsen: Hi, I apologise if this question has been answered already, but I cannot find any traces anywhere... I hand downloaded and installed Apache Geronimo 1.1, and got it running. Now I have turned my attention to getting the Geronimo Eclipse plugin installed. I have followed the build instruction in http://cwiki.apache.org/confluence/display/GMOxDOC11/Geronimo+Eclipse+Plugin+FAQ. I downloaded the code with: svn co https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/trunk/ geronimo-eclipse I have set MAVEN_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=256m" Then I simply typed 'mvn'. A good while later, several packages have been downloaded, but the installation fails with complaints of missing artifacts: [EMAIL PROTECTED]:~/src/java/Geronimo/geronimo-eclipse$ mvn [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Geronimo Eclipse Plugin :: Eclipse Deployment Support [INFO] Maven EMF Plugin [INFO] Root POM :: geronimo-eclipse-plugin [INFO] Geronimo Devtools Maven Plugin [INFO] geronimo-emf-parent [INFO] geronimo-common-emf [INFO] geronimo-1.0-emf [INFO] geronimo-1.1-emf [INFO] Parent POM :: eclipse-plugins-parent [INFO] org.apache.geronimo.runtime.common [INFO] org.apache.geronimo.st.core [INFO] org.apache.geronimo.common.deployment.model [INFO] org.apache.geronimo.runtime.v1 [INFO] org.apache.geronimo.deployment.model [INFO] org.apache.geronimo.st.v1.core [INFO] org.apache.geronimo.v11.deployment.model [INFO] org.apache.geronimo.runtime.v11 [INFO] org.apache.geronimo.st.v11.core [INFO] org.apache.geronimo.st.ui [INFO] org.apache.geronimo.common.deployment.model.edit [INFO] org.apache.geronimo.deployment.model.edit [INFO] org.apache.geronimo.st.v1.ui [INFO] org.apache.geronimo.v11.deployment.model.edit [INFO] org.apache.geronimo.st.v11.ui [INFO] Parent POM :: eclipse-features-parent [INFO] org.apache.geronimo.feature [INFO] org.apache.geronimo.installableruntime.jetty.feature [INFO] org.apache.geronimo.installableruntime.tomcat.feature [INFO] Assembly :: assembly [INFO] [INFO] Building Geronimo Eclipse Plugin :: Eclipse Deployment Support [INFO] task-segment: [install] [INFO] [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from maven2-codehaus-snapshot [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom 1/1K 1/1K 1K downloaded ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.jdt.core \ -Dversion=3.2.1.r321_v20060823 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 2) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823 2) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v200605040115 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.jst.j2ee \ -Dversion=1.0.1.v200605040115 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 2) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v200605040115 3) org.eclipse.plugins:org.eclipse.jst.j2ee.jca:jar:1.0.1.v200605040115 ... 17) org.eclipse.plugins:org.eclipse.emf.ecore.xmi:jar:2.2.0.v200609210005 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.emf.ecore.xmi \ -Dversion=2.2.0.v200609210005 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 2) org.eclipse.plugins:org.eclip
Re: Installing Eclipse Geronimo plugin -- 17 artifacts missing
Hubert's response is correct. You don't need to build in order to install it. You can simply pull the daily driver. As far as your build error, I'm not sure... looks like the build died extremely early. Look in your maven repo, do you see the eclipse distributions downloaded in /.m2/repository/eclipse/distributions/ ?If no you may have had a network connection error attempting to download it. On Nov 2, 2006, at 1:28 AM, Lars Erlandsen wrote:Hi,I apologise if this question has been answered already, but I cannot find any traces anywhere...I hand downloaded and installed Apache Geronimo 1.1, and got it running. Now I have turned my attention to getting the Geronimo Eclipse plugin installed.I have followed the build instruction in http://cwiki.apache.org/confluence/display/GMOxDOC11/Geronimo+Eclipse+Plugin+FAQ. I downloaded the code with:svn co https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/trunk/ geronimo-eclipseI have set MAVEN_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=256m"Then I simply typed 'mvn'.A good while later, several packages have been downloaded, but the installation fails with complaints of missing artifacts:[EMAIL PROTECTED]:~/src/java/Geronimo/geronimo-eclipse$ mvn[INFO] Scanning for projects...[INFO] Reactor build order:[INFO] Geronimo Eclipse Plugin :: Eclipse Deployment Support[INFO] Maven EMF Plugin[INFO] Root POM :: geronimo-eclipse-plugin[INFO] Geronimo Devtools Maven Plugin[INFO] geronimo-emf-parent[INFO] geronimo-common-emf[INFO] geronimo-1.0-emf[INFO] geronimo-1.1-emf[INFO] Parent POM :: eclipse-plugins-parent[INFO] org.apache.geronimo.runtime.common[INFO] org.apache.geronimo.st.core[INFO] org.apache.geronimo.common.deployment.model[INFO] org.apache.geronimo.runtime.v1[INFO] org.apache.geronimo.deployment.model[INFO] org.apache.geronimo.st.v1.core[INFO] org.apache.geronimo.v11.deployment.model[INFO] org.apache.geronimo.runtime.v11[INFO] org.apache.geronimo.st.v11.core[INFO] org.apache.geronimo.st.ui[INFO] org.apache.geronimo.common.deployment.model.edit[INFO] org.apache.geronimo.deployment.model.edit[INFO] org.apache.geronimo.st.v1.ui[INFO] org.apache.geronimo.v11.deployment.model.edit[INFO] org.apache.geronimo.st.v11.ui[INFO] Parent POM :: eclipse-features-parent[INFO] org.apache.geronimo.feature[INFO] org.apache.geronimo.installableruntime.jetty.feature[INFO] org.apache.geronimo.installableruntime.tomcat.feature[INFO] Assembly :: assembly[INFO] [INFO] Building Geronimo Eclipse Plugin :: Eclipse Deployment Support[INFO] task-segment: [install][INFO] [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from maven2-codehaus-snapshot[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from centralDownloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom1/1K1/1K1K downloaded...[INFO] [ERROR] BUILD ERROR[INFO] [INFO] Failed to resolve artifact.Missing:--1) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823Try downloading the file manually from the project website.Then, install it using the command:mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.jdt.core \-Dversion=3.2.1.r321_v20060823 -Dpackaging=jar -Dfile=/path/to/filePath to dependency:1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.02) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v200608232) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v200605040115Try downloading the file manually from the project website.Then, install it using the command:mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.jst.j2ee \-Dversion=1.0.1.v200605040115 -Dpackaging=jar -Dfile=/path/to/filePath to dependency:1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.02) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v2006050401153) org.eclipse.plugins:org.eclipse.jst.j2ee.jca:jar:1.0.1.v200605040115...17) org.eclipse.plugins:org.eclipse.emf.ecore.xmi:jar:2.2.0.v200609210005Try downloading the file manually from the project website.Then, install it using the command:mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.emf.ecore.xmi \-Dversion=2.2.0.v200609210005 -Dpackaging=jar -Dfile=/path/to/filePath to dependency:1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.02) org.eclipse.plugins:org.eclipse.emf.ecore.xmi:jar:2.2.0.v200609210005--17 required artifacts are missing.for artifact:org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0from the specified remote repositories:maven1-apache (http://people.apache.org/reposi
Re: Installing Eclipse Geronimo plugin -- 17 artifacts missing
Hi Lars! I installed the Geronimo Eclipse Plugin using this ZIP-File (simple extract like other Plugins): http://people.apache.org/dist/geronimo/eclipse/unstable/g-eclipse-plugin-1.2.0-v20061037-deployable.zip Don't forget to install WTP and its requirements. Good luck! HubertB Am Donnerstag, den 02.11.2006, 06:28 + schrieb Lars Erlandsen: > Hi, > > I apologise if this question has been answered already, but I cannot > find any traces anywhere... > > I hand downloaded and installed Apache Geronimo 1.1, and got it running. > Now I have turned my attention to getting the Geronimo Eclipse plugin > installed. > > I have followed the build instruction in > http://cwiki.apache.org/confluence/display/GMOxDOC11/Geronimo+Eclipse+Plugin+FAQ. > > I downloaded the code with: > > svn co > https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/trunk/ > geronimo-eclipse > > I have set MAVEN_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=256m" > > Then I simply typed 'mvn'. > > A good while later, several packages have been downloaded, but the > installation fails with complaints of missing artifacts: > > [EMAIL PROTECTED]:~/src/java/Geronimo/geronimo-eclipse$ mvn > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Geronimo Eclipse Plugin :: Eclipse Deployment Support > [INFO] Maven EMF Plugin > [INFO] Root POM :: geronimo-eclipse-plugin > [INFO] Geronimo Devtools Maven Plugin > [INFO] geronimo-emf-parent > [INFO] geronimo-common-emf > [INFO] geronimo-1.0-emf > [INFO] geronimo-1.1-emf > [INFO] Parent POM :: eclipse-plugins-parent > [INFO] org.apache.geronimo.runtime.common > [INFO] org.apache.geronimo.st.core > [INFO] org.apache.geronimo.common.deployment.model > [INFO] org.apache.geronimo.runtime.v1 > [INFO] org.apache.geronimo.deployment.model > [INFO] org.apache.geronimo.st.v1.core > [INFO] org.apache.geronimo.v11.deployment.model > [INFO] org.apache.geronimo.runtime.v11 > [INFO] org.apache.geronimo.st.v11.core > [INFO] org.apache.geronimo.st.ui > [INFO] org.apache.geronimo.common.deployment.model.edit > [INFO] org.apache.geronimo.deployment.model.edit > [INFO] org.apache.geronimo.st.v1.ui > [INFO] org.apache.geronimo.v11.deployment.model.edit > [INFO] org.apache.geronimo.st.v11.ui > [INFO] Parent POM :: eclipse-features-parent > [INFO] org.apache.geronimo.feature > [INFO] org.apache.geronimo.installableruntime.jetty.feature > [INFO] org.apache.geronimo.installableruntime.tomcat.feature > [INFO] Assembly :: assembly > [INFO] > > [INFO] Building Geronimo Eclipse Plugin :: Eclipse Deployment Support > [INFO] task-segment: [install] > [INFO] > > [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: > checking for updates from maven2-codehaus-snapshot > [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: > checking for updates from central > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom > 1/1K > 1/1K > 1K downloaded > > ... > > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Failed to resolve artifact. > > Missing: > -- > 1) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.eclipse.plugins > -DartifactId=org.eclipse.jdt.core \ > -Dversion=3.2.1.r321_v20060823 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 > 2) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823 > > 2) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v200605040115 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.eclipse.plugins > -DartifactId=org.eclipse.jst.j2ee \ > -Dversion=1.0.1.v200605040115 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 > 2) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v200605040115 > > 3) org.eclipse.plugins:org.eclipse.jst.j2ee.jca:jar:1.0.1.v200605040115 > > ... > > 17) org.eclipse.plugins:org.eclipse.emf.ecore.xmi:jar:2.2.0.v200609210005 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.eclipse.plugins > -DartifactId=org.eclipse.emf.ecore.xmi \ > -Dversion=2.2.0.v200609210005 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 >
Installing Eclipse Geronimo plugin -- 17 artifacts missing
Hi, I apologise if this question has been answered already, but I cannot find any traces anywhere... I hand downloaded and installed Apache Geronimo 1.1, and got it running. Now I have turned my attention to getting the Geronimo Eclipse plugin installed. I have followed the build instruction in http://cwiki.apache.org/confluence/display/GMOxDOC11/Geronimo+Eclipse+Plugin+FAQ. I downloaded the code with: svn co https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/trunk/ geronimo-eclipse I have set MAVEN_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=256m" Then I simply typed 'mvn'. A good while later, several packages have been downloaded, but the installation fails with complaints of missing artifacts: [EMAIL PROTECTED]:~/src/java/Geronimo/geronimo-eclipse$ mvn [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Geronimo Eclipse Plugin :: Eclipse Deployment Support [INFO] Maven EMF Plugin [INFO] Root POM :: geronimo-eclipse-plugin [INFO] Geronimo Devtools Maven Plugin [INFO] geronimo-emf-parent [INFO] geronimo-common-emf [INFO] geronimo-1.0-emf [INFO] geronimo-1.1-emf [INFO] Parent POM :: eclipse-plugins-parent [INFO] org.apache.geronimo.runtime.common [INFO] org.apache.geronimo.st.core [INFO] org.apache.geronimo.common.deployment.model [INFO] org.apache.geronimo.runtime.v1 [INFO] org.apache.geronimo.deployment.model [INFO] org.apache.geronimo.st.v1.core [INFO] org.apache.geronimo.v11.deployment.model [INFO] org.apache.geronimo.runtime.v11 [INFO] org.apache.geronimo.st.v11.core [INFO] org.apache.geronimo.st.ui [INFO] org.apache.geronimo.common.deployment.model.edit [INFO] org.apache.geronimo.deployment.model.edit [INFO] org.apache.geronimo.st.v1.ui [INFO] org.apache.geronimo.v11.deployment.model.edit [INFO] org.apache.geronimo.st.v11.ui [INFO] Parent POM :: eclipse-features-parent [INFO] org.apache.geronimo.feature [INFO] org.apache.geronimo.installableruntime.jetty.feature [INFO] org.apache.geronimo.installableruntime.tomcat.feature [INFO] Assembly :: assembly [INFO] [INFO] Building Geronimo Eclipse Plugin :: Eclipse Deployment Support [INFO] task-segment: [install] [INFO] [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from maven2-codehaus-snapshot [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom 1/1K 1/1K 1K downloaded ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.jdt.core \ -Dversion=3.2.1.r321_v20060823 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 2) org.eclipse.plugins:org.eclipse.jdt.core:jar:3.2.1.r321_v20060823 2) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v200605040115 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.jst.j2ee \ -Dversion=1.0.1.v200605040115 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 2) org.eclipse.plugins:org.eclipse.jst.j2ee:jar:1.0.1.v200605040115 3) org.eclipse.plugins:org.eclipse.jst.j2ee.jca:jar:1.0.1.v200605040115 ... 17) org.eclipse.plugins:org.eclipse.emf.ecore.xmi:jar:2.2.0.v200609210005 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.plugins -DartifactId=org.eclipse.emf.ecore.xmi \ -Dversion=2.2.0.v200609210005 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 2) org.eclipse.plugins:org.eclipse.emf.ecore.xmi:jar:2.2.0.v200609210005 -- 17 required artifacts are missing. for artifact: org.apache.geronimo.devtools:org.apache.geronimo.st.core:jar:1.0.0 from the specified remote repositories: maven1-apache (http://people.apache.org/repository), central (http://repo1.maven.org/maven2), maven2-snapshot-apache (http://people.apache.org/maven-snapshot-repository), maven1-sppatel (http://people.apache.org/~sppatel/repository), maven1-codehaus (http://dist.codehaus.org/), maven2-snapshot-codehaus (http://snapshots.maven.codehaus.org/maven2),
Re: NameNotFoundException with EJB created with Eclipse Geronimo plugin
Hi Aaron, Thanks for the tips. I was able to do some research based on what you suggested and learn enough about XDoclet to figure out what I needed to change. There were XDoclet elements to make the changes, as you suggested. So I thought I'd post back with the details about what I found in case anyone else has this problem. In the EJB Bean, in the Javadoc above the method I added, was the XDoclet tag @ejb.interface-method view-type="remote" changing this tag's property to @ejb.interface-method view-type="both" will cause the method to appear in both the Remote and Local interfaces. Also I found that I needed to add the XDoclet tag @ejb.util generate="logical" to the class JavaDoc comment to generate the correct Utility class to look up the EJB using the string that you gave me earlier. Once I made these two changes to the EJB Bean class, and rebuilt the code, all the EJB code was generated correctly. I still haven't found a wizard in the Eclipse Web Tools to edit the web.xml to add the EJB references. There may not be one available yet, although there is one for adding the reference in web.xml for servlets. However if I edit web.xml by hand and add the ejb references they do appear correctly in the Project View for the Web Project in the J2EE perspective like the Servlet refrences do. Thanks again for all your help and patience. Gaston On 8/7/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: There may be a way to influence this. If the JNDI name is wrong, you can try changing the ejb-ref-name in web.xml so that the resulting JNDI name will match what's used by TigerUtil. Or if TigerUtil lacks the java:comp/env/ prefix, there may be an XDoclet element to make it use that prefix.
Re: NameNotFoundException with EJB created with Eclipse Geronimo plugin
On 8/7/06, Four Sticks <[EMAIL PROTECTED]> wrote: Hi Aaron, Thank you! I was able to get it working with your help. In looking at the code generated for the EJB, I noticed three things were wrong: 1) The TigerUtil class generated by WebTools was not looking the EJB up correctly. There may be a way to influence this. If the JNDI name is wrong, you can try changing the ejb-ref-name in web.xml so that the resulting JNDI name will match what's used by TigerUtil. Or if TigerUtil lacks the java:comp/env/ prefix, there may be an XDoclet element to make it use that prefix. Also, make sure you're looking at the right method in TigerUtil -- sometimes it has one for local EJBs and one for remote EJBs, and you need to make sure you're looking at the one for local EJBs. Actually I have a vague memory of XDoclet generating a Util class with 3 methods but I don't remember under what circumstances. Just check it and see if there's a closer match in there. :) Also, it's OK for a lookup to use PortableRemoteObject.narrow, though it's not necessary unless you use CORBA in your application (and, actually, never necessary for local EJBs AFAICT). If the TigerUtil class uses that it's OK, it should just waste some CPU cycles not cause actual problems. 2) The TigerLocal interface generated by the WebTools did not have the method declared in it that I added to the TigerBean during the tutorial. That's unfortunate -- there may be a special way to add a method to the implementation class that causes it to be added to the interfaces automatically. I don't know that much about Eclipse, though. You might also try just cancelling the home/remote interfaces if you don't plan on accessing this EJB from callers outside the same JVM. Finally, if you edit the EJB implementation class, you can probably manually add an XDoclet tag to the implementation method that indicates that it should be exposed in the local interface -- I have a vague memory of setting some XDoclet parameter on the method to "local", "remote", or "both", so if you see one there listed as "remote", try changing it to "both". Or something like that. :) 3) Web.xml did not have the EJB reference that you mentioned. Yeah, that's something you probably need to add by hand -- or using a wizard somewhere on the web app side. EJB references are generally not added automatically when you create an EJB. Normally, for example, if you have loads of entity EJBs and a few session EJBs, the web app would only have references to some or all of the session EJBs. Thanks, Aaron Number 3 may be due to the fact that I'm unfamiliar with the Eclipse WebTools for EJB's and the Geronimo plugin. Things have changed a lot since the tutorial was published, and my guess is there may be a step in creating an EJB that I missed. Numbers 2 and 1 are just plain wrong. Both of the generated files have a comment stating that they are XDoclet generated code and should be not be editted. But if I edit these files to fix the EJB look-up in TigerUtil to match what you posted, and to add the missing method definition to the TigerLocal interface, I can get the tutorial example to work. I have to be careful to only re-compile the fixed code. (If I re-build everything, unfortunately, then the files get regenerated and and the fixes over-written the incorrect code and wiped out.) I'm not sure if I bumped my head into a bug in Eclipse WebTools 1.5 or the Geronimo plugin. My guess is that it's a problem in WebTools. I spent a Sunday trying to figure this out, so your response was a great help in understanding what WebTools and the Geronimo plugin were doing. Thanks again for your help, Gaston On 8/6/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: > All right, this is just scratching the surface, but... >
Re: NameNotFoundException with EJB created with Eclipse Geronimo plugin
Hi Aaron, Thank you! I was able to get it working with your help. In looking at the code generated for the EJB, I noticed three things were wrong: 1) The TigerUtil class generated by WebTools was not looking the EJB up correctly. 2) The TigerLocal interface generated by the WebTools did not have the method declared in it that I added to the TigerBean during the tutorial. 3) Web.xml did not have the EJB reference that you mentioned. Number 3 may be due to the fact that I'm unfamiliar with the Eclipse WebTools for EJB's and the Geronimo plugin. Things have changed a lot since the tutorial was published, and my guess is there may be a step in creating an EJB that I missed. Numbers 2 and 1 are just plain wrong. Both of the generated files have a comment stating that they are XDoclet generated code and should be not be editted. But if I edit these files to fix the EJB look-up in TigerUtil to match what you posted, and to add the missing method definition to the TigerLocal interface, I can get the tutorial example to work. I have to be careful to only re-compile the fixed code. (If I re-build everything, unfortunately, then the files get regenerated and and the fixes over-written the incorrect code and wiped out.) I'm not sure if I bumped my head into a bug in Eclipse WebTools 1.5 or the Geronimo plugin. My guess is that it's a problem in WebTools. I spent a Sunday trying to figure this out, so your response was a great help in understanding what WebTools and the Geronimo plugin were doing. Thanks again for your help, Gaston On 8/6/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: All right, this is just scratching the surface, but...
Re: NameNotFoundException with EJB created with Eclipse Geronimo plugin
All right, this is just scratching the surface, but... In order for a web application to access an EJB, you need to add an "EJB Reference" to the web application for each EJB that the web application is going to use. The EJB reference puts the EJB in the web application's private JNDI space. There's one last wrinkle, which is that an EJB may have home & remote interfaces, localhome & local interface, or all 4. For a web application that's going to use EJBs, you'll want to use the localhome & local interfaces, because the performance is better (the local approach only works for clients in the same JVM as the EJB). I mention that because technically there's different syntax to create a remote EJB reference and a local EJB reference for the web application, and I'm only going to describe the local syntax here. Now, your Tiger EJB already has local home and local interfaces, so everything's fine on the EJB side. To set up the EJB reference, add a block to your web.xml like this: http://java.sun.com/xml/ns/j2ee"; version="2.4"> ... ejb/Tiger Session com.zoo.example.TigerLocalHome com.zoo.example.TigerLocal Tiger So long as your web application and the EJB are in the same EAR, this is all you need. If they were separated, you couldn't necessarily use the ejb-link element and you might need to add some information to geronimo-web.xml instead. In the block above, the ejb-ref-name controls where in JNDI the EJB will appear, the next three elements have to match the similar fields in the ejb-jar.xml for this EJB, and the ejb-link must match the ejb-name for that EJB in the ejb-jar.xml. The exact JNDI location the web app should use to access the EJB is "java:comp/env/" plus the value of the ejb-ref-name -- so in this case, it would be "java:comp/env/ejb/Tiger". Now, I'm not sure what your TigerUtil class does, but this is what the code would look like for a web application to use this EJB: Context ctx = new InitialContext(); TigerLocalHome home = (TigerLocalHome)ctx.lookup("java:comp/env/ejb/Tiger"); TigerLocal tiger = home.create(); The TigerUtil class probably hides some of this by declaring a constant for the JNDI location of the EJB, and so on. But you're calling the wrong method on it if it returns a TigerHome -- you want a method that returns a TigerLocalHome, as I mentioned above. If TigerUtil is a generated class and has a different JNDI location than java:comp/env/ejb/Tiger to look up the TigerLocalHome, then you can change the ejb-ref-name in your web.xml so the JNDI location will match whatever TigerUtil is using. Thanks, Aaron On 8/6/06, Four Sticks <[EMAIL PROTECTED]> wrote: Hi, I have eclipse 3.2, the Callisto version of WebTools, JDK 1.5 and the Geronimo 1.1 plugin. I'm able to create and run serverlets and JSP's just fine to Geronimo, but I'd like to learn about EJB's. I'm using this tutorial as a guide: http://www.eclipse.org/webtools/community/tutorials/ejbtutorial/buildingejbs.html Following this tutorial, I created an EJB project named Zoo, a Web project named ZooWeb and an EAR named ZooEAR. In the Zoo EJB project is an EJB named TigerBean. The plugin created a ZooClient project. In the Web project is a JSP page named Test.jsp which gets the EJB and calls a method on it. It looked like everything created fine, but when I run the project on the Geronimo server. The JSP page is failing on the following line of java code: com.zoo.example.TigerHome home = com.zoo.example.TigerUtil.getHome(); with the following error: javax.naming.NameNotFoundException: Tiger My question is what do I need to do so the JSP page can find the EJB? Here is the web.xml file creatd by the plugin: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> ZooWeb index.html There is also a geronimo-web.xml file: http://geronimo.apache.org/xml/ns/j2ee/web-1.1"; xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"; xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"; xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";> default ZooWeb 1.0 car /ZooWeb Do I need to add something to these two files? I'd appreciate any help at all. I'm not to familiar with EJB's so I'm not sure what I need to do so that the JSP page can find them. In the Zoo Ejb project the ejb-jar.xml file has the following: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"; version="2.1"> Zoo Tiger Tiger com.zoo.example.TigerHome com.zoo.example.Tiger com.zoo.example.TigerLocalHome com.zoo.example.TigerLocal com.zoo.example.TigerSess
NameNotFoundException with EJB created with Eclipse Geronimo plugin
Hi, I have eclipse 3.2, the Callisto version of WebTools, JDK 1.5 and the Geronimo 1.1 plugin. I'm able to create and run serverlets and JSP's just fine to Geronimo, but I'd like to learn about EJB's. I'm using this tutorial as a guide: http://www.eclipse.org/webtools/community/tutorials/ejbtutorial/buildingejbs.html Following this tutorial, I created an EJB project named Zoo, a Web project named ZooWeb and an EAR named ZooEAR. In the Zoo EJB project is an EJB named TigerBean. The plugin created a ZooClient project. In the Web project is a JSP page named Test.jsp which gets the EJB and calls a method on it. It looked like everything created fine, but when I run the project on the Geronimo server. The JSP page is failing on the following line of java code: com.zoo.example.TigerHome home = com.zoo.example.TigerUtil.getHome(); with the following error: javax.naming.NameNotFoundException: Tiger My question is what do I need to do so the JSP page can find the EJB? Here is the web.xml file creatd by the plugin: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> ZooWeb index.html There is also a geronimo-web.xml file: http://geronimo.apache.org/xml/ns/j2ee/web-1.1"; xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"; xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"; xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";> default ZooWeb 1.0 car /ZooWeb Do I need to add something to these two files? I'd appreciate any help at all. I'm not to familiar with EJB's so I'm not sure what I need to do so that the JSP page can find them. In the Zoo Ejb project the ejb-jar.xml file has the following: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"; version="2.1"> Zoo Tiger Tiger com.zoo.example.TigerHome com.zoo.example.Tiger com.zoo.example.TigerLocalHome com.zoo.example.TigerLocal com.zoo.example.TigerSession Stateless Container ZooClient.jar And there is also an openejb-jar.xml file in the EJB projcect with the following: http://www.openejb.org/xml/ns/openejb-jar-2.1"; xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"; xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"; xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"; xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";> default Zoo 1.0 car Any help at all would be gratefully appreciated it. Thanks, Gaston
Re: geronimo plugin not publishing correctly
Hmm, I've haven't run across that. Could you run with trace enabled on the org.apache.geronimo.devtools.eclipse.core plugin and send me the trace output from the time after the initial deploy to the time you invoke the re-publish? - sachin On Mar 2, 2006, at 2:13 PM, David Lewis wrote: dear list; I am having a strange problem with the eclipse geronimo plugin. I create a simple EJB project then publish it to the server. This works fine. Now if I change the EJB and try to republish one of two things happens, either the publish fails with a cant find ear.zip file or the publish succeeds but none of the changes are published. Is anyone else suffering from this? Here is my environment Fedora Core 4 Java 1.4.2_10 Eclipse 3.1.2 WTP 1.0.1 (the 20060213 version) Geronimo 1.0 plugin
geronimo plugin not publishing correctly
dear list; I am having a strange problem with the eclipse geronimo plugin. I create a simple EJB project then publish it to the server. This works fine. Now if I change the EJB and try to republish one of two things happens, either the publish fails with a cant find ear.zip file or the publish succeeds but none of the changes are published. Is anyone else suffering from this? Here is my environment Fedora Core 4 Java 1.4.2_10 Eclipse 3.1.2 WTP 1.0.1 (the 20060213 version) Geronimo 1.0 plugin
Re: geronimo plugin 0.5.0 and 1.0.0 folder
Yes, it is smart. :) Older versions will always remain, even when updates are provided through the update manager. - sachin On Jan 23, 2006, at 3:44 PM, Lin Sun wrote: Hi there, If I update geronimo plugin from 0.5.0 to 1.0.0, do I need to remove the 0.5.0 folders under features and plugin directory? I had both on my machine. When I launch eclipse using the -clean option, seems to me that it is smart to recognize the newer version 1.0.0. thanks, Lin __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
geronimo plugin 0.5.0 and 1.0.0 folder
Hi there, If I update geronimo plugin from 0.5.0 to 1.0.0, do I need to remove the 0.5.0 folders under features and plugin directory? I had both on my machine.When I launch eclipse using the -clean option, seems to me that it is smart to recognize the newer version 1.0.0. thanks, Lin __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: xdoclet-geronimo plugin
L. Yeung wrote: I've written some docs on geronimo-plugin and uploaded the geronimo-xdoclet sources and geronimo-apps, a sample maven template, moments ago. The @geronimo.attr is currently written as class leel instead of method level. I think it should be moved to method level for better source manageability, but I can't find any good samples which uses attributes. If you could provide some, I'll move them in a few days. Any feedback is highly appreciated. I've assigned myself to the JIRA issue and will be reviewing it in the comming days. Keep in mind that I (might) have never worked with XDoclet, so that it may last longer that is really required ;) Thanks for the work! - L. Yeung Jacek
Re: xdoclet-geronimo plugin
I've written some docs on geronimo-plugin and uploaded the geronimo-xdoclet sources and geronimo-apps, a sample maven template, moments ago. The @geronimo.attr is currently written as class leel instead of method level. I think it should be moved to method level for better source manageability, but I can't find any good samples which uses attributes. If you could provide some, I'll move them in a few days. Any feedback is highly appreciated. - L. Yeung --- Jacek Laskowski <[EMAIL PROTECTED]> wrote: > Dain Sundstrom wrote: > > The best thing to do is to post it as a patch in > Jira > > > (http://nagoya.apache.org/jira/secure/BrowseProject.jspa?id=10220). > > > Then we have a history of the license donation. > > Exactly! How come I'd forget about it?! > > > I'd start by throwing it into the sandbox until > the people are > > comfortable with it. > > I firstly thought about publishing it through a HTTP > server at ASF, but > it's much better to throw it into the sandbox. That > way it will spread > much faster ;) > > Thanks Dain. > > > -dain > > Jacek > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: xdoclet-geronimo plugin
Dain Sundstrom wrote: The best thing to do is to post it as a patch in Jira (http://nagoya.apache.org/jira/secure/BrowseProject.jspa?id=10220). Then we have a history of the license donation. Exactly! How come I'd forget about it?! I'd start by throwing it into the sandbox until the people are comfortable with it. I firstly thought about publishing it through a HTTP server at ASF, but it's much better to throw it into the sandbox. That way it will spread much faster ;) Thanks Dain. -dain Jacek
Re: xdoclet-geronimo plugin (was: Re: Getting Started Geronimo)
The best thing to do is to post it as a patch in Jira (http://nagoya.apache.org/jira/secure/BrowseProject.jspa?id=10220). Then we have a history of the license donation. I'd start by throwing it into the sandbox until the people are comfortable with it. -dain -- Dain Sundstrom Chief Architect Gluecode Software 310.536.8355, ext. 26 On Dec 21, 2004, at 2:23 PM, Jacek Laskowski wrote: L. Yeung wrote: My geronimo plugin currently implements only configuration tag. I tested it and it produced the output same as the gbean sample found in wiki. If you want to test it I could email you the file. Do it! I'd bet there're others who are interested in it, too, so it'd be better if we could publish it somewhere? May I do it? And don't forget to send me some documentation on how to use it. I have never used xdoclet or even if I have I didn't know that ;) -len Jacek
xdoclet-geronimo plugin (was: Re: Getting Started Geronimo)
L. Yeung wrote: My geronimo plugin currently implements only configuration tag. I tested it and it produced the output same as the gbean sample found in wiki. If you want to test it I could email you the file. Do it! I'd bet there're others who are interested in it, too, so it'd be better if we could publish it somewhere? May I do it? And don't forget to send me some documentation on how to use it. I have never used xdoclet or even if I have I didn't know that ;) -len Jacek