Here are the jars you might need in Tomcat's common/lib directory to run with Tomcat LE. An easier way is to download the full edition of Tomcat, and you should be able to run AppFuse just fine. I've set it up from 0.9.9 on a brand new box in under 10 minutes before.
http://prdownloads.sourceforge.net/struts/tomcat-jars.jar?download
HTH,
Matt
On Tuesday, September 30, 2003, at 05:31 PM, Lasse Lindg�rd wrote:
Hi,
I have been playing a bit around with appfuse.
Please read to the end, since I got a problem I can't seem to fix.
Other new users might get a hint on how to work around the few pebbles blocking the road.
First I got the 0.9.9 version.
I couldn't get it to build since build.properties(.sample) and database.properties(.sample) was missing
So I got the CVS version instead.
I had much more luck with that one. Since the .properties files was included.
Now I tried running the ant setup-db script.
That failed because of a faulty sample-data.xml file. It included info on a child and parent table that are not created as part of the table creation scripts.
I outcommented those and ran the tests without any problems.
Now I wanted to run ant setup-tomcat deploy which worked out fine initially.
However starting Tomcat (4.1) gave me some trouble. I got a stack trace in the console on a missing org.apache.commons.dbcp.BasicResourceFactory class.
I could actually enter the application at this point. Got to the login page. But of course submitting info didn't work, since there was no db connection.
Downloading commons-dbcp-1.0.zip from the jakarta-commons project seemed to solve that one.
Now apache started without any big errors.
However now the application didn't start.
I set the logging levels from WARN to INFO in webapps/appfuse/WEB-INF/classes/log4j.properties
Seemed like the hibernate.properties file was missing ..
Copied that into the classes dir in the webapps.
See my attachment for what I get when starting tomcat now.
If I enter the /manager application in tomcat I can see that the application is not started and pressing the start link doesn't work.
I'd really appreciate if you could give me a hint on what to do next.
TIA
/Lasse
Buildfile: build.xml
start.tomcat:
[java] Oct 1, 2003 1:26:14 AM org.apache.commons.modeler.Registry loadRegistry
[java] INFO: Loading registry information
[java] Oct 1, 2003 1:26:14 AM org.apache.commons.modeler.Registry getRegistry
[java] INFO: Creating new Registry instance
[java] Oct 1, 2003 1:26:14 AM org.apache.commons.modeler.Registry getServer
[java] INFO: Creating MBeanServer
[java] Oct 1, 2003 1:26:15 AM org.apache.coyote.http11.Http11Protocol init
[java] INFO: Initializing Coyote HTTP/1.1 on port 8080
[java] Starting service Tomcat-Standalone
[java] Apache Tomcat/4.1.24-LE-jdk14
[java] [appfuse] DEBUG [main] StartupListener.contextInitialized(34) | contextInitialized...
[java] [appfuse] DEBUG [main] StartupListener.contextInitialized(49) | daoType: hibernate
[java] [appfuse] INFO [main] Environment.<clinit>(403) | Hibernate 2.0.2
[java] [appfuse] INFO [main] Environment.<clinit>(437) | loaded properties from resource hibernate.properties: {database.name=jdbc:mysql://localhost:3306/mysql, hibernate.connection.driver_class=com.mysql.jdbc.Driver, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, database.type=mysql, hibernate.connection.username=root, hibernate.connection.url=jdbc:mysql://localhost:3306/ appfuse?autoReconnect=true, hibernate.show_sql=true, hibernate.connection.password=, hibernate.statement_cache.size=6, hibernate.connection.pool_size=20}
[java] [appfuse] INFO [main] Environment.<clinit>(452) | using CGLIB reflection optimizer
[java] [appfuse] INFO [main] Environment.<clinit>(462) | JVM proxy support: true
[java] [appfuse] INFO [main] Configuration.getConfigurationInputStream(703) | Configuration resource: /hibernate.cfg.xml
[java] [appfuse] INFO [main] Configuration.addResource(270) | Mapping resource: org/appfuse/persistence/Role.hbm.xml
[java] [appfuse] INFO [main] Binder.bindRootClass(178) | Mapping class: org.appfuse.persistence.Role -> role
[java] [appfuse] INFO [main] Configuration.addResource(270) | Mapping resource: org/appfuse/persistence/User.hbm.xml
[java] [appfuse] INFO [main] Binder.bindRootClass(178) | Mapping class: org.appfuse.persistence.User -> app_user
[java] [appfuse] INFO [main] Configuration.addResource(270) | Mapping resource: org/appfuse/persistence/UserRole.hbm.xml
[java] [appfuse] INFO [main] Binder.bindRootClass(178) | Mapping class: org.appfuse.persistence.UserRole -> user_role
[java] [appfuse] INFO [main] Configuration.configure(885) | Configured SessionFactory: hibernate/sessionFactory
[java] [appfuse] INFO [main] Configuration.secondPassCompile(492) | processing one-to-many association mappings
[java] [appfuse] INFO [main] Binder.bindCollectionSecondPass(1024) | Mapping collection: org.appfuse.persistence.User.roles -> user_role
[java] [appfuse] INFO [main] Configuration.secondPassCompile(503) | processing foreign key constraints
[java] [appfuse] INFO [main] SessionFactoryImpl.<init>(132) | building session factory
[java] [appfuse] INFO [main] Dialect.<init>(37) | Using dialect: net.sf.hibernate.dialect.MySQLDialect
[java] [appfuse] INFO [main] NamingHelper.getInitialContext(26) | JNDI InitialContext properties:{}
[java] [appfuse] DEBUG [main] StartupListener.contextDestroyed(74) | contextDestroyed...
[java] Oct 1, 2003 1:26:20 AM org.apache.coyote.http11.Http11Protocol start
[java] INFO: Starting Coyote HTTP/1.1 on port 8080
[java] Oct 1, 2003 1:26:20 AM org.apache.jk.common.ChannelSocket init
[java] INFO: JK2: ajp13 listening on /0.0.0.0:8009
[java] Oct 1, 2003 1:26:20 AM org.apache.jk.server.JkMain start
[java] INFO: Jk running ID=0 time=0/172 config=D:\java\Tomcat41\conf\jk2.properties
[java] Stopping service Tomcat-Standalone
BUILD SUCCESSFUL Total time: 27 seconds
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Struts-apps mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-apps
