Using Web Application created with Netbeans in Tomcat? - web-services

Sorry I newbie.
How to use Web Application ( with Web Services) created with Netbeans in my Tomcat that was manually installed?
I want to use my WA in my Tomcat (this tomcat wasn't installed with Netbeans).
My Tomcat is 8.0.3 version...
My Netbeans is:
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: Updates available to version NetBeans 8.0 Patch 2
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
I was following http://docs.huihoo.com/netbeans/6.0/kb/60/websvc/jax-ws.html.
I decided to use this old version because this link (newer version) https://netbeans.org/kb/docs/websvc/jax-ws.html is oriented to Glassfish.
Now I want to test my Web Services in Tomcat, I was thinking that I need to copy my folder named: CalculatorWSApplication to webapps\ROOT tomcat's folder, trying to do smothing like:
IPofMyHost:8080/CalculatorWSApplication/
or
IPofMyHost:8080/CalculatorWSApplication/CalculatorWS
I'm very lost

you can tell netebans you have tomcat (menu->tools->server->add server...)
and then configure you project to run with tomcat (project->properties->run->server...)
Or, after building you app in netbeans, just copy the .war file to the tomcat "webapps" folder.
Tomcat will do the deploy for you.

Related

spring boot 2 on VPS can't be accessed

I have an App that made using Spring Boot 2.
I use Undertow as my embedded web server.
My VPS OS is Ubuntu 14.04 lts, and Java 8 has already installed off course along side with Maven.
After my App.jar has successfully generated by mvn clean install then i move fat jar to my VPS.
when i run java -jar App.jar it perfectly works.
but when i access using IP there is nothing to show from browser.
This issue has been solved already, it was just missing some configuration on server side :)

Does cfhttp for coldfusion 10 only supports up to TLS 1.0?

Does cfhttp for coldfusion 10 only supports up to tls 1.0?
When I disable tls 1.0 in the web server only allowed 1.1 and higher it seems to break the scheduled tasks.
CF 10 with JRE 1.6
The problem is with the Java version you are using, not CF10.
TLS 1.1 is only supported in Java 1.8 on CF10 (Oddly 1.7 and above in CF11)
See this Adobe Blog as a starting guide to updating your Java.
http://blogs.coldfusion.com/post.cfm/how-to-change-upgrade-jdk-version-of-coldfusion-server
Using ColdFusion administrator console.
Download the latest minor version of the supported JDK or Server JRE.
Install the JDK or Server JRE.
Navigate to ColdFusion Administrator > Server Settings >
Java and JVM section.
Browse the path to the JDK or Server JRE from
the “Java Virtual Machine Path” textbox which you intended to use with
ColdFusion.
Click “Submit Changes”. Restart the ColdFusion Application
service.
By changing the JDK or Server JRE path from the jvm.config file.
Download the latest minor version of the supported JDK or Server JRE.
Install the JDK or Server JRE.
Open jvm.config file located at
\cfusion\bin.
Change the value of java.home to the
JDK or Server JRE path. [For example: C:\Program
Files\Java\jdk1.8.0_25\jre or C:/Program
Files/Java/jdk1.8.0_25/jre]
Save the changes to the jvm.config file.
Restart the ColdFusion Application service.
You will require Update 14 and above if you want to install Java 1.8 on CF10

Cloud Foundry Java Applications on Windows Stack using Diego

I have a windows 2012 server stack on cloud foundry.
I am trying to push a Java application(.war package) to this stack using Diego plugin.
The logs says that server started properly , but when i hit the application URL, I get a 404 error.
The same package works perfectly fine on linux stack.
Any help appreciated
At the present time, Windows support is for running Windows apps.
1.) ASP .NET MVC (12-factor ASP.NET MVC apps compiled against .NET 3.5+ were tested most extensively)
2.) Windows-compiled executables
3.) Batch scripts (with a manually specified start command)
https://github.com/cloudfoundry-incubator/diego-windows-msi/blob/master/docs/RELEASE-NOTES.md#supported-applications---known-to-work
Build packs will continue to run apps on Linux.

Jetty 6 from Debain packages with Oracle Java

i try to install jetty from the Debian (wheezy) packages. But instead of default Openjdk i installed Oracle Java.
Download tar.gz. and build a deb package
(https://wiki.debian.org/Java/Sun or http://www.webstimme.de/2013/02/05/linux-java-unter-debian-wheezy-installieren-anleitung/)
$java -v
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Afterwards i istalled jetty with apt-get, but it also installes the packages
openjdk-6-jre-headless openjdk-6-jre-lib
so Java is then
java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
I will give it a second try with installing the Oracle Java version 1.6.
Any Experiences with installing the jetty package repo and use an Oracle Java, will this ever works?
Edit:
It's possible with Oracle Java 6 (1.6) but not with Oracle Java 7 (1.7)
I tried to run it with Oracle Java because of potential better performance for Solr. I somebody has knowledge about the difference in perfomance with Open JDK and Oracle Java it would be nice to post it here :) Thanks
Edit:
I was wrong. It runs also with Oracle JDK 7.
Just download and extract it e.g. to /opt/Oracle_Java and put the path in the /etc/default/jetty as JAVA_HOME
JAVA_HOME="/opt/Oracle_Java"
Which jre is used by default is controlled by alternatives system. Use the command update-java-alternatives -l to list which JREs are installed and then use update-java-alternatives -sto choose which JRE to use.
I have two JDKs on my machine:
# update-java-alternatives -l
j2sdk1.6-oracle 315 /usr/lib/jvm/j2sdk1.6-oracle
jdk-7-oracle-x64 317 /usr/lib/jvm/jdk-7-oracle-x64
To use jdk-7 as my default JDK I would run update-java-alternatives -s jdk-7-oracle-x64
It is possible to run Jetty 6 from Debian or Ubuntu package repository with Oracle Java 6 and Oracle Java 7.

How to deploy the Web service in to tomcat 7 from out side of eclipse juno?

i am very new to web services and i have one problem please suggest me .. i.e i have a WSDL(SOAP) file and with that i created the Web Service-server and web service-Client using Top-Down approach with JAX-WS in eclipse Juno Java EE. i integrated the Tomcat 7 with that Eclipse and from eclipse its working fine.
But my problem is i need to run the Tomcat from out side of the eclipse and i need to deploy the web service in to the tomcat. i don't want to run the Tomcat using eclipse? i just need to run the client from eclipse but i dont want to run the tomcat from eclipse. Please Help me.
File -> Export -> Web -> War (configure where to create it)
Deploying a tomcat application consist of building a war file then deploying it. We call this servlet.
Building the WAR
As you already have your server code, you should now complet the WEB-INF/web.xml file. This file describe the path of your servlet(your server code), on the tomcat server. Depending of your framework you can have some configuration to add in your META-INF/context.xml file.
In an eclipse project, thoses file are generaly under a directory name 'webapp' in your project. (src/main/webapp for a maven project).
First you must use the javaee & javaweb tools of eclipse to build a war file that contains all yours libs, files, class and web.xml
Alternativly you can use a maven build process to get a war, if you use maven.
Deploying the war
After installing tomcat, the deployement is as simple as drop the .war file is deploy directory of the home-directory of tomcat. Then your application is usable on default port 8080.
If you have install also the manager webapp of tomcat, you can see all yours currently deployed application in the manager http://myurl:8080/manager/html.
When you install tomcat, let be sure that your eclipse pseudo server is shutdown, or your tomcat server will have problem to get it's port and startup.