History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XPR-242
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Jacques Morel
Reporter: Brill Pappin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
xplanner

Geronimo support (ClassNotFoundException on startup)

Created: 11/Mar/06 01:28 PM   Updated: 11/Mar/06 09:41 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 0.7

Time Tracking:
Not Specified

File Attachments: 1. XML File geronimo-web.xml (0.2 kb)


JDK version and platform: jdk 1.5, freebsd
Database: mysql
Application server: Geronimo 1.0


 Description  « Hide
In svn checkout revision 1016
I'm getting a CLassNotFound exception while one of the spring beans is registered:

[40468807] ERROR - core.ContainerBase.[/xplanner] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'transactionManager' defined in class path resource [spring-beans.xml]: Class that bean class [org.springframework.orm.hibernate.HibernateTransactionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException
java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException


I've checked and hibernate2.jar is int he lib directory... I suspect (but don't know enough about spring to say for sure) that some package is not registered that should be.


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Brill Pappin - 11/Mar/06 01:34 PM
I may have jumpped the gun here and this is not a problem with XPlanner.
I added the attached geronimo-web.xml file to WEB-INF and its started up without any exceptions...

it seems that in Geronimo the <context-priority-classloader>true</context-priority-classloader> parameter defaults to false if not present which causes classloader problem.

Jacques Morel - 11/Mar/06 09:21 PM
Added geronimo-web.xml to the WEB-INF directory

Brill Pappin - 11/Mar/06 09:41 PM
FYI - The problem with the web.xml was the *order* of the name tag mentioned int he article (it was updated a while after I posted this).

So far I have not been able to get XPlanner running in Geronimo but I'm still working on debugging it...
So far it seems to start up just fine,and I get no errors logged, but it just isn't at the context I set (this is with the TOmcat version of Geronimo).