[JBoss Seam] - Re: Problems using Ajax4jsf to Seam Hibernate3 sample app
by smartbinary
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
19 years, 7 months
[JBoss Portal] - Cannot install new Portlet (failes to create instance)
by kc7bfi
I am trying to install a new Portlet into JBoss Portal. When I do, I get the following error:
2006-10-05 16:23:34,281 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Creating portlet instance WebVideoInstance
| 2006-10-05 16:23:34,281 DEBUG [org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer] Creating instance WebVideoInstance of portlet local.WebVideo.zkLoader
| 2006-10-05 16:23:34,296 WARN [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Failed to create instance WebVideoInstance of portlet WebVideo.zkLoader because portlet WebVideo.zkLoader is not available
| 2006-10-05 16:23:34,296 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Failed to create instance WebVideoInstance of portlet WebVideo.zkLoader because portlet WebVideo.zkLoader is not available
| org.jboss.portal.portlet.NoSuchPortletException: No such portlet WebVideo.zkLoader
| at org.jboss.portal.portlet.container.PortletContainerInvoker.getPortlet(PortletContainerInvoker.java:104)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
Here are my descriptor files:
portlet.xml
| <?xml version="1.0"?>
| <portlet>
| <description>ZK loader for ZUML pages</description>
| <portlet-name>zkLoader</portlet-name>
| <display-name>VICADS WebVideo</display-name>
| <portlet-class>org.zkoss.zk.ui.http.DHtmlLayoutPortlet</portlet-class>
| <expiration-cache>0</expiration-cache>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| </supports>
| <supported-locale>en</supported-locale>
| <portlet-info>
| <title>ZK</title>
| <short-title>ZK</short-title>
| <keywords>ZK,ZUML</keywords>
| </portlet-info>
| </portlet>
|
portlet-instances.xml
| <?xml version="1.0" standalone="yes"?>
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <instance>
| <instance-id>WebVideoInstance</instance-id>
| <portlet-ref>zkLoader</portlet-ref>
| </instance>
| </deployment>
| </deployments>
|
WebVideo-object.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>default</parent-ref>
| <page>
| <page-name>WebVideo</page-name>
| <window>
| <window-name>VICADS WebVideo</window-name>
| <instance-ref>WebVideoInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
| </page>
| </deployment>
| </deployments>
|
Any help would be appreciated.
Ps. This is my first attempt at portlets.
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976411#3976411
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976411
19 years, 7 months
[JBoss Seam] - Understanding... Bijection
by johnurban
I have read the seam_reference.pdf (pg 51-52) regarding Bijection.
Just wanted to run a concept by and see if I am implementing the Seam framework correctly.
- user logs in and gets authenticated via the login stateful session bean
- I have a user object that is an attribute of the login stateful session bean
- I will @Out that user object to the context by simply using the @Out
- now, because the user has access, I will redirect output to a new screen that needs some attributes from the user object (ie.. companyID) to lookup some company info
- I can now @In a varible called user in my welcome stateless session bean and I now automatically have the user object that I just stored in the login stateful session bean.
Is my understand correct?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976407#3976407
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976407
19 years, 7 months