[JBoss Seam] - Re: Beginner Question
by gavin.kingï¼ jboss.com
Well, I think I can spot at least 3 errors to begin with:
(1) The value bindings should be #{account==null}, #{account.realName}, etc, OR you need to get rid of the @Out annotation, and add a getAccount() method.
(2) @Name("LoginAccount") should be @Name("loginAccount"), names are supposed to be initial lowercase.
(3) You are trying to bind inputs to a value that is outjected only when the action method is called, which happes *after* update model values.
Now, there is an example *exactly like this* on the very first page of the documentation, so why not just copy that. It looks like you're trying to jump in and write code without first learning the semantics of the JSF lifecycle, Seam bijection, etc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053647#4053647
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053647
18Â years, 10Â months
[JBossWS] - Error installing JBossWS with Eclipse + Jboss 4.2
by carlosmot
I have this problem when I try to publish a POJO as web service without annontations:
NoClassDefFoundError: javax/xml/rpc/encoding/TypeMapping
My configuration is below:
Clean wmware image with Windows XP SP2, JDK 1.5.0_11, JWSDP 2.0 and Eclipse downloaded from your site file name: "JBossIDE-2.0.0.Beta2-Bundle-win32.zip" and JBossWS donwloaded from your site file name:"jbossws-1.2.1.GA.zip" and a JBoss server downloaded from your site, file name: "jboss-4.2.0.GA.zip" and Ant 1.70.
The system variables:
JAVA_HOME, JBOSS_HOME, JWSDP_HOME and ANT_HOME are all OK.
My Installation procedure are:
I decompress jboss-4.2.0.GA.zip into "c:\jboss-4.2.0.GA"
I decompress jbossws-1.2.1.GA.zip into "c:\jbossws"
I decompress JBossIDE-2.0.0.Beta2-Bundle-win32.zip into "c:\eclipse"
I put JWSDP into JWSDP 2.0 into C:\jwsdp-2.0
......................................................................................
Into c:\jbossws I rename ant.properties.example in "ant.properties"
I also modify "ant.properties" and uncomment the line below:
jboss42.home=c:/jboss-4.2.0.GA
I launch Ant from a console as below:
ant deploy-jboss42
All is ok and Ant says build succesfully------
I test the JBoss installation with "http://localhost:8080/jbossws" and the
page appears correctly.
....................................................................................
Well, now I launch Eclipse, and I set the properties from Preferences>JBoss Eclipse IDE>JBoss WS>Integrated tools>JBoss WS wstools to: C:\jboss-4.2.0.GA\bin
Preferences>JBoss Eclipse IDE>JBoss WS>Integrated tools>JAXB XJC to:
C:\jwsdp-2.0\jaxb
I leave the rest in blank.
-------------------------------------------------------------------
Now I create a Java Project whit 1 interface and 1 class with the code of your documentation: IHelloWorld & HelloWorld without changes.
When mouse's rigth button add a JBossws nature to the project and I accept the defualt values.
Selecting HelloWorld I clic under JBOSSWS>Publish as Web Service and Eclipse says:
Running JBossWS wstools for [ProyectoWS]
directory: C:\Documents and Settings\Administrador\workspace\ProyectoWS
command: cmd.exe /C C:\jboss-4.2.0.GA\bin\wstools.bat -cp /ProyectoWS -config C:\DOCUME~1\Alumno\CONFIG~1\Temp\wstools-config30423.xml -dest C:\Documents and Settings\Administrador\workspace\ProyectoWS\ProyectoWS
========================================================================="
.
WSTools Environment
.
JBOSS_HOME: C:\jboss-4.2.0.GA\bin\\..
.
JAVA: C:\Archivos de programa\Java\jdk1.5.0_11\bin\java
.
JAVA_OPTS:
.
========================================================================="
.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/encoding/TypeMapping
at org.jboss.ws.tools.WSTools.process(WSTools.java:130)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
at org.jboss.ws.tools.WSTools.main(WSTools.java:58)
----------------------------------------------------------------------------
Thanks advanced for your patience and cooperation, sorry for my last post...
..Carlos..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053646#4053646
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053646
18Â years, 10Â months
[JBoss Seam] - IllegalArgumentException in EmbeddedEJB3
by KnisterPeter
Hi,
while setting up a seam app inside tomcat with EmbeddedEJB3 I'll get the following exception and I cannot figure out why. Anyone has an idea what I am doing wrong?
java.lang.RuntimeException: java.lang.IllegalArgumentException: Null name
| at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:391)
| at org.jboss.seam.core.Ejb.startup(Ejb.java:42)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
| at org.jboss.seam.Component.newInstance(Component.java:1746)
| at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
| at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145)
| at org.jboss.seam.init.Initialization.init(Initialization.java:504)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
| at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
| at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
| at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
| at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
| at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
| at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
| at org.apache.catalina.core.StandardService.start(StandardService.java:448)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
| 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:597)
| at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
| Caused by: java.lang.IllegalArgumentException: Null name
| at org.jboss.dependency.plugins.AbstractController.getContext(AbstractController.java:101)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.getContext(AbstractKernelController.java:94)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:229)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:161)
| at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:381)
| ... 38 common frames omitted
|
I have the following files unter /WEB-INF/classes:
* The content of the mc-conf.jar
* jboss-beans.xml
* jndi.properties
In the /WEB-INF folder are:
* components.xml
* faces-config.xml
In my application jar file I have in the root folder:
* components.properties
* seam.properties
And at least in the META-INF folder of my application jar file:
* ejb-jar.xml
* faces-config.xml (extra definitions)
* persistence.xml
Any idea would be helpful...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053642#4053642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053642
18Â years, 10Â months