|
From: Paul W. <pwa...@ps...> - 2006-09-28 14:38:43
|
Jan, Thanks -- reading the README file was the key! Regards, Paul On 9/28/06, Jan Bartel <ja...@mo...> wrote: > Paul, > > Looks like you may have forgotten to uncomment the datasource in > the webapps-plus/test-jndi/WEB-INF/jetty-env.xml file. > > For the record, here's the README file in the examples/test-jndi-webapp > dir: > > > > After Building > -------------- > After you have built the example, you will need to edit a couple > of files to uncomment the appropriate configuration for the > transaction manager you are using. > > + edit etc/jetty-test-jndi.xml and uncomment one of the transaction > manager setups. > > + edit webapps-plus/test-jndi/WEB-INF/jetty-env.xml and uncomment > one of the transaction manager setups. > > > Running the Demo > ---------------- > You will need to copy a derby.jar to the jetty lib/ directory, as well > as copy all the necessary jars for the flavour of transaction manager > you are using. There are instructions for some of the popular > transaction managers on the wiki at: > > http://docs.codehaus.org/display/JETTY/Jetty+User+Guides > > You run the demo like so: > > java -jar start.jar etc/jetty.xml etc/jetty-plus.xml etc/jetty-test-jndi.xml > > > Adding Support for a Different Transaction Manager > -------------------------------------------------- > > 1. Edit the src/etc/templates/filter.properties file and add > a new set of token and replacement strings following the > pattern established for ATOMIKOS and JOTM. > > 2. Edit the src/etc/templates/jetty-env.xml file and add > configuration for new transaction manager following the > pattern established for the other transaction managers. > > 3. Edit the src/etc/templates/jetty-test-jndi.xml file and > add configuration for the new transaction manager following > the pattern established for the other transaction managers. > > > > regards > Jan > > > Paul Watkins wrote: > > The setup below worked fine with Jetty 6.1 (SVN) until the latest > > updates yesterday to the test-jndi example and the new pom.xml file > > today. Now there is a an error: > > > > 2006-09-27 13:58:12.283::WARN: failed ContextHandlerCollection@1f78040 > > javax.servlet.ServletException > > at com.acme.JNDITest.init(JNDITest.java:78) > > at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:400) > > at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:254) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) > > at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:569) > > at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1132) > > at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420) > > at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) > > at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:156) > > at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:120) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) > > at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:156) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) > > at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119) > > at org.mortbay.jetty.Server.doStart(Server.java:210) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) > > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:905) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at org.mortbay.start.Main.invokeMain(Main.java:183) > > at org.mortbay.start.Main.start(Main.java:497) > > at org.mortbay.start.Main.main(Main.java:115) > > 2006-09-27 13:58:12.326::WARN: Nested in javax.servlet.ServletException: > > javax.naming.NameNotFoundException; remaining name 'mydatasource99' > > at org.mortbay.naming.NamingContext.lookup(NamingContext.java:578) > > > > > > Pleae advise, > > > > thanks, > > Paul > > > > ---------- Forwarded message ---------- > > From: Paul Watkins <pwa...@ps...> > > Date: Sep 21, 2006 5:41 PM > > Subject: Re: [jetty-discuss] Atomikos 3.0 > > To: "Discussion for Jetty development." <jet...@li...> > > > > > > OK, here are the steps I used to configure and use ATOMIKOS 3.0 in > > Jetty 6 and in the jetty-test-jndi.xml configuration: > > > > 1. Downloaded and unzipped Atomikos 3.0 > > 2. Copied all the .jar files in lib and dist directories/folders to jetty/lib > > 3. Used the default, example jta.properties file and copied this file > > from Atomikos... to /jetty/resources > > 4. Changed the following line in the jetty-test-jndi.xml file: > > > > OLD: > > > > <New class="com.atomikos.icatch.jta.J2eeUserTransaction"/> > > > > NEW: > > <New class="com.atomikos.icatch.jta.UserTransactionImp > > "/> > > > > > > Everything seems to work fine, at least with test-jndi. > > > > Note the following differences between Atomikos 2.1 and 3.0 relative > > to the How to Use ATOMIKOS as the Transaction Manager for Jetty 6 > > Step 1: > > OLD: > > > > > > Copy the following jars from your Atomikos installation to the jetty6 > > lib directory: > > lib/transactions_2_10.jar > > lib/jta.jar > > licenses/licenseJTA.jarNEW: > > > > 1. Copy all the .jars from the dist and lib directories/folders in > > Atomikos to the jetty6 lib directory > > > > Step 2: > > OLD: > > > > > > Copy the following webapp to a jetty6 deployment directory, for > > example webapps-plus: > > appservers/other/atomikos.warNEW: > > There is no atomikos.war file in Atomikos 3.0. But there is a > > jta.properties file which should be copied from the Atomikos directory > > to the jetty6 resources directory. Leave the default settings in this > > file as is. > > > > > > Of course Jan should look at this and see if this makes sense and > > update the How Tos. > > > > > > Hope this helps, > > > > Paul > > > > > > > > On 9/21/06, Paul Watkins <pwa...@ps...> wrote: > >> Will do -- it may be a few days before I get to work on this. > >> > >> > >> > >> On 9/18/06, Jan Bartel < ja...@mo...> wrote: > >>> Paul, > >>> > >>> It would be v. helpful if you could post a list of what the differences are. > >>> > >>> regards > >>> Jan > >>> > >>> Paul Watkins wrote: > >>>> It looks like the Atomikos transaction manager is now open source and > >>>> version 3.0. The docs on the wiki should probably be modified to show > >>>> differences between 2.10 and 3.0 in terms of installation and > >>>> configuration. Looks like a number of configuration changes are required. > >>>> > >>>> Thanks, > >>>> > >>>> Paul > >>>> > >>>> > >>>> ------------------------------------------------------------------------ > >>>> > >>>> ------------------------------------------------------------------------- > >>>> Using Tomcat but need to do more? Need to support web services, security? > >>>> Get stuff done quickly with pre-integrated technology to make your job easier > >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >>>> > >>>> > >>>> ------------------------------------------------------------------------ > >>>> > >>>> _______________________________________________ > >>>> jetty-discuss mailing list > >>>> jet...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/jetty-discuss > >>> > >>> ------------------------------------------------------------------------- > >>> Using Tomcat but need to do more? Need to support web services, security? > >>> Get stuff done quickly with pre-integrated technology to make your job easier > >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >>> _______________________________________________ > >>> jetty-discuss mailing list > >>> jet...@li... > >>> https://lists.sourceforge.net/lists/listinfo/jetty-discuss > >>> > >> > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys -- and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Jetty-support mailing list > > Jet...@li... > > https://lists.sourceforge.net/lists/listinfo/jetty-support > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Jetty-support mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jetty-support > |