Please see comments below...
On Dec 28, 2003, at 2:57 PM, Frank Danner wrote:
Hi there:
I have just downloaded your latest appfuse 1.2 stuff and encountered a few
problems with the servlet containers I use on Windows 2000:
http://www.caucho.com/download/ (the difference between ee and the ordinary
edition are 2 jars: ejb-20.jar and resin-ejb.jar in Resin's lib directory).
I tested with the latest 3.0 snapshot.
http://www.newatlanta.com/c/products/servletexec/download/home. I use ServletExec 5.0/AS (not /ISAPI 5.0!). The evaluation is restricted to 3 concurrent requests - not enough for stress testing but fine for now...
1. The latter one fails by not supporting <resource-ref> in web.xml which
shows a common problem of your stuff: I don't complain about relying on a
2.3+ servlet engine and featuring listeners etc. whereas Struts 1.1 only
requires a 2.2+ compatible container but don't you rely too much on other
J2EE-stuff beyond the JSP/Servlet scope :-(
I prefer servlet 2.3 because of Filters and the ability to reference URIs in JARs for tag libraries. The main reason I actively maintain AppFuse is to help me on future projects - to basically minimize the time needed to start a new project. To be honest, if a client uses a 2.2 container (and I can't talk them into upgrading) I believe it's in my best interest to pass on the project and look for another one. Therefore, I do not have any plans to support Servlet 2.2, and I don't see any reason why I should.
Most of my projects in the last year have been on 2.3 compliant containers, so this hasn't been a problem for me.
2. There is a redundant filter defined in web.xml with an empty <filter-name>. I just commented it out...
I saw that and I still can't figure out why it's happening. It doesn't seem to cause a problem, so I haven't been too concerned with it. If you are able to figure out why XDoclet is generating this, please let me know.
3. Both containers complain on startup: [appfuse] FATAL [main] DatasourceConnectionProvider.configure(47) | and datasource: java:comp/env/jdbc/appfuse javax.naming.NameNotFoundException: java:comp/env/jdbc/appfuse.
You need to have a JNDI resource named "jdbc/appfuse" configured for a database connection pool. I recently configured this for Resin 3.0 if you'd like instructions on how to do this.
4. Changed the listenPort_http to 80 and listenPort_https to 443 respectively in web.xml in accordance to my servlet engine's setting. I still have no clue what they are good for...
The main reason for these settings is for SSL switching - I code the ports so that non-standard HTTP and HTTPS ports can be used (mainly for development purposes).
MySQL 4.0.17 has been setup properly (localhost) according to your
description (appfuse.sql) and the 3.0.9 JDBC driver has been copied to both
container lib directories...
Since Tomcat/Catalina or a fullblown EJB-container is not an option for me I
feel pity I couldn't make appfuse 1.2 work on my machine since I really like
your basic idea (Struts 1.1 + best-of-breed extensions and concepts
combined) - just the f... EE dependencies or am I wrong?
The ejb classes are only needed by XDoclet to generate ActionForms from POJOs. AppFuse works fine on Tomcat with only the JDBC Driver added to $CATALINA_HOME/common/lib. I believe it would be fairly simple to get it working on Resin - if I was a Resin Expert. Last time I tried to get Roller (http://rollerweblogger.org) working on Resin 3.0.x, I found that the documentation was inaccurate and it took me quite some time to figure out how to properly setup the app.conf file.
Since I am not a Resin Expert, and none of my clients want to pay for a servlet container, I have not spent any time trying to get it working. In fact, I've been developing AppFuse for over a year, and you're the first to try it on Resin! ;-) Keep trying, I'd like to get it working on Resin and Orion, I just haven't been motivated since my clients are happy with Tomcat.
Matt
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Struts-apps mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-apps
