How to configure jetty in eclipse? - java

I found this tutorial that makes my case.
But the problem is that I can not configure Eclipse to use jetty.
I imported the libraries in eclipse, but it always fails in some import.
Who can help me with simple steps to follow?
I need to integrate some servers? (For example tomcat)
Excuse me, but it is my first encounter with websocket and java, and not know where to start
thank you very much
This is a screenshot of my problem

Jetty 7 is EOL (End of Life), consider upgrading to a stable and supported version of Jetty.
org.eclipse.jetty.websocket.api is not present in Jetty 7.
That was introduced in Jetty 9.
Use Jetty 9.4.3.v20170317

Related

Is there a way to deploy DropWizard in JBoss?

Is there a way to deploy DropWizard in JBoss? We are required to use JBoss anyway but don't want to miss out trying DropWizard. Came to know about wiztowar but current DropWizard version 0.7.1 (which is tailored to support JDK 7+ and likely to be supported in future) does not seem to have equivalent in wiztowar, whose last version is suited only for DropWizard 0.6.2? Is there a way out?
Thanks,
Padmanabhan
Have a look at https://github.com/rvs-fluid-it/dw-jar-to-war. The project is in its early stages. But it is already working on Tomcat 7 and Weblogic 12c. The DropWizard version is 0.8. Feel free to test it on JBoss. I welcome feedback.

Beginner in Apache ServiceMix

Hello everyone,
I started few days ago Apache ServiceMix and i cant find any good tutorial.
I have a project in java and now i want to run it in ServiceMix and i dont know how to do it?
I want to know too how to connect two services, first service start and another take somethink from this first?
Please help me it is very important to me.
My java project are in REST or SOAP and they are very easy to write: HelloWorld or take values and display result.
I m using: Apache ServiceMix 5.1.2, Java 8, 1.8 JDK, maven.
The good Tutorial i found is ServiceMix Tutorial
Here are 2 examples, one JBI and one OSGI, that you can use to start you first SOAP web-service and deploy it in ServiceMix.
JBI: http://cis.ait.asia/course_offerings/49/servicemix_tutorial_4
I actually made the above example work and then I switched from ant to maven. If you try it and encounter any kind of problems I would be happy to help you. Please keep in mind that JBI is kind of obsolete.
OSGI: http://www.jakubkorab.net/2012/02/developing-web-services-in-servicemix.html
Here you will find 3 examples, one plain CXF and two with Apache Camel. The packaging is OSGI instead of JBI.

Managed bean not called in Icemobile

I am new to Icemobile, but since it promises fast development on mobile devices I gave it a shot. I use Netbeans for development, Netbeans 7.1 on one PC and Netbeans 7.3 on another.
The problem is that with Netbeans 7.1, a managed bean is not called on post back. It is constructed and getters are called on the initial GET page. On Netbeans 7.3 this is OK.
I later found that in Netbeans 7.1, the JSF library is JSF 2.1 with jsf-api.jar and jsf-impl.jar , whereas in Netbeans 7.3, it is JSF 2.2 javax.faces.jar. I substituted this jar in the Netbeans 7.1 machine and problem solved.
I think icesoft.org should state this caveat in http://www.icesoft.org/java/projects/ICEmobile/supported-platforms.jsf. Here it only says JSF 2 Mojarra.
Also although the web site states Tomcat 7 is required, I found Tomcat 6 is OK so far (although some functionalities may not be supported on Tomcat 6)
I don't believe that we've done any specific testing with ICEmobile with Mojarra 2.2. I would recommend sticking with Mojarra 2.1 for now. Despite the version the NetBeans version is defaulting to, you can override that just by including the javax.faces.jar in the WEB-INF/lib folder so that it's always included in the war file. As for Tomcat, I don't believe that we say that Tomcat 7 is required. We actually support a very wide range of application servers. Check out our supported platforms page (http://www.icesoft.org/java/projects/ICEmobile/supported-platforms.jsf).
The issue you were having with managed beans not being called sounds strange, and I would guess that it's more likely due to JSF configuration than ICEmobile. We'd be happy to take a look at your app and configuration.
Thanks,
Philip
In addition to posting your app, which version of the ICEfaces Netbeans plugin are you using? http://www.icesoft.org/java/downloads/icefaces-downloads.jsf.
What are the exact version numbers of the Mojarra jars you've been using for both 2.1 and 2.2?

How risky if I develop on Weblogic 10.x and deploy to Weblogic9.2.x?

Recently I took over a relative old project, which is running on weblogic 9.2. I need work on some change requests. I don't know much about weblogic product.
The old DEV-Env is windows based, however I dont have a windows machine. I tried to download Weblogic9.2 for linux (32bits), however I cannot find the link on Oracle website, after quite a lot google, still no working link found.
So the options for me:
find out a working link, download weblogic9.2 and work with it
download and use the 10.x version from oracle
setup a windows box (we have the installer of weblogic9.2 for win)
the 3 is the last thing I want to do. If someone knows where can I get the 9.2 version, it would be great. If there is no weblogic9.2 available, can I work on weblogic10.x and release to 9.2 in production? how risky is it?
Developing in WLS 10.x and deploying in 9.2 may cause some trouble.
There are quite a no of features which have been upgraded in 10.x, such as Java 5 to 6, J2EE 1.4 to 5, Servlet 2.4 to 2.5, JSP 2.0 to 2.1, EJB 2.1 to 3.0.
While most of the features here do have backward compatibility, you have to be extra careful when you develop.
I would suggest to develop based on the lowest common denominator features only, and build on the same server you are deploying it to. (i.e. 10.x has a diff build, and 9.2.x has different one.)
EDIT: There seems to be a authentic binary available on PeopleSoft's FTP site.
It's definitely a risk. Different versions of Weblogic use different jars, so what works on 10.x may not work on 9.x. It's a good practice to have your QA and PROD environments as similar as possible including node setup and startup variables.
If your current PROD deployed code works on 10.x then I would upgrade your PROD environment to 10.x and continue your development on 10.x. If not then do what you can to have 9.x on your DEV environment as well.

Tomcat7 Alternative

I have never used something different than tomcat. For my current university project I programmed a WebApplication with JSF and Java EE 6. I have to hand it in installed on a VM with Ubuntu OS.
My fellow student told me that Tomcat7 is not released for Ubuntu (or is it?) and tomcat 6 doesn't provide Java EE 6 capabilities.
So I want to ask you if there is an appropriate alternative? Maybe something that doesn't have to require a lot of induction for a tomcat user.
Thank you for your help
I don't think Tomcat is release for anything.
They just put out a release, and V7.0 (I think as of 7.0.6) has now been declared production ready.
So just create your VM with Ubuntu, install Java, download Tomcat, unzip the bundle and install your application.
try the new Jboss, it`s really easy to use, almost the same from tomcat, and they should have for ubuntu( the new version) because they are from red hat too!
EDIT:
To clarify my statement before, Jboss it`s as easy as tomcat to deploy a simple J2EE app.
Glassfish is a well-known free open-source Java application server, but it's a bit more full featured than Tomcat and thus potentially more complicated (it has a full Java EE stack).
Jetty is more like Tomcat in that it's primarily a servlet container, you can take a look at that as well. Some projects (such as Grails) have switched from using Jetty to Tomcat for various reasons, but it may work for your needs.
I would go with Jetty, which damn fast and light.
But it does not support Java EE natively.
What are good alternatives? Glassfish/JBoss.

Categories