[Installation, Configuration & DEPLOYMENT] - Deployment Error when I upgrade Jobss 4.0.4GA to JBoss4.2.2
by mendaye
Hello All:
I am seeing the following deployment error when I deploy pvng.ear file in Jboss4.2.2GA. It was working without any problem in jboss4.0.4. Pleas help me to figure out this issue.
| org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
| at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
| at org.jboss.security.auth.login.XMLLoginConfigImpl.loadXMLConfig(XMLLoginConfigImpl.java:320)
| at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:288)
| at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:268)
| at org.jboss.security.auth.login.XMLLoginConfig.startService(XMLLoginConfig.java:176)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 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)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:96)
| at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:55)
| at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
| ... 52 more
| Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
| at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
| ... 54 more
| 2007-11-08 16:52:40,668 DEBUG [org.jboss.security.auth.login.XMLLoginConfigImpl] Try loading config as Sun format, url=file:/C:/DEV/JBoss/jboss-4.2.2.GA/server/pvng/conf/login-config.xml
| 2007-11-08 16:52:40,777 WARN [org.jboss.security.auth.login.XMLLoginConfigImpl] End loadConfig, failed to load config: file:/C:/DEV/JBoss/jboss-4.2.2.GA/server/pvng/conf/login-config.xml
| org.jboss.security.auth.login.ParseException: Encountered "<?xml" at line 1, column 1.
| Was expecting one of:
| <EOF>
| <IDENTIFIER> ...
|
| at org.jboss.security.auth.login.SunConfigParser.generateParseException(SunConfigParser.java:395)
| at org.jboss.security.auth.login.SunConfigParser.jj_consume_token(SunConfigParser.java:333)
| at org.jboss.security.auth.login.SunConfigParser.config(SunConfigParser.java:98)
| at org.jboss.security.auth.login.SunConfigParser.parse(SunConfigParser.java:57)
| at org.jboss.security.auth.login.SunConfigParser.doParse(SunConfigParser.java:79)
| at org.jboss.security.auth.login.XMLLoginConfigImpl.loadSunConfig(XMLLoginConfigImpl.java:310)
| at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:294)
| at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:268)
| at org.jboss.security.auth.login.XMLLoginConfig.startService(XMLLoginConfig.java:176)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 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)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
|
I did check the content of the login-config.xml file and it is valid - look below..
login-config.xml fil
| <?xml version='1.0'?>
| <!DOCTYPE policy PUBLIC
| "//JBoss//DTD JBOSS Security Config 3.0//EN"
| "http://www.jboss.org/j2ee/dtd/security_config.dtd">
|
| <!-- The XML based JAAS login configuration read by the
| org.jboss.security.auth.login.XMLLoginConfig mbean. Add
| an application-policy element for each security domain.
|
| The outline of the application-policy is:
| <application-policy name="security-domain-name">
| <authentication>
| <login-module code="login.module1.class.name" flag="control_flag">
| <module-option name = "option1-name">option1-value</module-option>
| <module-option name = "option2-name">option2-value</module-option>
| ...
| </login-module>
|
| <login-module code="login.module2.class.name" flag="control_flag">
| ...
| </login-module>
| ...
| </authentication>
| </application-policy>
|
| $Revision: 1.12.2.5 $
| -->
|
| <policy>
| <!-- Used by clients within the application server VM such as
| mbeans and servlets that access EJBs.
| -->
| <application-policy name = "client-login">
| <authentication>
| <login-module code = "org.jboss.security.ClientLoginModule"
| flag = "required">
| <!-- Any existing security context will be restored on logout -->
| <module-option name="restore-login-identity">true</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| <!-- Security domain for JBossMQ -->
| <application-policy name = "jbossmq">
| <authentication>
| <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag = "required">
| <module-option name = "unauthenticatedIdentity">guest</module-option>
| <module-option name = "dsJndiName">java:/DefaultDS</module-option>
| <module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option>
| <module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| <!-- Security domain for JBossMQ when using file-state-service.xml
| <application-policy name = "jbossmq">
| <authentication>
| <login-module code = "org.jboss.mq.sm.file.DynamicLoginModule"
| flag = "required">
| <module-option name = "unauthenticatedIdentity">guest</module-option>
| <module-option name = "sm.objectname">jboss.mq:service=StateManager</module-option>
| </login-module>
| </authentication>
| </application-policy>
| -->
|
| <!-- Security domains for testing new jca framework -->
| <application-policy name = "HsqlDbRealm">
| <authentication>
| <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule"
| flag = "required">
| <module-option name = "principal">sa</module-option>
| <module-option name = "userName">sa</module-option>
| <module-option name = "password"></module-option>
| <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| <application-policy name = "JmsXARealm">
| <authentication>
| <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule"
| flag = "required">
| <module-option name = "principal">guest</module-option>
| <module-option name = "userName">guest</module-option>
| <module-option name = "password">guest</module-option>
| <module-option name = "managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| <!-- A template configuration for the jmx-console web application. This
| defaults to the UsersRolesLoginModule the same as other and should be
| changed to a stronger authentication mechanism as required.
| -->
| <application-policy name = "jmx-console">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
| flag = "required">
| <module-option name="usersProperties">props/jmx-console-users.properties</module-option>
| <module-option name="rolesProperties">props/jmx-console-roles.properties</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| <!-- A template configuration for the web-console web application. This
| defaults to the UsersRolesLoginModule the same as other and should be
| changed to a stronger authentication mechanism as required.
| -->
| <application-policy name = "web-console">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
| flag = "required">
| <module-option name="usersProperties">web-console-users.properties</module-option>
| <module-option name="rolesProperties">web-console-roles.properties</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| <!--
| A template configuration for the JBossWS security domain.
| This defaults to the UsersRolesLoginModule the same as other and should be
| changed to a stronger authentication mechanism as required.
| -->
| <application-policy name="JBossWS">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
| flag="required">
| <module-option name="usersProperties">props/jbossws-users.properties</module-option>
| <module-option name="rolesProperties">props/jbossws-roles.properties</module-option>
| <module-option name="unauthenticatedIdentity">anonymous</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| <application-policy name = "MySqlDbRealm">
| <authentication>
| <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
| <module-option name ="principal">acmnms</module-option>
| <module-option name ="userName">acmnms</module-option>
| <module-option name ="password">acmnms</module-option>
| <module-option name ="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
|
| </policy>
|
|
Thanks for your help in advance.
Mendaye
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103140#4103140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103140
18 years, 7 months
[Persistence, JBoss/CMP, Hibernate, Database] - "No identifier specified"...but I have one!!!
by darretta
I am getting the "No identifier specified" exception using Hibernate and JBoss 4.3.2.
My identifier is as so:
| private Integer id;
|
| /**
| * Gets the id of this DataArchive.
| * @return the id
| */
| @Id(generate=GeneratorType.AUTO)
| public Integer getId() {
| return this.id;
| }
|
Logs are below:
>From Hibernate:
| 2007-11-07 02:02:55,118 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of mil.navy.ia.vram.dos.ejb.entity3.DataArchive.id
| 2007-11-07 02:02:55,269 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column id unique false
| 2007-11-07 02:02:55,274 DEBUG [org.hibernate.cfg.AnnotationBinder] id is an id
| 2007-11-07 02:02:55,296 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] building SimpleValue for id
| 2007-11-07 02:02:55,302 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Building property id
| 2007-11-07 02:02:55,406 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Cascading id with null
| 2007-11-07 02:02:55,407 DEBUG [org.hibernate.cfg.AnnotationBinder] Bind @EmbeddedId on id
|
Note that it is trying bind id to "EmbeddedId"...
>From application log:
| javax.persistence.PersistenceException: org.hibernate.AnnotationException: No identifier specified for entity: mil.navy.ia.vram.dos.ejb.entity3.DataArchiveType
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:149)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:73)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
| at mil.navy.ia.vram.dos.ejb.session3.DataArchiveFacade.archive(DataArchiveFacade.java:82)
| 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)
| at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
| at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
| at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
| at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
| at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
| at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
| at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
| at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
| at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
| at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.hibernate.AnnotationException: No identifier specified for entity: mil.navy.ia.vram.dos.ejb.entity3.DataArchiveType
| at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:645)
| at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:256)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:191)
| at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:988)
| at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:607)
| at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:75)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:473)
| at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:96)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103138#4103138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103138
18 years, 7 months
[JBoss Seam] - Re: bookmarkable and friendly url's
by Delphi's Ghost
I know the s:link and s:button controls append params to the URL using page params, but is there any way to do it for the h:commandButton control, or the ajaxy submits from Richfaces? Bearing in mind the s:link/button controls don't post the forms so they are useless for data entry submitters.
The docs only really mention page parameters from the perspective of a non-interactive page (i.e. bookmarkable search results), but I imagine most people want them on interactive pages. Even if a page is read only with multiple tabs, it seems the tab click events kill the param in the URL.
I thought (and I could be wrong) that this problem could be worked around by switching from using @RequestParameter to using the id getters and setters on the EntityHome object for example and then the param was always in the URL?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103131#4103131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103131
18 years, 7 months
[JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S
by gus888
Hi Pete,
Thank you so much for your patiently responding my questions. In fact, I have an idea to use conversation browse bean. User can browsing the search results, then he/she can either create a new instance or edit an existing instance through another conversation bean from the browsing page. After he/she finishes, the user can go back the previous conversation browse bean. However, I couldn't get it work. The codes are as following. Thank you very much in advance.
StudyBrowserAction.java@Stateful
| @Name("studyBrowser")
| @Scope(ScopeType.CONVERSATION)
| public class StudyBrowserAction implements StudyBrowser {
| ...
|
| @Begin (id="browing-study")
| public void find() {
| page = 0;
| queryStudy();
| }
|
| @Begin(join=true)
| public void nextPage() {
| page++;
| queryStudy();
| }
|
| @Begin(join=true)
| public void previousPage() {
| page--;
| queryStudy();
| }
|
| private void queryStudy() {
| ...
| }
|
| @Remove
| public void destroy() {}
| }
|
StudyEditorAction.java
| @Stateful
| @Name("studyEditor")
| @Scope(ScopeType.CONVERSATION)
| public class StudyEditorAction implements StudyEditor {
|
| @Begin(id="create-study"
| public String createStudy() {
| ...
| }
|
| @Begin(id="edit#{study.id}")
| public void editStudy() {
| ...
| }
|
| @Begin(join=true)
| public void create() {
| ...
| }
|
| @Begin(join=true)
| public void update() {
| ...
| }
|
| @End
| public void done() {
| ...
| }
|
| @End
| public void cancel() {}
|
| @Remove
| public void destroy() {}
| }
xhtml page:<h:selectInputText id="studyBrowsing" />
| <h:commandButton id="findStudy" value="Browse Study" action="#{studyBrowser.find}" />
|
| <h:commandLink value="Create New Study" action="#{studyEditor.createInstance}"/>
|
|
| <h:dataTable id="studies" value="#{studies}" var="study" >
| ...
| <h:column>
| <f:facet name="header">Action</f:facet>
| <ice:commandLink value="Edit Study" action="#{studyEditor.editStudy}"/>
| </h:column>
| </h:dataTable>
|
| <h:commandLink value="Next Page" action="#{studyBrowser.nextPage}"/>
| <h:commandLink value="Previous Page" action="#{studyBrowser.previousPage}"/>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103125#4103125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103125
18 years, 7 months
[JBoss Seam] - ClassCast Exception when trying to get a Seam Managed Statef
by griffitm
Hi All,
I am getting this error when trying to get a seam managed component from a servlet.
java.lang.ClassCastException: org.javassist.tmp.java.lang.Object_$$_javassist_0
| at action.gov.hhs.fda.ocio.fdaaa.servlet.ExcelExportServlet.service(ExcelExportServlet.java:42)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
The offending line in the servlet looks like this:
DeliverableSearchAction searchAction = (DeliverableSearchAction) Component.getInstance("deliverableSearch");
The component is defined as:
@Stateful
| @Name("deliverableSearch")
| @Scope(ScopeType.SESSION)
| public class DeliverableSearchAction implements DeliverableSearch, Serializable { ...
|
I have the following mapping in my components.xml file:
<web:context-filter url-pattern="/excel"/>
I have the following servlet mapping in my web.xml:
| <servlet>
| <servlet-name>Excel Export Servlet</servlet-name>
| <servlet-class>action.gov.hhs.fda.ocio.fdaaa.servlet.ExcelExportServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Excel Export Servlet</servlet-name>
| <url-pattern>/excel</url-pattern>
| </servlet-mapping>
|
Can anyone point out what I am doing wrong? I'd simply like to get a reference to the seam managed bean so I can get my data from it and export it in Excel format using POI.
Any help would be much appreciated!
MG
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103123#4103123
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103123
18 years, 7 months