I would like to add network server to local eclipse if possible..So that hot deployment will work fine..
Personally, I've always used Rational Application Developer which comes with this support built-in. From playing around some, I've found this is not the case for Eclipse. I found that you need to do two things before you can deploy applications to a remote WebSphere Application Server with Eclipse:
Install the WebSphere Developer Tools for Eclipse
Install a WebSphere Application Server instance on your local workstation (you don't need a profile)
Here is information on how to add WDT to Eclipse: https://www.ibm.com/support/knowledgecenter/en/was_beta_devtools/com.ibm.websphere.wdt.doc/topics/t_install_wdt_sdk.htm
In summary:
Go to the Eclipse marketplace: Help > Eclipse Marketplace...
Enter 'wdt' in the find field
Search for the WDT that matches your partner. For instance, I'm using Eclipse Oxygen and WAS 8.5, so I chose IBM WebSphere Application Server V8.5x Developer Tools for Oxygen
Click Install
After you've installed WDT that matches your partner application server, you have to go one step farther and also install WebSphere on the local machine. Why, I don't know. It won't create the remote server if you don't do that. When installing WebSphere, be sure that the Java version that you install matches the Java version that you have installed on your partner.
After you have installed WDT into Eclipse and WebSphere onto your workstation, to add the remote application server, do the following in your eclipse workspace:
Window > Show view > servers
Right click in the servers pane > New > Server
Expand IBM, then select the WebSphere application server version that matches your partner server (for example, WebSphere Application Server traditional V8.5)
In the server's hostname field, enter the fully-qualified hostname or ipaddress of your remote server machine.
Click Next
For installation directory, enter the fully-qualified name for your local application server directory. For example, c:\was85512_base\WebSphere\AppServer
Click Next
Check RMI and SOAP and enter your RMI and SOAP ports
If security is enabled on your server, check the 'Security is enabled on this server' box, then enter your admin username and password.
Click Next
Fill out this next page as you like. (I always uncheck the 'Enable the server to start remotely' box because I don't like letting Eclipse control my app server)
Click Finish
I was able to do this using Eclipse Oxygen. I have Indigo, Juno, Kepler, Luna, and Neon. I started with one of those (I can't remember which; probably an old one) and I was unable to get the WDT installed. I got the WDT installed on another one, but I wasn't having success, but that was before I figured out that you absolutely had to have a local WAS image.
Besides my move to Oxygen, I ran into the following problems:
I put on a WebSphere install image with the wrong Java version. I had to install another one and create a new server runtime.
java.security.cert.CertPathValidatorException: The certificate issued by CN=wsx6, OU=Root Certificate, OU=wsx6Cell, OU=wsx6Node is not trusted; internal cause is:, java.security.cert.CertPathValidatorException: Certificate chaining error. This is bananas because this is a self-signed certificate. I went back and checked the server definition and security is enabled on this server was somehow unchecked. I re-checked it and made sure that automatically trust server certificate during SSL handshake was checked.
If you mess up, you can create new WebSphere runtime environments in Eclipse:
Window > Preferences > Runtime Environments > Add > IBM
Choose the Application Server version. You should have one listed for each WDT you have installed.
Enter your local installation directory (so Eclipse can find tools)
Finish
If you have more than one WebSphere runtime environment, make sure that you choose the correct matching one when creating your remote server.
I've used remote application servers in an assembly tool for a long time; I understand the appeal of it. I like to do it because it keeps the memory-intensive application server off of the Eclipse machine. Deploying apps is way faster this way.
Related
I am new to Intellij ide and i'm having issues running Glassfish 5 or any previous version on Intellij 2017 2.4.
After selecting New Project > Java Enterprise > Web Application i had to specify the application server, to which i selected the folder of glassfish 5, jdk is set to 1.8 and java ee to 7. So far so good, no errors and the project gets created. Then i have a greyed "play" icon next to GlassFish 5.0.0 in the upper right of the corner that says that i have to configure it, i click Edit Configurations and the Run/Debug Configurations opens up
Everything seems fine and when i click the "play" green button to start the server and run the project i have projectName:war exploded under Deployment and
[2017-09-26 08:47:57,836] Artifact testfornew:war exploded: Waiting for server connection to start artifact deployment...
Detected server admin port: 4848
Detected server http port: 8080
Exception in thread "main" java.lang.NullPointerException
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(AbstractModulesRegistryImpl.java:152)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(AbstractModulesRegistryImpl.java:144)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:218)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:224)
at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceLocator(StaticModulesRegistry.java:88)
at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContainer.java:217)
at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContainer.java:255)
at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:231)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:371)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:306)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:57)
Under output. Coming from Netbeans setting glassfish up was pretty straightforward, i've checked a couple of solutions online including this but they don't seem to work for me.
I was having the same problem and I found that it is caused by an issue with the JDK software. So the NullPointerException thrown at AsadminMain.java:57 can be solved by checking your system variables (PATH, JAVA_HOME). Be sure that they reference to an acceptable JDK supported by your GlassFish version. GlassFish 5.0 is certified to work with java sdk 8u144 as mentioned HERE: https://javaee.github.io/glassfish/doc/5.0/release-notes.pdf.
Be aware, the path may also contain a reference to an old SDK directory.
If you need more help, please post the results of calling echo %PATH% on your cmd.
In my case JDK 1.8.0_152 must be installed, path and java_home variables have to be configured AND JDK 9.X must be uninstalled. Without uninstall, the error persist.
Uninstall Java 9, stay with the version 8 update 162 and the jdk8. When you unistall the Java 9 your system variables (PATH, JAVA_HOME=C:\ProgramData\Oracle\Java\javapath) will update the 3 jar (java, javaw, javaws) in this path to Java version 8.
war exploded: Waiting for server connection to start artifact deployment...
Detected server admin port: 4848
Detected server http port: 8080
....
Assuming that you are certain that JDK has set well in your environment variables and you are using jdk 8 or lower-Well I read somewhere that java9 has issues with such configurations, maybe the issue has been solve but for my case I chose to avoid for now.
Download and extract GlassFish of your version. For my case I'm
using GlassFish 5.181.O on Intellij 2018.1 ultimate version
Start Intellij, and before opening any project, or rather close all projects that are open.
Click on configure, then settings. A new window will appear as shown below. I have marked the steps you need to follow in the image. I will also add some explanation here.
Under Application Servers, click on the + shown as step 2 on the image, here you need to specify you glassfish server, the folder where you extracted to.
Next, click on + shown in step 3 on the image to add the server modules.
Assuming all is a success upto this point, select all choices of as shown in step 4 on the image, apply changes and Ok.
I will explain about creating a new project because I'm not sure how you would handle an existing project but I guess you can use concepts here to figure out what you need to tweak.Create your new java ee or whatever application you are working on,
As shown on figure 2, assuming you are creating a Java EE app, Click on Java Enterprise, then check/tick Web Application and JSF
Under libraries, use library from Glassfish ... Installation didn't help much because I got null pointer exceptions., so I used Download as shown in figure 2. Click next and finish.
Automatically you will see GlassFish added to the project, run it from the IDE.
Edit
If you had done all of the above and still get some error like Null Pointer Exceptions. Do what #Jailson Evora says: Clear your systems from java 9 and install java 8 and make sure when you issue java -version on command line, the output is java 8
I had to uninstall both jdk9 and jdk10 and set my java_home back to jdk8_181
I have installed JDK and Tomcat 8 on the server. Now I need to install ORDS and connect it to Tomcat. I went through various documentation and downloaded ORDS on the server. Now I have a couple of questions as all this stuff is new to me and documentation is not very clear most of the time.
There is java.exe in the directory to which I installed JDK and there is java.exe in the directory where all the ORDS files are unzipped. Does it matter which one I use to run the installation?
java -jar ords.war standalone --port 8090
Now my second question is do I run standalone ORDS installation and specify port 8090 and then copy ords.war file into Tomcat diirectory Tomcat/webapp and make sure Tomcat is running and it will install ords on its own? That's where I am confused...
My third question is how do I check if ORDS has been installed correctly? Would going to http://localhost:8090/ords suffice?
P.S. Oracle database installed on another server, I have all the passwords, hostname, port, and service name. APEX is also installed on another server.
Appex is the old name for ORDS. After the ORDS version 3.x you don't need to install apex.
ORDS 3.0 is able to deploy WITHOUT Application Express. It has its own database schema now.
Answers for your questions:
It doesn't matter. But make sure it is java 7+. You can instead install java globally and just run: java -jar ords.war command. You can follow this tutorial to install java on your machine: https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html
When you run java -jar ords.war command then at this stage it starts installation of ORDS on your system. Before installation it asks for the oracle server hostname, oracle port, SID, and sysdba username and password to connect. Once you provide all the details and the type of installation you want, then it starts installation to the specific database server. Your tomcat/WLS/glassfish server will act as a rest endpoint between the database server and the clients.
Once installed ORDS on your database, if you right click on your connection in SQL Developer then you can see the Rest Service options. And yes the other way is like you mentioned: http:<host-name>:<port-name>/<schema-alias>/<object-alias>/ and see the result.
If you want to know the detail architecture, I would suggest to follow this oracle document: http://www.oracle.com/technetwork/developer-tools/rest-data-services/overview/index.html
I have recently installed the ORDS in production environment successfully. Actually there are two ways you can install ORDS:
Standalone mode:
Using sql developer you can easily configure the standalone mode: http://www.thatjeffsmith.com/archive/2015/04/deploying-oracle-rest-data-services-from-oracle-sql-developer/
But if you would like to use the terminal you can use the following steps:
https://oracle-base.com/articles/misc/oracle-rest-data-services-ords-standalone-mode
Advanced mode:
https://oracle-base.com/articles/misc/oracle-rest-data-services-ords-3-installation-on-tomcat-7.
In the advanced mode ORDS supports Tomcat, WebLogic, and Glassfish application servers
When to use which:
Use Advanced Mode for production
Use Standalone Mode for Development and Testing. You can use Advanced Mode for development and testing but since the standalone mode is quite easy for installation, it is recommended one.
For querying:
http://www.toadworld.com/platforms/oracle/w/wiki/11471.more-oracle-rest-data-services-features
https://svgonugu.com/2015/11/21/adf-bc-rest-services-i/
Note: If your database is PDB you could have some problem installing it and there are some tricks to solve it depending on the problem. Please let me know I would love to answer.
when adding a jboss-eap-6.4 version server in Eclipse luna, i added the below home directory.
D:\jboss-eap-6.4.0\jboss-eap-6.4:
which contains all the subfolders (bin, bundles, docs, domain,modules, standalone etc).
But I am getting error : 'User must select a valid configuration'
If I am starting the server using command prompt it's happening properly.
D:\jboss-eap-6.4.0\jboss-eap-6.4\bin>standalone.bat -c standalone-full.xml
I am using jre6 in eclipse
Please advice.
I just had this problem, clicked in JBoss Community, JBoss AS 6.x and got the same error. Clicking in Download and install runtime... and it only gave me 6.0 and 6.1 option.
Then I returned to the Define a new server and, instead of JBoss Community, chose Red Hat JBoss Middleware and proceed to chose JBoss Enterprise Application Platform 6.x and voilĂ .
I had same issue and resolved the same by using following steps:
1) Open server view
2) right-click, new -> Server
3) Expand the "Red Hat JBoss Middleware" category and select the "JBoss Enterprise Application Platform 6.1+" server type.
4) Click 'next'
5) Keep the server marked as "Local" and controlled by "Filesystem and Shell Operations"
6) click next
7) Fill in the runtime's home directory, specifically, point to your unzipped eap6.3 folder.
Does anyone know how to get Cruise Control's CCTray to connect to a Jenkins Https CI Server instance running on Openshift? The URL I want to connect to is in the form : https://jenkins-rhcloud.com/cc.xml
I have read the responses here (using CCtray with Jenkins, while security enabled (using HTTPS)) about adding a transport extension to CCTray and have tried building and deploying jenkins transport dll as per the instructions. I built it in visual studio 2012 express and deployed to c:\program files\cctray\extensions and restarted cctay (version 1.8), but on restart it doesn't allow the jenkins plugin to be selected in the transport extension drop down? CCtray doesn't seem to know the trasport extension exists even though its deployed in the place according to the instructions! Does anyone have any ideas?
From experience (and having just got this working!) the .net version for the JenkinsTransport.DLL build cannot be of a higher version than the CCTray install.
CCTray tries to load all DLLs in \extension and swallows any exception arising. A .net 3.5 built of JenkinsTransport.DLL doesn't work (not selectable) with CCTray 1.8.0.0 but does work against CCTray 1.8.4.0.
I'm having trouble installing Tomcat on my windows XP machine. I already have Apache and JDK 6 installed, what I need to know is:
Which file to download from the Lastest Tomcat download page
And how to install it so I can run the sample web app by going to http://localhost/
In my C:\Program Files\Java folder, I see the following folders, this should give you an idea of whether I need any additional stuff installed:
jdk1.6.0_10
jre1.6.0_04
jre1.6.0_06
jre1.6.0_07
jre6
Thanks.
Tomcat 6 doesn't really need the full JDK and it runs with Java 1.5 as well, so Java wise you should be well off. Just make sure that JAVA_HOME environment variable is set.
You can either get the core zip or tar.gz file, or the Windows Service installer file.
Core zip file:
http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.zip
Just unzip it and run bin/startup.bat. If you'd like to install it as a Windows service (and get the "usual" program entry in Windows add/remove programs) you can get the Windows Service Installer file instead:
http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.exe
By default tomcat listens to port 8080, so to check out the sample apps you need to go to http://localhost:8080/examples/. You can change the default port by editing server.xml in the conf directory.
I'm not sure what that URL is that you provided ("CGI" seems strange from a J2EE site), but the download links for tomcat are on its home page: http://tomcat.apache.org/
You should probably download version 6, particularly if you're using it for personal development. The older versions are available and maintained primarily to support users who don't want to migrate J2EE versions.
Finally: unless you are already using Apache, don't bother with it. Most commercial sites use Apache as a front-end because of its configurability (particularly URL rewriting). If you're just looking to develop web apps, Tomcat will act as web server in addition to servlet/JSP container.
Installation instructions (as well as all other instructions) are here:http://tomcat.apache.org/tomcat-6.0-doc/index.html
If you haven't done any J2EE development before, you'll need some docs on it. The Sun Tutorial is OK, but targeted to the Sun app-server and covers a lot of XML that isn't really necessary. Look at the intro chapters on web apps, then jump to chapter 11: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
From the download page you should download the "Windows Service Installer" package.
As for the rest of the install process, follow just "Step 3: install Tomcat" described in the following page:
http://mircwiki.rsna.org/index.php?title=New_Installation_Instructions
Not a complete answer, but an add-on (how does Stack Overflow handle this?):
For a Windows (XP, Vista, 7) install, you can choose (from the options listed at http://tomcat.apache.org/download-60.cgi):
.zip (pick according to your Windows version)
Windows Service Installer
Now the difference between the top two options:
.zip -- This is a manual install, where you extract the .zip and move it into whatever folder you wish. It does not install Tomcat as a service. It does not "do" anything unless you manually do something with it or have another program use it. It is a manual setup.
Windows Service Installer -- This is a self-installer, just run the .exe. It installs Tomcat as a Windows Service, which if you load up your Windows services (run "services.msc"), you'll see it listed as "Apache Tomcat 6.0 Tomcat6". During the install it will ask you certain setup questions like.
If you choose "Windows Service Installer", here are the default settings the install will ask you:
Type of install: Normal
Server Shutdown Port: 8005
HTTP/1.1 Connector Port: 8080
AJP/1.3 Connector Port: 8009
Windows Service Name: Tomcat6
Create shortcuts for all users: disabled (not that this matters if it's your machine)
Tomcat Administration Login - User Name: blank
Tomcat Administration Login - Password: blank
Tomcat Administration Login - Roles: manager-gui
Path of a Java SE 5.0 or later JRE installed on your system: C:\Program Files\Java\jre7 (if you are running Java SE 7)
Destination (install) folder: C:\Program Files\Apache Software Foundation\Tomcat 6.0
Hope this helps.