[JBoss Tools (users)] - Step away from the tool and nobody gets hurt
by bostroff
I guess I'm working too hard to make this work...
I have successfully created a seam project in the past (say a month ago) from an existing database schema using seam-gen from the command line. Pretty much just ran the tool, built it (as an ear), deployed it in JBoss, and CRUD just worked. I was using seam 2.0 with JBoss AS 4.2.2.
Now, I'm trying to get effectively the same thing working using the seam tools in Eclipse (Europa 3.3.1.1) and I ran into a number of problems:
1. Missing serialVersionUID everywhere - added it.
2. The loginout.xhtml apparently missing the ui:composition tag - modified it
3. Some generated xhtml pages not recognizing the messages bundle - added bundle to faces-config.xml - doesn't seem to help - warnings still exist.
4. Try a deploy anyway - complains about missing MethodBinding among others.
So, did I answer some of the wizard questions incorrectly (like should I have NOT picked seam 2.0 technology preview)? Is there a blindingly simple tutorial where I could create a small seam 2.0 application from scratch inside Eclipse (Europa) and have it successfully deploy and execute?
Gosh, this se(a)ms a lot harder than it should be...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119793#4119793
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119793
18 years, 3 months
[JBoss Seam] - Scoped datamodel
by earniedyke
Greetings all,
If I have the following class:
@Stateful
| @Scope(SESSION)
| @Name("conferenceManager")
| public class ConferenceManager implements ConferenceManagerLocal, Serializable {
|
| @DataModelSelection("administerableConferences")
| @Out(required = false, scope = PAGE)
| private Conference administerableConference;
|
| @DataModel
| @Out(required = false, scope = PAGE)
| private List<Conference> administerableConferences;
|
| ...
|
| }
|
is the scope of administerableConferences being prompted to SESSION because the class is scoped SESSION?
As you can seen from this clip of debug.seam it iis in the SESSION context:
- Session Context
| activeConferences
| adminConf
| administerableConferences
| conferenceManager
| javax.faces.request.charset
| org.jboss.seam.core.conversationEntries
| org.jboss.seam.international.localeSelector
| org.jboss.seam.security.identity
| org.jboss.seam.web.session
| person
| waitc.u
| + - Application Context
I am using Seam 2.0.0 by the way.
Thanks for any and all responses.
Earnie!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119792#4119792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119792
18 years, 3 months
[JBoss Seam] - Problem with database drivers
by haefti
Hi!
I have a problem with my database connection.
My <project-name>-dev-ds.xml looks like this:
| <?xml version="1.0" encoding="UTF-8"?>
| <datasources>
| <local-tx-datasource>
| <jndi-name>simple_videoDatasource</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/seam</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>seam</user-name>
| <password>seam</password>
|
| <exception-sorter-class-name>
| org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
| </exception-sorter-class-name>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
|
| </local-tx-datasource>
| </datasources>
|
I get this output in the log file:
| 19:51:57,312 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver))
|
I tried three different versions of mysql-connector-java-bin.jar, the jar is located in the /lib directory and is added to the .classpath in the correct way.
I have the same problem when using the Oracle driver so it is probably not the driver class itself.
Any hint?
Thanks!
Haefti
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119786#4119786
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119786
18 years, 3 months
[JBoss Seam] - Unable to Deploy JPA Weblogic Example to WebLogic 9.2
by neilac333
I built the Seam JPA example for WebLogic using the build script provided, and I tried deploying jboss-seam-jpa.war to my WL 9.2 instance. I got the following:
|
| An error occurred during activation of changes, please see the log for details.
| Message icon - Error [HTTP:101064][WebAppModule(jboss-seam-jpa:jboss-seam-jpa.war)] Error parsing descriptor in Web appplication "D:\bea_dev\domains\domain_dev\jboss-seam-jpa.war" weblogic.application.ModuleException:
| Unmarshaller failed at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:781) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:272) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Caused by: com.bea.xml.XmlException: failed to load java type corresponding to e=web-app@http://java.sun.com/xml/ns/javaee at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:325) at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:292) at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:302) at com.bea.staxb.runtime.internal.UnmarshalResult.determineRootType(UnmarshalResult.java:283) at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:153) at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65) at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:136) at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280) at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248) at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:749) at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:378) at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720) at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729) at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:134) at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:775) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:272) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185) weblogic.application.ModuleException: Unmarshaller failed
| Message icon - Error failed to load java type corresponding to e=web-app@http://java.sun.com/xml/ns/javaee
|
|
Is there anything I need to do as a precondition to this app running? Such as setting up the datasource with JNDI name examples-dataSource-demoPool as found in the persistence.xml file?
Thanks for any insight.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119784#4119784
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119784
18 years, 3 months