This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat, Seam, and Ant tasks: not fully undeployed - bad toolset combination? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat, Seam, and Ant tasks: not fully undeployed - bad toolset combination?" Watch "Tomcat, Seam, and Ant tasks: not fully undeployed - bad toolset combination?" New topic
Author

Tomcat, Seam, and Ant tasks: not fully undeployed - bad toolset combination?

Karsten Wutzke
Ranch Hand

Joined: Jul 20, 2010
Posts: 106

Hello,

I'm currently developing a Seam app and because I had no experience with JBoss AS I decided to pick Tomcat 6 along with Embedded JBoss. I also used Ant instead of anything Eclipse-based (or similar). I had a hard time configuring Tomcat so it would run "stable". I frequently run into a deploy/undeploy issue when using the Catalina Ant tasks:

General error: AspectDeployer: error during undeploy (NullPointerException)



There are usually a dozen other JAR files (and exceptions thrown) involved. What's really annoying is that there's always the Seam JAR jboss-seam.jar left in the webapp dir when the above happens, which again requires me to restart the server.

Now I'm wondering: Did I make the wrong choice (server and dev tools)?

Not only do the Ant tasks require me to redeploy to local Tomcat for even character that I change, but they also don't work 100% - at least for me. I have some other technologies involved in my project, like JPA (Hibernate) and JSF/Facelets, so would I probably be better of by using JBoss AS? Is that more stable? Are my tools too ancient? I really could use some state-of-the-art advice as I picked Tomcat and Ant because these were the only ones I've used in the past.

Karsten


OCJP JavaSE 6 (86%)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15963
    
  19

Actually, Tomcat does not embed JBoss, but JBoss does run an embedded copy of Tomcat.

Based on what you've published so far, you probably should have asked in the JBoss forum. Tomcat itself doesn't know what to do with JBoss datasource definitions.


Customer surveys are for companies who didn't pay proper attention to begin with.
Karsten Wutzke
Ranch Hand

Joined: Jul 20, 2010
Posts: 106

Tim Holloway wrote:Actually, Tomcat does not embed JBoss, but JBoss does run an embedded copy of Tomcat.

... Tomcat itself doesn't know what to do with JBoss datasource definitions.


Hmm interesting comments. The latter is probably the cause of my logs files telling me something about a non-JTA persistence context (JTA didn't seem to work). This is just another reason to ditch Tomcat entirely when doing JBoss/Seam web dev.

Thanks
Karsten
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat, Seam, and Ant tasks: not fully undeployed - bad toolset combination?
 
Similar Threads
Could any one correct this error in Jboss server?
Error starting up my jboss
Problem in starting JBOSS Server
HibernateException Could not instantiate dialect class for MySQLDialect
Class Loading - another problem