[Installation, Configuration & DEPLOYMENT] - installing PHP module for Windows
by letstry
Hallo
I am using JBoss 4.2.0 and trying to install PHP module for Windows (XP).
I have downlaoded php5servlet-windows-i586-SP1.zip, unziped all dlls
on my class path (for example jboss/bin). I also adjusted web.xml and server.xml as described here
and copied webapps folder to jboss/server/default/deploy. I have also copied jbossweb-extra.jar to jboss/lib and jboss/server/default/lib.
When starting server I get an error during deployment of the PHP module:
java.lang.UnsatisfiedLinkError: Can't find SAPI class, no libphp5servlet in java.library.path(....;c:\jboss-4.2.0.GA\bin)
All DLLs are in the c:\jboss-4.2.0.GA\bin directory but
libphp5servlet does not exist in windows module.
Only php5servlet.dll is there.
Has someone else the same problem ?
In othe formus tehre some questions like this bu no answer.
Thanks in advance
Andre Teshler
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128086#4128086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128086
18 years, 2 months
[Clustering/JBoss] - Problem with simple clustering example
by MarcusDidiusFalco
Hallo, I try to follow a very simple example for clustering (from Jamae, Johnson: JBoss in Action)
JBoss 4.2.0.GA
On a Windows XP machine I have started two instances, node1 and node2 which are copies of the all configuration out of the box. On node2 I use the BindingManager. Both instances start up normally and you can tell from the output that there are two nodes in the DefaultPartion.
I have deployed a very simple SLSB to both nodes.
import javax.ejb.Remote;
|
| @Remote
| public interface Counter {
| public void printNumber(int number);
| }
|
|
| @Stateless
| public class CounterBean implements Counter {
|
| public void printNumber(int number) {
| System.out.println(number);
|
| }
|
| }
|
| <jboss>
| <enterprise-beans>
| <session>
| <ejb-name>CounterBean</ejb-name>
| <jndi-name>CounterBean</jndi-name>
| <clustered>True</clustered>
| </session>
| </enterprise-beans>
| </jboss>
|
|
The deployment succeeds.
The client:
public class Testclient {
| public static void main(String[] args) {
| try {
| Context initialContext = new InitialContext();
| Counter counter = (Counter) initialContext.lookup("CounterBean/remote");
| for (int i=0; i<1000; i++) {
| counter.printNumber(i);
| Thread.sleep(500);
| }
| } catch (NamingException e) {
| e.printStackTrace();
| } catch (InterruptedException e) {
| e.printStackTrace();
| }
|
| }
| }
jndi.properties:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
When I run the client a get a
javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
| at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317)
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at clustering.Testclient.main(Testclient.java:10)
| Caused by: java.net.SocketTimeoutException: Receive timed out
| at java.net.PlainDatagramSocketImpl.receive0(Native Method)
| at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
| at java.net.DatagramSocket.receive(DatagramSocket.java:712)
| at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287)
I have already tried to disable my firewall and set loopback="true" in <udp .. in cluster-service.xml.
Many thanks for any advise
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128085#4128085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128085
18 years, 2 months
[JBoss Seam] - I can't run a simple stateless bean with my Jboss and Seam
by xavybb
Hi Community,
I'm trying to run a simple example with this Stateless bean:
| package org.pruebasoft.prueba;
|
| import java.util.List;
|
| import javax.ejb.Stateless;
| import javax.interceptor.Interceptors;
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
|
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Logger;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.ejb.SeamInterceptor;
| import org.jboss.seam.faces.FacesMessages;
| import org.jboss.seam.log.Log;
|
| @Stateless
| @Name("register")
| public class RegisterAction implements Register
| {
|
| @In
| private User user;
| @Logger
| private static Log log;
|
| public RegisterAction() {} // I tried it with and without contructor
|
| public String register()
| {
| log.info("Action RegisterAcion running......");
| return "";
| }
|
| }
|
My server is a Jboss 4.2.2 GA and it start without errors
this is the log when I deploy my app:
| 18:05:58,155 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
| 18:05:58,183 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 18:05:58,236 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 25s:634ms
| 18:06:38,039 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=pruebaDatasource' to JNDI name 'java:pruebaDatasource'
| 18:06:38,063 INFO [TomcatDeployer] deploy, ctxPath=/prueba, warUrl=.../deploy/prueba.war/
| 18:06:40,232 INFO [ServletContextListener] Welcome to Seam 2.0.1.GA
| 18:06:41,961 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/international, package: org.jboss.seam.international, prefix: org.jboss.seam.international
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/captcha, package: org.jboss.seam.captcha, prefix: org.jboss.seam.captcha
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/async, package: org.jboss.seam.async, prefix: org.jboss.seam.async
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/pdf, package: org.jboss.seam.pdf, prefix:
| 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/spring, package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/transaction, package: org.jboss.seam.transaction, prefix: org.jboss.seam.transaction
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/security/management, package: org.jboss.seam.security.management, prefix: org.jboss.seam.security.management
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
| 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
| 18:06:41,964 INFO [Initialization] reading /WEB-INF/components.xml
| 18:06:41,992 INFO [Initialization] reading jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/components.xml
| 18:06:41,994 INFO [Initialization] reading jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jboss-seam-ioc.jar!/META-INF/components.xml
| 18:06:41,995 INFO [Initialization] reading jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jboss-seam.jar!/META-INF/components.xml
| 18:06:41,997 INFO [Initialization] reading jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jboss-seam-remoting.jar!/META-INF/components.xml
| 18:06:41,999 INFO [Initialization] reading properties from: /seam.properties
| 18:06:41,999 INFO [Initialization] reading properties from: /jndi.properties
| 18:06:42,000 INFO [Initialization] initializing Seam
| 18:06:42,037 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.transaction.synchronizations
| 18:06:42,041 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
| 18:06:42,057 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.manager
| 18:06:42,082 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.expressions
| 18:06:42,087 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
| 18:06:42,088 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
| 18:06:42,089 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
| 18:06:42,107 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.isUserInRole
| 18:06:42,108 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.userPrincipal
| 18:06:42,110 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.bpm.businessProcess
| 18:06:42,110 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
| 18:06:42,111 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.parameters
| 18:06:42,128 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 18:06:42,153 WARN [Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgroups/MembershipListener
| 18:06:42,153 INFO [Initialization] Installing components...
| 18:06:42,173 INFO [Component] Component: authenticator, scope: EVENT, type: JAVA_BEAN, class: org.pruebasoft.prueba.Authenticator
| 18:06:42,206 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.ManagedPersistenceContext
| 18:06:42,230 INFO [Component] Component: org.jboss.seam.async.dispatcher, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.async.ThreadPoolDispatcher
| 18:06:42,240 INFO [Component] Component: org.jboss.seam.captcha.captcha, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.captcha.Captcha
| 18:06:42,246 INFO [Component] Component: org.jboss.seam.captcha.captchaImage, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.captcha.CaptchaImage
| 18:06:42,251 INFO [Component] Component: org.jboss.seam.core.ConversationIdGenerator, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationIdGenerator
| 18:06:42,279 INFO [Component] Component: org.jboss.seam.core.contexts, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Contexts
| 18:06:42,285 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| 18:06:42,297 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
| 18:06:42,303 INFO [Component] Component: org.jboss.seam.core.conversationListFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
| 18:06:42,310 INFO [Component] Component: org.jboss.seam.core.conversationPropagation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationPropagation
| 18:06:42,316 INFO [Component] Component: org.jboss.seam.core.conversationStackFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
| 18:06:42,327 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| 18:06:42,332 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesExpressions
| 18:06:42,337 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
| 18:06:42,342 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Locale
| 18:06:42,352 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesManager
| 18:06:42,359 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
| 18:06:42,371 INFO [Component] Component: org.jboss.seam.core.resourceLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.ResourceLoader
| 18:06:42,398 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
| 18:06:42,404 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
| 18:06:42,414 INFO [Component] Component: org.jboss.seam.debug.hotDeployFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.hot.HotDeployFilter
| 18:06:42,484 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
| 18:06:42,498 INFO [Component] Component: org.jboss.seam.exception.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.exception.Exceptions
| 18:06:42,507 INFO [Component] Component: org.jboss.seam.faces.dataModels, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.DataModels
| 18:06:42,557 INFO [Component] Component: org.jboss.seam.faces.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesContext
| 18:06:42,563 INFO [Component] Component: org.jboss.seam.faces.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesMessages
| 18:06:42,569 INFO [Component] Component: org.jboss.seam.faces.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesPage
| 18:06:42,576 INFO [Component] Component: org.jboss.seam.faces.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.HttpError
| 18:06:42,581 INFO [Component] Component: org.jboss.seam.faces.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.Redirect
| 18:06:42,591 INFO [Component] Component: org.jboss.seam.faces.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
| 18:06:42,598 INFO [Component] Component: org.jboss.seam.faces.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.Switcher
| 18:06:42,606 INFO [Component] Component: org.jboss.seam.faces.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.UiComponent
| 18:06:42,613 INFO [Component] Component: org.jboss.seam.faces.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.Validation
| 18:06:42,621 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
| 18:06:42,632 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
| 18:06:42,643 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
| 18:06:42,653 INFO [Component] Component: org.jboss.seam.graphicImage.image, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.Image
| 18:06:42,659 INFO [Component] Component: org.jboss.seam.international.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.LocaleSelector
| 18:06:42,669 INFO [Component] Component: org.jboss.seam.international.messagesFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Messages
| 18:06:42,676 INFO [Component] Component: org.jboss.seam.international.timeZone, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZone
| 18:06:42,681 INFO [Component] Component: org.jboss.seam.international.timeZoneSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZoneSelector
| 18:06:42,690 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
| 18:06:42,705 INFO [Component] Component: org.jboss.seam.navigation.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.Pages
| 18:06:42,715 INFO [Component] Component: org.jboss.seam.navigation.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.SafeActions
| 18:06:42,720 INFO [Component] Component: org.jboss.seam.pdf.documentStore, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.pdf.DocumentStore
| 18:06:42,728 INFO [Component] Component: org.jboss.seam.persistence.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.PersistenceContexts
| 18:06:42,739 INFO [Component] Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider
| 18:06:42,789 INFO [Component] Component: org.jboss.seam.remoting.gwt.gwtToSeamAdapter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.gwt.GWTToSeamAdapter
| 18:06:42,796 INFO [Component] Component: org.jboss.seam.remoting.remoting, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.Remoting
| 18:06:42,802 INFO [Component] Component: org.jboss.seam.security.configurationFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
| 18:06:42,849 INFO [Component] Component: org.jboss.seam.security.facesSecurityEvents, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.FacesSecurityEvents
| 18:06:42,933 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.RuleBasedIdentity
| 18:06:42,957 INFO [Component] Component: org.jboss.seam.security.identityManager, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.management.IdentityManager
| 18:06:42,963 INFO [Component] Component: org.jboss.seam.theme.themeFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
| 18:06:42,970 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
| 18:06:42,976 INFO [Component] Component: org.jboss.seam.transaction.synchronizations, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.SeSynchronizations
| 18:06:42,992 INFO [Component] Component: org.jboss.seam.transaction.transaction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.Transaction
| 18:06:43,001 INFO [Component] Component: org.jboss.seam.ui.EntityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.EntityConverter
| 18:06:43,008 INFO [Component] Component: org.jboss.seam.ui.entityIdentifierStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore
| 18:06:43,016 INFO [Component] Component: org.jboss.seam.ui.entityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.EntityLoader
| 18:06:43,025 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageResource
| 18:06:43,031 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageStore
| 18:06:43,037 INFO [Component] Component: org.jboss.seam.ui.hibernateEntityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.HibernateEntityLoader
| 18:06:43,044 INFO [Component] Component: org.jboss.seam.ui.resource.styleResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.StyleResource
| 18:06:43,056 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
| 18:06:43,062 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Ajax4jsfFilter
| 18:06:43,072 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilterInstantiator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.filter.Ajax4jsfFilterInstantiator
| 18:06:43,079 INFO [Component] Component: org.jboss.seam.web.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
| 18:06:43,085 INFO [Component] Component: org.jboss.seam.web.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.IsUserInRole
| 18:06:43,091 INFO [Component] Component: org.jboss.seam.web.loggingFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.LoggingFilter
| 18:06:43,095 INFO [Component] Component: org.jboss.seam.web.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
| 18:06:43,100 INFO [Component] Component: org.jboss.seam.web.parameters, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.Parameters
| 18:06:43,105 INFO [Component] Component: org.jboss.seam.web.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
| 18:06:43,111 INFO [Component] Component: org.jboss.seam.web.servletContexts, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.web.ServletContexts
| 18:06:43,117 INFO [Component] Component: org.jboss.seam.web.session, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.web.Session
| 18:06:43,123 INFO [Component] Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal
| 18:06:43,136 INFO [Component] Component: pruebaEntityManagerFactory, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.EntityManagerFactory
| 18:06:43,140 INFO [Component] Component: register, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.pruebasoft.prueba.RegisterAction, JNDI: prueba/RegisterAction/local
| 18:06:43,148 INFO [Component] Component: securityRules, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.drools.RuleBase
| 18:06:43,150 INFO [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.pruebasoft.prueba.User
| 18:06:43,154 INFO [Contexts] starting up: pruebaEntityManagerFactory
| 18:06:43,182 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 18:06:43,182 INFO [DatasourceConnectionProvider] Using datasource: java:/pruebaDatasource
| 18:06:43,439 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.51-3
| 18:06:43,439 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} )
| 18:06:43,463 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
| 18:06:43,540 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
| 18:06:43,548 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 18:06:43,552 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 18:06:43,553 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
| 18:06:43,553 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 18:06:43,553 INFO [SettingsFactory] JDBC batch size: 15
| 18:06:43,553 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
| 18:06:43,554 INFO [SettingsFactory] Scrollable result sets: enabled
| 18:06:43,554 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
| 18:06:43,554 INFO [SettingsFactory] Connection release mode: auto
| 18:06:43,556 INFO [SettingsFactory] Maximum outer join fetch depth: 2
| 18:06:43,556 INFO [SettingsFactory] Default batch fetch size: 1
| 18:06:43,556 INFO [SettingsFactory] Generate SQL with comments: disabled
| 18:06:43,556 INFO [SettingsFactory] Order SQL updates by primary key: disabled
| 18:06:43,556 INFO [SettingsFactory] Order SQL inserts for batching: disabled
| 18:06:43,560 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| 18:06:43,565 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
| 18:06:43,565 INFO [SettingsFactory] Query language substitutions: {}
| 18:06:43,565 INFO [SettingsFactory] JPA-QL strict compliance: enabled
| 18:06:43,565 INFO [SettingsFactory] Second-level cache: enabled
| 18:06:43,565 INFO [SettingsFactory] Query cache: disabled
| 18:06:43,565 INFO [SettingsFactory] Cache provider: org.hibernate.cache.NoCacheProvider
| 18:06:43,565 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
| 18:06:43,565 INFO [SettingsFactory] Structured second-level cache entries: disabled
| 18:06:43,576 INFO [SettingsFactory] Echoing all SQL to stdout
| 18:06:43,576 INFO [SettingsFactory] Statistics: disabled
| 18:06:43,576 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
| 18:06:43,577 INFO [SettingsFactory] Default entity-mode: pojo
| 18:06:43,577 INFO [SettingsFactory] Named query checking : enabled
| 18:06:43,626 INFO [SessionFactoryImpl] building session factory
| 18:06:43,634 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
| 18:06:43,640 INFO [SchemaUpdate] Running hbm2ddl schema update
| 18:06:43,640 INFO [SchemaUpdate] fetching database metadata
| 18:06:43,642 INFO [SchemaUpdate] updating schema
| 18:06:43,644 INFO [SchemaUpdate] schema update complete
| 18:06:43,651 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 18:06:43,654 INFO [Contexts] starting up: org.jboss.seam.security.facesSecurityEvents
| 18:06:43,656 INFO [Initialization] done initializing Seam
| 18:06:43,661 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.loggingFilter
| 18:06:43,661 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.ajax4jsfFilter
| 18:06:43,685 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| 18:06:43,688 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, facelets.DEVELOPMENT=true, org.richfaces.SKIN=blueSky, javax.faces.DEFAULT_SUFFIX=.xhtml}
| 18:06:43,688 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| 18:06:43,707 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| 18:06:43,707 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, facelets.DEVELOPMENT=true, org.richfaces.SKIN=blueSky, javax.faces.DEFAULT_SUFFIX=.xhtml}
| 18:06:43,707 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| 18:06:43,708 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
| 18:06:43,708 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
| 18:06:43,708 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter
| 18:06:43,708 INFO [SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter
|
My components.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <components xmlns="http://jboss.com/products/seam/components"
| xmlns:core="http://jboss.com/products/seam/core"
| xmlns:persistence="http://jboss.com/products/seam/persistence"
| xmlns:drools="http://jboss.com/products/seam/drools"
| xmlns:bpm="http://jboss.com/products/seam/bpm"
| xmlns:security="http://jboss.com/products/seam/security"
| xmlns:mail="http://jboss.com/products/seam/mail"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
| http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
| http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
| http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
| http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
| http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd
| http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
|
| <core:init jndi-pattern="prueba/#{ejbName}/local" debug="true" />
|
| <core:manager concurrent-request-timeout="500"
| conversation-timeout="120000"
| conversation-id-parameter="cid"/>
|
| <persistence:managed-persistence-context name="entityManager"
| auto-create="true"
| entity-manager-factory="#{pruebaEntityManagerFactory}"/>
|
| <persistence:entity-manager-factory name="pruebaEntityManagerFactory"
| persistence-unit-name="prueba"/>
|
| <drools:rule-base name="securityRules">
| <drools:rule-files><value>/security.drl</value></drools:rule-files>
| </drools:rule-base>
|
| <security:identity authenticate-method="#{authenticator.authenticate}"
| security-rules="#{securityRules}"
| remember-me="true"/>
|
| <event type="org.jboss.seam.security.notLoggedIn">
| <action execute="#{redirect.captureCurrentView}"/>
| </event>
| <event type="org.jboss.seam.security.loginSuccessful">
| <action execute="#{redirect.returnToCapturedView}"/>
| </event>
|
| <mail:mail-session host="localhost" port="2525" username="test" password="test" />
|
| <!-- For use with jBPM pageflow or process management -->
| <!--
| <bpm:jbpm>
| <bpm:process-definitions></bpm:process-definitions>
| <bpm:pageflow-definitions></bpm:pageflow-definitions>
| </bpm:jbpm>
| -->
|
| </components>
|
I tried editing my jndi-pattern components.xml at server like this:
| <core:init jndi-pattern="prueba/#{ejbName}/local" debug="true" />
|
and lilke this:
| <core:init jndi-pattern="#{ejbName}/local" debug="true" />
|
And when I invoke register.register action in this view:
| <?xml version="1.0" encoding="utf-8"?>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core">
|
| <head>
| <title>Register New User</title>
| </head>
| <body>
| <f:view>
| <h:form>
| <h:commandButton value="Register" action="#{register.register}"/>
| </h:form>
| </f:view>
| </body>
|
| </html>
|
I obtain always this exception:
| 18:13:36,270 WARN [lifecycle] Could not instantiate Seam component: register
| org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
| at org.jboss.seam.Component.newInstance(Component.java:1970)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
| at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
| at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
| at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
| at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
| at javax.faces.component.UICommand.broadcast(UICommand.java:383)
| at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
| at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
| at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.naming.NameNotFoundException: prueba not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.seam.Component.instantiateSessionBean(Component.java:1287)
| at org.jboss.seam.Component.instantiate(Component.java:1273)
| at org.jboss.seam.Component.newInstance(Component.java:1966)
| ... 60 more
| 18:13:36,271 WARN [lifecycle] executePhase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@365dc0) threw exception
| javax.faces.FacesException: Could not instantiate Seam component: register
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:105)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
| at org.jboss.seam.Component.newInstance(Component.java:1970)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
| at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
| at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
| at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
| at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
| at javax.faces.component.UICommand.broadcast(UICommand.java:383)
| at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
| at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
| at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| ... 40 more
| Caused by: javax.naming.NameNotFoundException: prueba not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.seam.Component.instantiateSessionBean(Component.java:1287)
| at org.jboss.seam.Component.instantiate(Component.java:1273)
| at org.jboss.seam.Component.newInstance(Component.java:1966)
| ... 60 more
| 18:13:36,274 ERROR [ExceptionFilter] handling uncaught exception
| javax.servlet.ServletException: Could not instantiate Seam component: register
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
| at org.jboss.seam.Component.newInstance(Component.java:1970)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
| at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
| at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
| at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
| at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
| at javax.faces.component.UICommand.broadcast(UICommand.java:383)
| at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
| at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
| at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| ... 37 more
| Caused by: javax.naming.NameNotFoundException: prueba not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.seam.Component.instantiateSessionBean(Component.java:1287)
| at org.jboss.seam.Component.instantiate(Component.java:1273)
| at org.jboss.seam.Component.newInstance(Component.java:1966)
| ... 60 more
| 18:13:36,274 ERROR [ExceptionFilter] exception root cause
| org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
| at org.jboss.seam.Component.newInstance(Component.java:1970)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
| at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
| at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
| at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
| at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
| at javax.faces.component.UICommand.broadcast(UICommand.java:383)
| at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
| at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
| at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.naming.NameNotFoundException: prueba not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.seam.Component.instantiateSessionBean(Component.java:1287)
| at org.jboss.seam.Component.instantiate(Component.java:1273)
| at org.jboss.seam.Component.newInstance(Component.java:1966)
| ... 60 more
| 18:13:36,716 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
| 18:13:36,719 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
| 18:13:36,722 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
| 18:13:36,726 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
| 18:13:36,736 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
| 18:13:36,740 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
| 18:13:36,743 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
| 18:13:36,750 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
| 18:13:36,755 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
| 18:13:36,759 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
| 18:13:36,764 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
| 18:13:36,770 ERROR [STDERR] 09/02/2008 18:13:36 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/home/xavier/Programas/jboss-4.2.2.GA/server/default/deploy/prueba.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml
|
I readed seam documentation and searched forums, but I can't find a solution. ¿Can anybody help me please?
Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128084#4128084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128084
18 years, 2 months
[JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
by nandhusriram
BTW I took the jpa example out of seam 2.0.1 GA and ran the test. I am still getting the class casterror ,
bTW my index pages work all the time, the error I am getting is when I am logging in.
Also I notificed transaction type changed from JTA to LOCAL in the persistence .xml and its causing an error
[2/9/08 9:23:36:390 CST] 0000001e SeamPhaseList E org.jboss.seam.jsf.SeamPhaseListener beforePhase uncaught exception
java.lang.IllegalStateException: Could not start transaction
at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:581)
at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:312)
at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:140)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:990)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:931)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:768)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:676)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:499)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:473)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.ClassCastException: org.jboss.seam.persistence.EntityManagerFactory incompatible with javax.persistence.EntityManagerFactory
at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:236)
at org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:79)
at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
at org.jboss.seam.Component.unwrap(Component.java:2108)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128083#4128083
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128083
18 years, 2 months
[Beginners Corner] - Re: Illegal @PersistenceUnit? Help!
by McJava1967
OK. I'm getting close!
Within Eclipse, I selected the "JPA facet", which then generated the persistence.xml.
My next problem brings me to precisely the main point I've been trying to learn about--CMP! My example "Stock" class contains these annotions:
@Entity
@Table(schema="BrianDb")
The Eclipse editor is now showing this error message on the @Table line:
"Table 'Stock' cannot be resolved."
Unlike the dozens of previous errors solved to get to this point, this error makes me happy! I'm right at the crux of container-managed persistence now, right?
BrianDb is my MySql db, and the error message is correct: there is no table named "Stock" in it yet.
So next, I'm supposed to do some simple configuration, and that table will be magically created for me, right?
If you can tell me how to do that, I will send you a free six pack, and a big bowl of nacho Doritos.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128082#4128082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128082
18 years, 2 months
[Persistence, JBoss/CMP, Hibernate, Database] - Named Query - results as object?
by arnieOag
I'm not entirely sure if creating a non-table-related class in Hibernate is entirely supported, but it compiles w/o issue.
In the mapping file below, the class is intended to represent the record returned by the Named Query defined below it.
The problem is that the query tag doesn't take the return tag. I guess I could turn this into a sql-query but that seems to be counter intuitive - embedding dbms-specific (possibly) SQL in the abstraction layer when it shouldn't be necessary.
After the .list() command completes, I get a List of Object arrays with no relation to the code that invoked it. Sure, I can do things like (String)objVar[0] to get at my values, but its very ugly.
Is there no way to get the results of a HQL-based Named Query into a custom object?
Thanks in advance.
| <?xml version="1.0" encoding="utf-8"?>
| <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
| <!--
| Created to encapsulate the return results from a custom
| select query for the report. However, the query tag
| does not take the return attribute, only the sql-query
| does.
| -->
| <hibernate-mapping>
|
| <class name="us.tx.state.oag.olrap.report.AppsOnFile">
| <id name="applicationId" type="java.math.BigDecimal">
| <column name="application_id" precision="18" scale="0" />
| <generator class="assigned" />
| </id>
| <property name="emplid" type="java.lang.String">
| <column name="emplid" length="11" not-null="true" />
| </property>
| <property name="nameFirst" type="java.lang.String">
| <column name="name_first" length="30" not-null="true" />
| </property>
| <property name="nameMiddle" type="java.lang.String">
| <column name="name_middle" length="30" />
| </property>
| <property name="nameLast" type="java.lang.String">
| <column name="name_last" length="30" not-null="true" />
| </property>
| <property name="title" type="java.lang.String">
| <column name="title" length="60" not-null="true" />
| </property>
| <property name="deptId" type="java.lang.String">
| <column name="deptid" length="10" not-null="false" />
| </property>
| <property name="departmentName" type="java.lang.String">
| <column name="department_name" length="10" not-null="false" />
| </property>
| <property name="calculatedAward" type="java.math.BigDecimal">
| <column name="calculated_award" precision="11" not-null="true" />
| </property>
| <property name="baseAward" type="java.math.BigDecimal">
| <column name="base_award" precision="11" not-null="true" />
| </property>
| <property name="status" type="java.lang.String">
| <column name="status" length="60" not-null="true" />
| </property>
| </class>
|
| <query name="ApplicationsOnFileByStatusId">
| <query-param name="codeStatus" type="java.math.BigDecimal"/>
| <![CDATA[
| select apps.applicationId, emps.emplid, emps.nameFirst,
| emps.nameMiddle, emps.nameLast,
| emps.title, emps.deptId, emps.departmentName,
| apps.calculatedAward, apps.baseAward,
| status.description as status
| from us.tx.state.oag.olrap.db.InfoApplication as apps
| inner join apps.infoEmployees as emps
| inner join apps.codeStatus as status
| where apps.codeStatus.statusId = :codeStatus
| ]]>
| </query>
|
| <query name="ApplicationsOnFileByActive">
| <![CDATA[
| select apps.applicationId, emps.emplid, emps.nameFirst,
| emps.nameMiddle, emps.nameLast,
| emps.title, emps.deptId, emps.departmentName,
| apps.calculatedAward, apps.baseAward,
| status.description as status
| from us.tx.state.oag.olrap.db.InfoApplication as apps
| inner join apps.infoEmployees as emps
| inner join apps.codeStatus as status
| where apps.codeStatus.statusId in (
| select statusId from us.tx.state.oag.olrap.db.CodeStatus as status2
| where status2.description = 'Submitted'
| or status2.description = 'Qualified'
| or status2.description = 'Approved'
| )
| ]]>
| </query>
|
| </hibernate-mapping>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128081#4128081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128081
18 years, 2 months