Can't run Java EE project through WildFly 10 - java

When I unzip the wildfly-10.1.0.Final.zip file on my computer at home. Then WildFly starts running automatically. I had verified this through going to localhost:8080. Because of this I can't run my Java EE project on Netbeans (I have added WildFly as server in Netbeans). In the logs I see:
Address localhost: 8080 is already in use
I also can't shutdown WildFly through the following command:
$ ./jboss-cli.sh --connect command=:shutdown
However I can shutdown WildFly by killing his process. But this still doesn't fixed my issue on Netbeans. Because I still get to see: Address localhost: 8080 is already in use.
At my work when I had unzipped the wildfly-10.1.0.Final.zip file. It didn't start automatically I also had no problems with running my project on WildFly. And I also can shutdown WildFly through the command line or Netbeans.
Anyone that maybe knows how I can fix my WildFly server problem on my computer at home?

Which version of NetBeans are you using ? Until 8.2 WildFly 10 isn't correctly identified.
You may try NetBeans 8.2 RC1 from https://netbeans.org/community/releases/82/ or a nightly build as this would fix your issue.
NetBeans checks if there the instance is already running before trying to start it, so you don't have to start it beforehand but you can :)

Related

Java Web app failed to start on Tomcat 9 with Netbeans 11 on Mac OSX Sierra

I have an issue with Netbeans 11 and Tomcat 9 on Mac OSX Sierra (10.11.2)
I've a Java Web Application (non-maven project) and I'm not able to deploy the WAR into the running Tomcat.
After several minutes an error is raised in console:
/build-impl.xml:1092: Deployment error: Starting of Tomcat failed.
I'm using Oracle JDK 1.8
I've searched for this kind of issue and found other people struggling with the same error so I've tried the suggested solutions but nothing have worked
I've changed the config in order to have "No proxy" setting
I've also tried with Tomcat 8 and Tomcat 7 but same error occurs.
I've added the server attribute to the Tomcat connector as metioned here: Starting of Tomcat failed from Netbeans
but nothing works.
For the sake of completeness I say that the Tomcat starts correctly because respond on localhost:8080 (I can see the admin page).
I've also copied the WAR into the webapps folder and file was correctly uncompressed and the Web application, in this way, is correctly running.
It's seems that Netbeans is not aware of Tomcat start so deploy is not performed.
Thanks in advance and sorry for my english.

Eclipse Tomcat server does not start

Situation: I installed JRE 8, and configured Tomcat 8.5 on my Eclipse Neon.3 Release (4.6.3).
Problem : I added a project and the server console shows server start-up in 41935 ms. But the background process keeps showing "Starting...." This is shown in the ScreenShot below.
Later, the server stops because it times out. Please help me resolve this.
I don't know how this worked, but merely restarting the PC and cleaning Eclipse's Tomcat server solved this issue.
Also, if at any point of time there is a Security alert asking permission to allow Java to access Public or Private networks, check all the boxes.
This can happen if already an instance of Tomcat server is running on the port(default is 8080). Kindly run below command in command prompt
netstat -ano
to list down the list of process and the port they acquire that are running currently and see if there a process running on the Port that your tomcat server is trying to acquire.
If yes, kill it and run the server again
had the same problem with Tomcat 7 (Liferay server), seems to be a compatibility bug in eclipse, I had to change to a lower version of eclipse.

Application running on wrong apache Tomcat server

I created an application on Eclipse, locally on my PC. Once it was working I created a war file and deployed it to my Linux server. Now the problem is that the application is still running on my local Tomcat. I am not sure why this is happening.
Is there any place I can look to find the cause of this issue?
I created this application in JSP/servlet.
Your query looks invalid , application can keep on running on your local PC and server both , its about which one you access i.e. which url you use in browser.
To stop the application from running on your pc there are a lot of thing you can do to stop it.
If you are running windows and tomcat is installed as a service then you can stop the Apache Tomcat service by opening services.msc
You can also uninstall tomcat using $CATALINA_HOME/uninstall.exe
You can also access the tomcat's manager application and un-deploy your application. To do this go to http://localhost:port/manager/html. Enter the credentials you used during installation to log in. Find the application from the list there and stop it.
You might check the running java vm by jvisualvm on your OS(with GUI). Or check the current running processes both in PC and linux server.
If you have not stopped the application running locally it will continue to run till you stop the tomcat server. Application can be packaged into a war file while tomcat is running.
If you have started the tomcat with in eclipse, use "Server" view in eclipse to stop the tomcat. If you have started tomcat via command line, you can use shutdown.sh or shutdown.cmd to stop the tomcat.

Tomcat Server does not start from the command line

I used Eclipse EE luna. I couldn't start the tomcat7 server from inside eclipse while i can start it from cmd.It gave Server Tomcat v7.0 Server at localhost failed to start. error.I tried all the answers here but none of them helped me. Then i deleted my eclipse EE luna and downloaded juno package.
Here is the problem : This time i can start tomcat server from inside the eclipse and everything works fine, however, after stopping server from eclipse, i can't start it from cmd(My opinion is startup.bat thinks that server is still running and cancels the process).Therefore I can't deploy my projects under \tomcat7path\webapps\, just running it from eclipse.(It also runs from web browser. Actually this is an another question. How can it run from browser while "myproject" doesn't exist under \tomcat7path\webapps\ directory.)
I am stuck on this, any help would be appreciated.
More informaton: I am developing servlets using eclipse ee juno, on tomcat-7.0.55
Ok, i have solved the problem, finally. I removed JAVA_HOME and JRE_HOME environment variables, then opened a new command line window and started tomcat. It gave "Neither the JAVA_HOME nor the JRE_HOME environment variable is defined.At least one of these environment variable is needed to run this program" error.After redefining JAVA_HOME, i started a new cmd and tried again. This time it worked.

Eclipse cannot shutdown BEA WebLogic server

I am using Eclipse Galileo and I have the BEA WebLogic Server v.10 installed.
The problem that I am facing is that the server cannot be stopped anymore(running in debug mode).
For example it shows the progress bar of stopping until 93% and after that it gives the message "The server cannot be stopped within timeout."; I can only restart eclipse in order to start again the server.
In the console I see the message:
"C:/bea1001/jrockit_150_11/bin/java -classpath C:/bea1001/wlserver_10.0/server/lib/weblogic.jar weblogic.Admin -url t3://localhost:80 -username weblogic -password 12345678 FORCESHUTDOWN AdminServer
Server "AdminServer" was force shutdown successfully ..." -
But it seems that something is blocking to stop the server.
Can anyone tell me what I can do?
p.s. I tried to delete and create a new server in the eclipse but I still have the same problem
Thanks and regards,
Luisa
I have found the problem: I changed the port of the BEA WebLogic to be 80 and this port was used also by Skype.
I changed the port of the Skype and now the server stops
Luisa
I've had the same problem and another solution may be to start Eclipse with java command (in my case Weblogic was running as java.exe, but Eclipse as javaw.exe). Also check if the same version of JDK is used for running both Weblogic and Eclipse.

Categories