JOptionPane.showMessageDialog is not working on tomcat - joptionpane

JOptionPane.showMessageDialog is not working on tomcat however it is working on eclipse on same machine. Please suggest the resolution.

Related

Cannot install weblogic

I am trying to install weblogic on one of my local environment.
But when trying to install the weblogic application, it said java.exe or javaw.exe has stopped working
and the program crashes. Any idea on how to fix above issue?
Below is the java path in Weblogic folder
C:\bea\jdk131_14\bin
Thanks
Weblogic server does not support Java 13.
You must use Java 8 (or 7) with WebLogic server 12c.

Cannot deploy properly a WAR in tomcat 8.5/ubuntu 18.04 with tomcat manager

In ubuntu since 18.04, deploying an application using tomcat manager html (with "standard" tomcat8 and tomca8-admin packages installed) using "Deploy directory or WAR file located on server" does not seem to work anymore.
Only the war is deployed in the given context, but without its configuration set in "XML Configuration file URL:", the context file is not copied anymore in /var/lib/tomcat8/conf/Catalina/localhost
It is working with ubuntu 16.04. It is not working with 18.04 and 18.10.
Do I missed some steps in tomcat configuration to have manager working in ubuntu 18.04 ?
I created a bug report with a simple project attached to reproduce the issue:

XAMPP tomcat service is not starting with error as "Tomcat Started/Stopped with errors, return code: 1"

I have installed XAMPP 7.2.10 on my Win 10 and other services like Apache and MySQL are working fine.
But the Tomcat service is not starting and is throwing an error as:
"Tomcat Started/Stopped with errors, return code: 1,
Make sure you have Java JDK or JRE installed and the required ports are free,
Check the "/xampp/tomcat/logs" folder for more information"
XAMPP Tomcat error image
I have installed Java JDK in "C:\Program Files\Java" and have set the environment variables path.
I have set the "JAVA_HOME" variable path as "C:\Program Files\Java\jdk-10.0.2"
Also, no other program is using the required ports.
When I run the "catalina_start.bat", I get error as:
"ERROR: The system was unable to find the specified registry key or value.
. [XAMPP]: Cannot find current JDK installation!
. [XAMPP]: Cannot set JAVA_HOME. Aborting ..."
What mistakes have I made here?
I had the same problem (XAMPP 7.3.0 / Windows Server 2016 / Java 11). I first checked the environment variables, the java installation - all seemed to be fine.
Sadly the XAMPP error message is not very meaningful, so i looked inside of tomcat installation. To my surprise XAMPP 7.3.0 uses a very old version of Apache Tomcat (7.0.56 from 2014!), that don’t work well with Java 9+. The reason is Tomcat 7.0.56 uses the "-Djava.endorsed.dirs" option, that is no longer supported in Java 9+. Up-to-date Tomcat versions have no problem with java 9+. To solve this you can just stay with Java 8 (if possible for you) or try to fix this on your own by modify Tomcat start-up: Go to your \xampp\tomcat\ folder and see this fix in Tomcat 7.0.73 doesn't work with java 9.
But i would recommend you to install a up-to-date version of tomcat and don’t use the XAMPP one (what i finally did) - at least until XAMPP updates there tomcat version .

Can't launch JBoss7 from Eclipse Indigo

I can't figure out where I am going wrong. I have Eclipse Indigo, JBoss 7.1, JBoss Tools installed. I have this configuration working on my Windows7 64-bit system. I am attempting to set up a co-worker's Windows XP 32-bit machine with the same configuration but am not able to get the server to launch. I have configured the server but when I attempt to start the server, I get an error indicating that it was unable to start the server but there is no specific error listed.
I am able to start JBoss from the command prompt using the standalone.bat file.
I am able to configure the standalone.xml file from within Eclipse. I have confirmed this by checking the file in the standalone/configuration directory.
When I attempt to publish the project from within Eclipse, it does not publish.
Nothing gets written to server.log
The startup parameters match what I have on my computer.
I can't figure out what I am missing. Any suggestions would be appreciated!
Edit:
I have done some more checking. I am able to publish to the server and I am able to start the server (with the published application) fine from the command prompt. That part works. When I attempt to start the server from within Eclipse it gives me "Server JBoss 7.1 Runtime Server failed to start." It never writes anything to the console tab in Eclipse either so I can't tell why it is failing to start.
Also in the Servers tab, there is an entry called "Server Details". When I expand that entry, it says "Not Connected".
The answer to my problem is that Eclipse had be configured to use the java JDK, not the JRE. As soon as I switched over to use the JDK it started working fine. For some reason JBoss will start under 64-bit windows with the JRE but under 32-bit you need to use the JDK. I found the answer here: https://community.jboss.org/thread/169097

Where can I find Glassfish logs on Windows 7?

I can't find the Glassfish logs on windows 7. I would've expected a /glassfish/logs folder, but having searched the glassfish directory I don't see them.
It's inside /glassfish/domains/[domainname]/logs where [domainname] is the server domain name, which defaults to domain1.
Webnet are you running Glassfish from Netbeans?
I had the same problem expecting to find glassfish logs in C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\logs
I ended up finding them here:
D:\Users\myusername\.netbeans\7.0\config\GF3\domain1\logs
I installed glassfish along with netbeans and run it from within that ide. So it looks like because I am running within Netbeans it redirects the logs to that location.
If virtualization is being performed, try:
C:\Users\(user)\AppData\Local\VirtualStore\glassfish\logs