[jboss-user] [JBoss Seam] - Re: Problems using Ajax4jsf to Seam Hibernate3 sample app

smartbinary do-not-reply at jboss.com
Thu Oct 5 17:06:24 EDT 2006


Hmmm....trying to work on the sample for deployment to JBoss AS, but can't seem to deploy the Seam Hibernate Example w/o a class not found exception.

I used the JEMS installation for Beta 2 ... have JDK 1.5 starting the app server ... however, I get the following when I try to deploy the example app:

16:56:01,299 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 12s:871ms
16:56:56,183 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=hibernateDatasource' to JNDI na
me 'java:hibernateDatasource'
16:56:56,729 INFO  [TomcatDeployer] deploy, ctxPath=/seam-hibernate, warUrl=.../tmp/deploy/tmp62564jboss-seam-hibernate-exp.war/
16:56:57,056 INFO  [ServletContextListener] Welcome to Seam 1.0.1.GA
16:56:57,072 INFO  [Initialization] reading components.xml
16:56:57,134 INFO  [Initialization] reading properties from: /seam.properties
16:56:57,134 INFO  [Initialization] reading properties from: /jndi.properties
16:56:57,134 INFO  [Initialization] initializing Seam
16:56:57,212 INFO  [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
16:56:57,384 INFO  [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
16:56:57,399 INFO  [Component] Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
16:56:57,415 INFO  [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
16:56:57,446 INFO  [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
16:56:57,446 INFO  [Component] Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
16:56:57,462 INFO  [Component] Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
16:56:57,462 INFO  [Component] Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
16:56:57,477 INFO  [Component] Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
16:56:57,493 INFO  [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
16:56:57,509 INFO  [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
16:56:57,509 INFO  [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
16:56:57,524 INFO  [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
16:56:57,524 INFO  [Component] Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
16:56:57,555 INFO  [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
16:56:57,555 INFO  [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
16:56:57,571 INFO  [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
16:56:57,571 INFO  [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
16:56:57,571 INFO  [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
16:56:57,587 INFO  [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessConte
xt
16:56:57,587 INFO  [Component] Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
16:56:57,602 INFO  [Component] Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
16:56:57,602 INFO  [Component] Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
16:56:57,618 INFO  [Component] Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
16:56:57,634 INFO  [Component] Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
16:56:57,649 INFO  [Component] Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
16:56:57,649 INFO  [Component] Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
16:56:57,665 INFO  [Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jbos
s.seam.remoting.messaging.SubscriptionRegistry
16:56:57,665 INFO  [Component] Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
16:56:57,665 INFO  [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
16:56:57,712 INFO  [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
16:56:57,712 INFO  [Component] Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedHibernateSession
16:56:57,727 INFO  [Component] Component: org.jboss.seam.core.hibernate, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Hibernate
16:56:57,727 INFO  [Component] Component: org.jboss.seam.core.microcontainer, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Microcon
tainer
16:56:57,743 INFO  [Scanner] scanning: /C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp62564jboss-seam-hibernate-exp.war/WEB-INF/lib/jboss-seam-hibern
ate.jar
16:56:57,758 INFO  [Component] Component: bookingList, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.example.hibernate.BookingListAction
16:56:57,790 INFO  [Component] Component: logout, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.example.hibernate.LogoutAction
16:56:57,805 INFO  [Component] Component: login, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.example.hibernate.LoginAction
16:56:57,805 INFO  [Component] Component: hotelBooking, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.example.hibernate.HotelBookingActi
on
16:56:57,821 INFO  [Component] Component: changePassword, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.hibernate.ChangePasswordAction
16:56:57,836 INFO  [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.hibernate.User
16:56:57,852 INFO  [Component] Component: register, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.hibernate.RegisterAction
16:56:57,852 INFO  [Component] Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.hibernate.Hotel
16:56:57,868 INFO  [Component] Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.hibernate.Booking
16:56:58,414 ERROR [AbstractKernelController] Error installing to Described: name=Naming state=Not Installed
java.lang.ClassNotFoundException: org.jnp.server.SingletonNamingServer
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
        at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:216)
        at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory.getTypeInfo(IntrospectionTypeInfoFactory.java:47)
        at org.jboss.classadapter.plugins.reflect.ReflectClassAdapterFactory.getClassAdapter(ReflectClassAdapterFactory.java:61)
        at org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(AbstractKernelConfig.java:59)
        at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:64)
        at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:76)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$DescribeAction.installAction(KernelControllerContextActions.java:227)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.jav
a:147)
        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)

I haven't used the JBoss App Server in over 5-years, so would hate to just start plugging JARs in :-).

Any advice?


Regards,

Todd

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976415#3976415

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976415



More information about the jboss-user mailing list