Websphere 6.1 editor window in Eclipse/MyEclipse - eclipse

It was possible to double click the websphere server connector in server tab in eclipse/myeclipse to get the server editor window. But now when I do, I can not bring the editor window up. Is this feature removed or do I need to set the correct perspective. I am using MyEclipse Java perspective. Editor window allowed me to change ports and enable/disable security. Please help.

You may be thinking of the Web Tools Platform (WTP) from eclipse. MyEclipse integrates much of the functionality of WTP but has a different way of configuring and deploying to servers. The MyEclipse servers view tab is called "Servers", the WTP servers view tab is called "WTP Servers". Double clicking on a server in WTP Servers will bring up an editor window of the type you describe. In the MyEclipse Servers view, you can bring up the configuration dialog by right clicking on the server and selecting "Configure Server Connector".
In base MyEclipse, you don't have the option of setting ports and security from the server connector, for WebSphere. However, if you switch to the Blue Edition of MyEclipse (more money, though), you do get more extensive configuration capability for WebSphere. I'm not sure what options you have in base MyEclipse; if you can find VM arguments (setting system properties) that provide what you want, you can set these on the JDK page of the configuration screens or, if there are program arguments that can be set, these can be added via a launch configuration, which you can create from the server connector configuration pages (and can modify them by going to the Run Configurations (which can also be reached by right clicking on the server in the Servers view).
Hope this helps. For better support, the MyEclipse forums (on their web site) are your best option.

Related

How to set publishing path of a WSO2 server in Eclipse

After installing a WSO2 server in Eclipse I can open an overview of the server where I can see and set the publishing interval, timeouts, launch configuration etc.
For a TOMCAT I can also specify the deployment path and much more. For a WSO2/Carbon server I can only see General Information (like launch configuration), Ports, Publishing (intervals), Timeouts and Other.
Is there a way to see more like I can see for a TOMCAT?
This is not supported right now as eclipse overview is the only way to view/specify the above for WSO2 components.

Netbeans and apache tomcat

Is there a direct way to deploy a netbeans project, where springframe work has been used, in apache tomcat server?
Yes. All you need to do is to register the server and make it the default server for your project.
From the NetBeans online help:
Registering a Server
Before you can deploy an enterprise application, web application, JSP file, servlet, or EJB module, the server to which you are going to deploy needs to be registered with the IDE.
To register an external server:
Choose Tools > Servers in the main menu.
In the Server Manager, click Add Server.
The Add Server wizard appears and displays the types of servers that are compatible with the IDE.
In the dialog box, select the type of server you want to register and click Next.
Specify the server-specific information in the panels that follow and click Finish.
Changing the Target Server
Each project has a target server. The target server is the server that is used when the project is run. You can set the target server to any server which has been registered in the IDE.
To change the target server:
Right-click the project node in the Projects window and choose Properties.
Select Run in the Project Properties dialog box.
Select the new target server from the Server drop-down menu and click OK.

Tomcat issues inside eclipse

I am very new to Tomcat and web development in general and apologize for what may be a very silly question.
Consider 2 situations:
1.
I start Tomcat outside of Eclipse.
I use eclipse to create a war file.
I deploy it via admin console.
All is ok
2.
I start Tomcat via Eclipse
I can't access admin console
http://localhost:8080/manager/html greets me with 404 error
Same page is behaving properly when Tomcat is started outside of Eclipse
Please advise
Why might the issue be?
Why might the issue be?
You need to configure Eclipse to take control of your Tomcat installation. To do so:
double click on the Tomcat Server in the Servers view
under Server Locations, select Use Tomcat installation
This is illustrated on the screenshot below:
Eclipse creates a new Tomcat configuration separate to your Tomcat installation, in the 'Servers' project. This allows Eclipse to deploy webapps without interfering with anything you've done in your installation (via the manager app or by editing config files manually).
You can reconfigure Eclipse so that it uses the config from your Tomcat installation (see Pascal's answer), or to re-enable the manager app - but read the WTP Tomcat FAQ first as there are good reasons for it working the way it does. I don't recall ever needing to do this - the 'Servers' tab in Eclipse lets you deploy/start/stop/debug/configure apps as required.

How to redeploy the web app using the Eclipse IDE

Im new to Eclipse. I use Tomcat as my run time server, but every time I modified the jsp pages, Eclipse was still displaying the older one. Just wondering how to redeploy the application so the changes can be reflected.
Eclipse: Eclipse IDE for Java EE Developers 1.2.1.20090918-0703
Tomcat: Tomcat 6.0
Thanks
Doubleclick the server instance in question in the Servers view to open its configuration. Now, in the right top you should see a section called Publishing. Open it to verify and configure autopublishing settings.
Eclipse should do that automatically for you.
Otherwise, on the Servers view (Menu Window->Show View->Servers), you can right click on your Tomcat instance and hit "Publish" or "Restart"
Make sure you have the "JST Server Adapters" ("Web, XML and Java EE Development category") feature installed.
Eclipse's publishing functionality requries the project to be a "web project", and in some cases requires additional configurations.
Go to Windows > Preferences > Server > Runtime environments and add your tomcat
Either try using publishing, or (better I think) use the FileSync plugin. There you can tell which folders from your project should be copied (live) to what directory on your machine (the tomcat/webapps/yourapp). With a little more effort the filesync configuration can be made machine independent (only using one parameter as TOMCAT_ROOT), in case you want to check-in the project to a repository where others will use it.
Get the Tomcat plugin. It was nice because you can install Tomcat on your system and then associate your web app with that instance of Tomcat. The plugin will let you stop/start Tomcat and define a server such that when you do a build it knows how to deploy the changes. There may be some newer plugin but the Tomcat plugin worked for me and was fairly simple to install and use. Here is a page from IBM on using Eclipse and Tomcat. Inside that page it points you to the following: http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/

Setting up Spring and Tomcat in eclipse?

I am having some trouble getting Spring and Tomcat up and running and recognized by eclipse. I have looked around on google with no luck. Specifically, I am having trouble having eclipse recognize tomcat (I am running linux, and when I browse to the relevant jar file in the runtime environments configuration, eclipse wont allow me to select it). Could somebody please point me to (or describe here) how to get Spring and Tomcat working properly in eclipse and possible provide a "Hello World" example so I can test my first Spring application? Thank you very much.
Have a look at the Spring Tools Suite - essentially Eclipse with Spring specific extensions.
You must have WTP (Web Tools Platform). It is bundled in the Java EE version of Eclipse
Go to Window -> Preferences -> Server -> Runtime environment and click "add"
Choose and setup your server following the wizard
When finished, Go to Window > Show view > Other and locate Servers
It will appear in the bottom panel. Now you can double-click it to set some options of your preference
Right click your project > Debug > Debug on server (The project must be a "web project")
It's generally this. There might be some troubles in the last step, but use google or the link given by Chris for that.
Not familiar with Spring, but here's a link that helped me get Tomcat up and running in Eclipse:
http://www.windofkeltia.com/j2ee/wtp-tutorial.html
you can try eclipse web tools platform for doing this.
You can go to your project then choose
Debug As --> Debug On Server
I think the server adapter for tomcat is installed by default.
You can download the Java EE Distribution Of Eclipse to have this functionality out of the box.