Configure sysdeo tomcat plugin in eclipse - java

I have created a dynamic web application in eclipse helios i have install sysdeo tomcat plugin how to run my application using sysdeo plugin what are the setting needed please help me

BalusC: Just a note about why you might want to use Sysdeo. To the best of my knowledge, Sysdeo is still the only free way to hot-swap Java classes (not just JSPs) while using Tomcat inside Eclipse. There is JRebel and myEclipse, but neither of these are free.

I would try the steps listed in the article: Setting up the Sysdeo Tomcat Plug-in. They worked for me when I was figuring out how to configure things.

Related

JBoss EAP 6.0 in Eclipse (Kepler): How do you run a custom script at startup?

I have a project that runs in JBoss EAP 6.0. However, it currently requires that a custom script (.bat) is run at startup.
This is possible in IntelliJ. When settings up a Run/Debug Configuration, a tab is provided titled "Startup/Connection" in which a "Startup script" can be targeted.
Eclipse is my preferred IDE but it does not appear to have this option. I have tried several things without any results.
I know in Eclipse, you can select which JBoss config file you choose to run on the Server view after you create a new Server config.
Alternatively, you can modify JBoss running scipt which will call your custom script.
Go to Eclipse Marketplace and try installing Jboss Tools and you should be able to start server and whole lot of other options.
Go to Help> Eclipse Marketplace and search "Jboss tools" and install the appropriate for your version of eclipse.

How to install jetty with eclipse on Mac

I am a newbie w.r.t. jetty and RESTful API's.
I want to create REST services using Jetty and wants to use embedded jetty with eclipse.
Can anyone suggest me any HowTo for installing Jetty/ Jetty plugins with Eclipse in Mac OS.
Regards,
If you're looking for an Eclipse plugin that will allow you to start your web app in Jetty via the Debug/Run menus, you may want to take a look at the run-jetty-run plugin.
If you happen to be using Maven, there's a Maven plugin you can use to start your app in Jetty as well. This can be configured to run via a launcher in Eclipse or can be launched via the command line.
Edit - Added more info about the jetty-maven-plugin:
If you're just talking about local development, then you don't have to download Jetty separately for use with the Maven plugin. The Maven plugin handles the download of the dependencies that you need by simply running mvn jetty:run. This will start your web app in Jetty (by default) at http://localhost:8080. If you use this, then there's really no need for the Eclipse plugin, either. As far as versions go, these are the available versions. I'd recommend sticking with a fairly recent version unless you have a need to use an older version of Jetty (it looks like the most recent version is a release candidate--8.0.0.RC0).
There's also an example of usage in a project on Github that I just found, but you may want to update the plugin version used.

How can I see the new web application option in Eclipse

I just installed Eclipse at home, so I can program servlets. But it seems that I don't have the new Web applciation option, and many others.
Anyone knows what's the problem ? I install it first in Program Files then on C:\. Still the same problem.
Btw, I am using Windows XP, with Eclipse Helios Service Release 2.
Did you download the version that includes WTP (Web Tools Platform). If not you will have to add the appropriate features.
Which version of Eclipse did you download? There are several different distributions (Eclipse Classic, Eclipse for Java Developers, etc.). You should make sure you downloaded the "Eclipse IDE for Java EE Developers".
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr2
To program servlets you need Eclipse for Java EE developers, and DON'T forget a server like Apache Tomcat, or Glassfish, which I guess are not included with the original package of eclipse.
Personally I have manage to install Tomcat separately from Eclipse and then link it with the IDE. There are plenty of tutorials on youtube:
http://www.youtube.com/watch?v=IX8xb-suzVg
http://www.youtube.com/watch?v=EOkN5IPoJVs

does sysdeo tomcat plugin for eclipse add value to helios?

am developing a simple web app using jsps and servlets for tomcat 5.5.
Currently using the Eclipse Helios and Dynamic Web Application Project.
For some reason it is a nightmare. We spent 4 hours today trying to deploy a servlet to tomcat. We kept getting errors like
"java.lang.UnsupportedClassVersionError: Bad version number in .class file"
we played around with everything trying to set the build compatibility to what tomcat had but couldn't make the stupid thing work. (Yes it is possible we're incompetent. any suggestions on what we can try looking at are apprecieated)
My friend recalls from long time ago that he used this plugin
eclipsetotale_tomcatPlugin
in order to create a "tomcat project". My question is, does sysdeo tomcat plugin add any features that aren't already available in helios?
thanks
Not sure about sysdeo, but your error seems similar to bug 116713:
If your default JRE is set to 1.4.2 and you have a Web project targetting
Tomcat 5.5 (dynamic Web module version 2.4 and Java 5.0), when you tried to run
a main program, you'll get the error (you mention).
What is your default JRE set for your project?
This scenario happens when the JVM running the code is older than the one the compiler generated code for.
Have you considered simply running Tomcat under Java 6? If that is not an option, please edit your question to include this and any other restrictions on this project.
We used to get that error often when we had Java version issues. Eclipse environment and Windows environment (java_home and path variables typically) are easy to overlook.
Also, you can use javap -v Foo in same directory as Foo.class to find out its version.
Just use the Eclipse IDE for Java EE Developers, 206 MB edition of Eclipse. It has Tomcat and other webserver support built-in by default. Works like a charm!
Sysdeo is an old, as far as I know obsolete, plugin.

Having hard time to publish files to Tomcat from Eclipse

Sorry if my question seems dumb. I've started using Eclipse Ganymede 3.4 this week and having hard time publishing my projects to the web app server.
First of all you need to know this issue:
i installed my Tomcat 6.0.18 from Netbeans that i use for PHP and J2SE project. While i can start that server from either Netbeans or Eclipse, it can not start manually for some reason even though i setup my JAVA_HOME correctly pointing to jdk/bin it's saying it's a jre. it a bit weird but i can use the IDE to get going. i did some research on the net and find out that eclipse doesn't publish to tomcat.
In fact i always develop by having a local copy on other drive than C where XP is installed and publish to a server installed on C.
So where i need to find a way to publish to Tomcat under C.
It there any simple way to do that?
Please share your experience.
Thanks for reading
Ps : i know that i can use Netbeans but i'ld like to use Eclipse and use its wysiwyg
thanks!
WTP (Web Tools Platform) should get you what you need. It's a set of Eclipse plugins which includes a one to start/stop/debug Tomcat and publish to a local Tomcat installation.
http://www.eclipse.org/webtools/
You can download a version of Eclipse that already includes WTP: Eclipse IDE for Java EE Developers.
I admit this is not the best practice for a general case, but in my local development environment I created a separate Tomcat environment and I simply store the project itself in this Tomcat's webapps directory. This way the 'deployment' is implicit and instant.
Of course when I need to do changes in the code which cannot be incrementally added during a debug session, I have to restart the Tomcat.

Categories