roger bumico

Greenhorn
+ Follow
since May 02, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by roger bumico

Also I did some poking around by printing a toString on both context lookup here is what I got :


Maven project (not working)
Reference Class Name: Proxy for: com.thongvan.mp.MyFirstMavenEjb.TestMavenEjb
Type: ProxyFactoryKey
Content: ProxyFactory/MyFirstMavenEjb/TestMavenEjbBean/TestMavenEjbBean/remote
Type: EJB Container Name
Content: jboss.j2ee:jar=MyFirstMavenEjb.jar,name=TestMavenEjbBean,service=EJB3
Type: Proxy Factory is Local
Content: false
Type: Remote Business Interface
Content: com.thongvan.mp.MyFirstMavenEjb.TestMavenEjb
Type: Remoting Host URL
Content: socket://localhost:3873/


regular project (working)
Proxy to jboss.j2ee:jar=MyFirstMavenEjb.jar,
name=TestMavenEjbBean,
service=EJB3 implementing [interface com.thongvan.mp.MyFirstMavenEjb.TestMavenEjb]
Hi, here is my problem, I made an EJB with maven and 2 test clients,

* a test client without maven, only added jnp-client and the EJB to it's class path, work like a charm
* a test client using MAVEN, added the EJB through the POM and jnp-client, does not work

this is my EJB :



it's POM :




this is my first test client, the one without maven wich has no problem whatsoever to speak with the EJB



this is my second test client, using maven, it cannot speak with the EJB, all I'm getting is :





It's POM :




Both clients have the same main :



So, anybody has even the slightest idea about why the maven test client is not working?

Jboss 5.1.0.GA
Eclipse indigo
Maven 3.0.4

Pondurai Singh wrote:JSF 2.0 hello world example This tutorial show you how to develop a JavaServer Faces (JSF) 2.0 hello world example, shows list of JSF 2.0 dependencies, basic annotations and configurations. mkyong.com/jsf2/jsf-2-0-hello-world-example/



thanks =D
but now it says that jsf-impl-2.1.7.jar is rotten :/



Could it be related to my project configuration?

#SOLUTION

dunno why but jsf-impl 2.1.7 is not compatible with tomcat7 I had to downgrade to 2.1.6.
also I still had the same problem, it was because I should have used xhtml instead of html AND
only put one set of
<servlet-mapping>
</servlet-mapping>

here is the working web.xml

11 years ago
JSF
Hi,

for some unknown reason everything I put betwen <h:xxx> tags is invisible, however it works fine inside eclipse's graphical preview tool.

here is how it's suposed to work :
first you acces index.html, a simple page with an input box and a submit button
you input your name and press submit, your name is transmitted to a bean then
forwarded to a JSP wich print it saying welcome

however, the submit button and input field are both insivible :/



index.html


web.xml


HelloBean.java


welcome.jsp


and in my pom.xml you can find :
myfaces-api 1.2.2
tomahawk 1.1.9
myfaces-impl 1.2.2
jstl 1.1.2
taglib standard 1.1.2
geronimo_servlet_2.5_spec 1.2
jboss-jsf-api_2.0_spec

any ideas?
thanks =D
11 years ago
JSF