-
1. Re: Hello world based on tutorial always gives PropertyNotFoundException
fernando_jmt May 3, 2008 6:46 PM (in response to ge0ffrey)Is the method
add
declared in your EmployeeService business interface? -
2. Re: Hello world based on tutorial always gives PropertyNotFoundException
infinity2heaven May 3, 2008 7:07 PM (in response to ge0ffrey)That means, it's unable to find your seam component. Did you verify the jndi settings in components.xml? It should be something like,
<core:init jndi-pattern="yourEarNameHere/#{ejbName}/local" debug="true"/>
yourEarNameHere is your ear name (without the extension .ear), or in case of an exploded package the folder name
-
3. Re: Hello world based on tutorial always gives PropertyNotFoundException
ge0ffrey May 3, 2008 11:45 PM (in response to ge0ffrey)Using the jmx console, I 've found out it's in the global namespace under the name DefaultEmployeeService:
+- messor-ear (class: org.jnp.interfaces.NamingContext) ... | +- DefaultEmployeeService (class: org.jnp.interfaces.NamingContext) | | +- local (proxy: $Proxy130 implements interface be.messor.business.employee.EmployeeService,interface org.jboss.ejb3.JBossProxy)
So it totally ignores my @Name annotation on the class DefaultEmployeeService, any reason why?
-
4. Re: Hello world based on tutorial always gives PropertyNotFoundException
ge0ffrey May 3, 2008 11:50 PM (in response to ge0ffrey)Even with the jndi line in components.xml
and using #{DefaultEmployeeService.add} instead, I still get:javax.el.PropertyNotFoundException: /home.xhtml @22,82 action="#{DefaultEmployeeService.add}": Target Unreachable, identifier 'DefaultEmployeeService' resolved to null
The add method is on the local interface too.
-
5. Re: Hello world based on tutorial always gives PropertyNotFoundException
ge0ffrey May 4, 2008 12:08 AM (in response to ge0ffrey)
What am I missing?A META-INF/seam.properties in my ejb jar too...
There are many, many hoops to deployment jump through to create a hello world seam application on jboss AS, I hope it's worth it :)
-
6. Re: Hello world based on tutorial always gives PropertyNotFoundException
inabatch May 4, 2008 4:12 PM (in response to ge0ffrey)Hi,
You are getting a javax.el.PropertyNotFoundException.
Because try it.
#{employeeService.add()}If I mistake your problem, sorry.