JSF 2.0 + axis2 integration is it possible? - java

Is it possible to implement axis2 in an JSF 2.0 project ?? it seems I cannot do that because it pops up an error saying : javaserver faces 2.0 requires dynamic web module 2.5, and axis2 requires dynamic module 2.2 or 2.3 does anyone have any solution please ??

I just tried this on MyEclipse 10.7.1 and had no problem. I just added JSF capabilities to the web project (right click on the project and go to MyEclipse->Add JSF Capabilities, selecting 2.0. Then I set the Axis2 runtime in the preferences (I have an old Axis2 1.5.4 runtime). Then I went to the preferences page you showed, for the project, and added Axis2. I got no errors. For the Axis2 runtime preferences page, you need to have the WTP Extras enabled (Window->Preferences->General->Capabilities->Advanced then open MyEclipse Standard Tools and select WTP Extras before clicking OK).
I'm not sure if the release of MyEclipse is significant but, if you're not on the latest (10.7.1) it would probably be a good idea to update your installation first.

Related

JSF related project facets not appearing in Eclipse Juno

I'm trying to create a dynamic web project with JSF 2.0 configuration in Eclipse Java EE Juno SR1. I have installed WTP tools from http://download.eclipse.org/releases/juno/.
I use Java 1.6
I face the following problems :
1. I don't have JSF facets in my eclipse
2. Also, even after installing WTP tools, I don't get a web page editor.
3 . On a related note, I'm trying to use JBoss AS 7.1 Application server with eclipse, but I am not able to find it's adapter either.
I use Eclipse Juno with Java 1.6

eclipse/java server faces- how to configure a facets project for jsf 2.1

I am trying to create a JSF 2.1 Project in Eclipse Java EE IDE.
In one screen, Eclipse asks for JSF Implementation Libary- here I have defined JSF 2.1.10 as a JSF Implementation Library- with the JAR files
jsf-api-2.1.10.jar
and
jsf-impl-2.1.10.jar.
However after adding the above implementation library, I get the following error message in the same screen of Eclipse IDE--
Required class javax.faces.FactoryFinder does not exist in selected libraries.
I even added Apache MyFaces Core 2.1.8 and Mojarra 2.1.10, but the above error message refuses to go away... What am I missing here?
How do I configure and set up a JSF 2.1 project correctly in Eclipse Java EE IDE?
Thanks...
This is my solution:
*Eclipse Juno
You should click JaveServerfaces tag of your eclipse Project Facet when creating your project.See this

How to install Web Dynamic Module in Eclipse?

How can I install Web Dynamic Module 2.2, 2.3, 2.4 or 2.5?
The version I have installed is 3.0.
I am trying to add Axis2 to my java project (in project Facets) and I am getting error that
Web Dynamic Module 2.2, 2.3, 2.4 or 2.5 is required.
I can't find any instructions on how to install this.
Thanks
UPDATE
Never mind, there is little dropdown next to Dynamic Web Module 3.0 in Project Facets that allows me to change version to different one...
click right click on project -> properties -> project facets -> click on link then change dynamic web module part as your requirement.

Problems configuring JSF 2.0 on Eclipse Indigo

I'm developing a web application with JSF 2.0 on the IDE Eclipse Indigo (the last version).
But on Project ->Properties -> Project Facets, the option JavaServer Faces is configured on version 1.2 and when I try to change the version to 2.0, an error message apears
Cannot change version of project facet JavaServer Faces to 2.0.
Strangely, the JSF libaries in my project are all the 2.0 version.
I think this is the problem that is causing my pages not to show simple xhtml tags like <h:outputLabel> and <h:inputText>.
The JSF libraries that I'm using was obtained on the Mojarra project 2.0.6
Hope someone could help me
Thanks in advance
This is an Eclipse quirk. See also Eclipse bug 201792 which is never been fixed.
The only way to change the JSF Facet version is by editing the following line of the /.settings/org.eclipse.wst.common.project.facet.core.xml file
<installed facet="jst.jsf" version="1.2"/>
to
<installed facet="jst.jsf" version="2.0"/>
Other than that, you can also just ignore it altogether. Changing the version of that facet really doesn't do any new magic for you anyway. The final WAR build still contains the JSF 2.0 libs and if you have redeclared <faces-config> root declaration of /WEB-INF/faces-config.xml file to comply JSF 2.0, then there should be no problems. If you still encounter problems with using Facelets (XHTML files, as you say yourself), then you should ask a new and more specific question about that here.

Not able to Create a JSF Project in new Eclipse Indigo M6a Java EE using JBOSS Tools 3.3.o M1

I have followed the below link to install and configure JBOSS Tools in Eclipse Indigo to work on a JSF project
http://planet.jboss.org/post/jboss_tools_milestone_for_eclipse_3_7_m6_indigo
Steps i followed.
1.Installed Eclipse
2.Configured Proxy
3.Loaded the Urls as specified in above link
however many of the packages fails during installation and i cant see a JSF project in the new project list.
What could be wrong here?. Please help me with some pointers.
You're reading an outdated tutorial. Eclipse Indigo was already finalized a few weeks after that tutorial was written. Even more, it's already in SR1 stage. You can download it here. Finally, you can try to install the JBoss tools through the following URL:
http://download.jboss.org/jbosstools/updates/development/indigo/
It works at least for me.
Please note that you do not necessarily need JBoss Tools in order to be able to create a JSF project. It's already built in Eclipse for Java EE. Just create a new Dynamic Web Project. JSF is available as one of the project facets which is configureable in the Configuration option of the 1st step of the Dynamic Web Project wizard.
The JBoss Tools is just an additional plugin which eases JSF development with several additional (autocomplete) wizards.
See also:
JSF 2.0 tutorial with Eclipse and Glassfish - contains a lot of helpful screenshots

Categories