Just added a sentence on the car rental sample On Sun, 2004-10-31 at 02:41, Chad Brandon wrote: > Hey Martin, > > Unfortunately the car rental sample hasn't been tested > in quite a while (it currently uses the old deprecated > struts cartridge which should NOT be used anymore as > it isn't supported). I fixed the struts tag lib > import errors you were getting with the hibernate > version, however I didn't look at the other problem. > > In fact Carlos Cuenca is converting the application > to use bpm4struts. Carlos, how's it coming...have you > been able to get it to run? > > Chad > > --- Martin West <[EMAIL PROTECTED]> wrote: > > > I get the following error: > > > > 23:47:39,550 INFO [EARDeployer] Init J2EE > > application: > > > file:/hda6/tools/jboss-3.2.5/server/default/deploy/car-re > > ntal-sample-hibernate-app-3.0M3-SNAPSHOT.ear > > 23:47:40,930 WARN [DeploymentInfo] Only the root > > deployment can set the > > loader repository, ingoring config=null > > 23:47:41,702 INFO [EjbModule] Deploying > > AdminService > > 23:47:41,744 INFO [EjbModule] Deploying > > ContractService > > 23:47:41,768 INFO [EjbModule] Deploying > > InventoryService > > 23:47:41,797 INFO [EjbModule] Deploying > > CustomerService > > 23:47:42,461 INFO [EJBDeployer] Deployed: > > > file:/hda6/tools/jboss-3.2.5/server/default/tmp/deploy/tmp62323car-ren > > > tal-sample-hibernate-app-3.0M3-SNAPSHOT.ear-contents/car-rental-sample-hibernate-3.0M3-SNAPSHOT.jar > > 23:47:42,605 INFO [TomcatDeployer] deploy, > > ctxPath=/carrental-hibernate, > > warUrl=file:/hda6/tools/jboss-3.2.5/ser > > > ver/default/tmp/deploy/tmp62323car-rental-sample-hibernate-app-3.0M3-SNAPSHOT.ear-contents/car-rental-sample-web- > > 3.0M3-SNAPSHOT.war/ > > 23:47:45,303 INFO [EARDeployer] Started J2EE > > application: > > > file:/hda6/tools/jboss-3.2.5/server/default/deploy/car > > -rental-sample-hibernate-app-3.0M3-SNAPSHOT.ear > > 23:47:45,328 INFO [EARDeployer] Init J2EE > > application: > > > file:/hda6/tools/jboss-3.2.5/server/default/deploy/car-re > > ntal-sample-ejb-app-3.0M3-SNAPSHOT.ear > > 23:47:45,979 WARN [DeploymentInfo] Only the root > > deployment can set the > > loader repository, ingoring config=null > > 23:47:46,747 INFO [EjbModule] Deploying AccidentDoc > > 23:47:46,971 INFO [EjbModule] Deploying > > CarAccessoryType > > 23:47:47,034 INFO [EjbModule] Deploying > > Administrator > > 23:47:47,136 INFO [EjbModule] Deploying > > CarAccessory > > 23:47:47,214 INFO [EjbModule] Deploying HandoutDoc > > 23:47:47,237 INFO [EjbModule] Deploying Contract > > 23:47:47,261 INFO [EjbModule] Deploying CarType > > 23:47:47,285 INFO [EjbModule] Deploying ReturnDoc > > 23:47:47,309 INFO [EjbModule] Deploying Customer > > 23:47:47,333 INFO [EjbModule] Deploying Car > > 23:47:47,379 INFO [EjbModule] Deploying > > PartnerInAccident > > 23:47:47,415 INFO [EjbModule] Deploying Driver > > 23:47:47,441 INFO [EjbModule] Deploying Reservation > > 23:47:47,465 INFO [EjbModule] Deploying > > InventoryService > > 23:47:47,500 INFO [EjbModule] Deploying > > CustomerService > > 23:47:47,541 INFO [EjbModule] Deploying > > AdminService > > 23:47:47,561 INFO [EjbModule] Deploying > > ContractService > > 23:47:52,198 INFO [Car] Table 'CAR' already exists > > 23:47:52,524 INFO [CarAccessoryType] Table > > 'CAR_ACCESSORY_TYPE' already > > exists > > 23:47:52,547 INFO [PartnerInAccident] Table > > 'PARTNER_IN_ACCIDENT' > > already exists > > 23:47:52,571 INFO [CarType] Table 'CAR_TYPE' > > already exists > > 23:47:52,605 INFO [Administrator] Table > > 'ADMINISTRATOR' already exists > > 23:47:52,635 INFO [Customer] Table 'CUSTOMER' > > already exists > > 23:47:52,666 INFO [Driver] Table 'DRIVER' already > > exists > > 23:47:52,761 INFO [CarAccessory] Table > > 'CAR_ACCESSORY' already exists > > 23:47:52,871 INFO [Reservation] Table 'RESERVATION' > > already exists > > 23:47:52,912 INFO [AccidentDoc] Table > > 'ACCIDENT_DOC' already exists > > 23:47:52,960 INFO [HandoutDoc] Table 'HANDOUT_DOC' > > already exists > > 23:47:52,990 INFO [Contract] Table 'CONTRACT' > > already exists > > 23:47:53,119 INFO [ReturnDoc] Table 'RETURN_DOC' > > already exists > > 23:47:53,161 ERROR [StatelessSessionContainer] > > Starting failed > > jboss.j2ee:jndiName=ejb/org.andromda.samples.carre > > ntal.inventory.InventoryService/Remote,service=EJB > > java.rmi.ServerException: Could not bind home; > > nested exception is: > > java.lang.ClassCastException > > at > > > org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:385) > > at > > > org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:187) > > at > > > org.jboss.ejb.StatelessSessionContainer.startService(StatelessSessionContainer.java:205) > > at > > > org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) > > at > > > org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) > > at > > sun.reflect.GeneratedMethodAccessor79.invoke(Unknown > > Source) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at > > java.lang.reflect.Method.invoke(Method.java:324) > > at > > > org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) > > at > > > org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) > > > > > > Any ideas? > > > > I copied the two ear files to the jboss deploy > > directory. > > > > Although the hibernate ear deployed, accessing the > > application yields: > > > > HTTP Status 500 - > > > > > ________________________________________________________________________ > > > > type Exception report > > > > message > > > > description The server encountered an internal error > > () that prevented > > it from fulfilling this request. > > > > exception > > > > org.apache.jasper.JasperException: File > > "/struts-bean.tld" not found > > > > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50) > > > > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) > > > > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118) > > > > > org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:159) > > > > > org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) > > > > > org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) > > > > > org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) > > > > > org.apache.jasper.compiler.Parser.parse(Parser.java:126) > > > > > org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220) > > > > > org.apache.jasper.compiler.ParserController.parse(ParserController.java:101) > > > > > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203) > > > > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:470) > > > > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) > > > > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) > > > > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > > > > -- > > Martin West > > Head of Product Design and Development > > http://www.star-map.net > > +44(0)207 318 0308 > > +44(0)787 968 0096 > > > > > ATTACHMENT part 2 application/pgp-signature > name=signature.asc > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user -- Martin West Head of Product Design and Development http://www.star-map.net +44(0)207 318 0308 +44(0)787 968 0096Title: Andromda Samples The samples illustrate the use of AndroMDA with Maven. Both the Animal Quiz and Car Rental System show typical AndroMDA project structures.
Provided in this distribution is a maven plugin, you can use this plugin to generate your own application having the same structure as these samples. To run it, just install the plugin into your $MAVEN_HOME/plugins directory (copy the file maven-andromdapp-plugin-[VERSION-NAME].jar). In the directory where you would like your project directory created enter 'maven andromdapp:generate'.
It's also possible to build an Ant based project with AndroMDA by using the <andromda>. ant task (although its currently not shown in the samples).
The following instructions assume you are familiar with operating a JBoss system.
To build the samples, perform the following steps:
- Install the latest version of Maven and add it to your $PATH or %PATH%
- From this directory (the directory in which this file you're reading is located) type 'maven'; this will build all samples. After the build has completed successfully, follow the instructions for each sample below.
NOTE: After you've built the samples the first time, you can build them again with the '-o' parameter passed to maven. (i.e. you can type 'maven -o'). The '-o' tells Maven to build offline and since it isn't trying to download the dependencies, it will build much faster.
OnlineStore application.
To run:- Copy the app/target/ ear file to [JBOSS_HOME]/server/[SERVER_NAME]/deploy
- [Re]Start JBoss.
- Open Local OnlineStore
- The first page expects the user to enter his name and password, his name must be at least 3 characters and start with a capital, the password needs to be 6 characters or more and consists of alphanumerical characters (both uppercase and lowercase), when the user clicks on 'proceed' we go to the second page
- The second page lists items that can be purchased, the user can select an arbitrary number of items from this list, there is also a checkbox where to user can confirm he read the store's licence
- The third and last page asks the user to enter his email and creditcard number, he also needs to enter his age, which must be in a range from 12 to 112. After placing the order the application returns to the beginning.
AnimalQuiz Sample
To run:- Copy the app/target/ ear file to [JBOSS_HOME]/server/[SERVER_NAME]/deploy
- Check that HSQLDB TCP connnections are enabled. Edit [JBOSS_HOME]/server/[SERVER_NAME]/deploy/hsqldb-ds.xml and uncomment two pragmas, one for the connection and one for the mbean.
- [Re]Start JBoss as neccessary.
- Change directory to the animal-quiz/app/target and execute the initializeSchema.[sh|cmd] script.
- Open Local AnimalQuiz
- Now you have to think of an animal and click the got one button.
- The program will try to guess your choice. Initially after one guess, elephant, it will give up and prompt you for the animal and question.
Car Rental Sample
This example is undergoing rework to use the latest BPM4Struts cartridge.To run:
- Copy the ear files to [JBOSS_HOME]/server/[SERVER_NAME]/deploy
- car-rental-system/app/ejb/target/car-rental-sample-ejb-app-[VERSION].ear
- car-rental-system/app/hibernate/target/car-rental-sample-hibernate-app-[VERSION].ear
- Check that HSQLDB TCP connnections are enabled. Edit [JBOSS_HOME]/server/[SERVER_NAME]/deploy/hsqldb-ds.xml and uncomment two pragmas, one for the connection and one for the mbean.
- [Re]Start JBoss as neccessary.
- Change directory to the cd car-rental-system/app/hibernate/target and execute the initializeSchema.[sh|cmd] script.
- Open Local EJB Car Rental System or
- Open Local Hibernate Car Rental System
- The follow the instructions at andromda car-rental system.
Good Luck!
The AndroMDA Team
signature.asc
Description: This is a digitally signed message part
