When launching the application from STS, the application works fine and I can access everything.
But once I create a jar file using mvn clean install, and then deploying this on an aws ec2 I get the following error :
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this
as a fallback.
Thu Sep 14 08:46:01 UTC 2017
There was an unexpected error (type=Internal Server Error, status=500).
Exception parsing document
Any reason why it would show this ?
Thank you
Related
We are trying to create Java MQ light publisher and subscriber to IBM MQ 8.0.0.5 AMQP topic
We run the script /opt/mqm/amqp/samples/SampleMQM.sh to create Queue Manager, Start AMQP service, Start a channel on port 5672Java MQ Light Git Repository
We are getting error starting default AMQP service SYSTEM.AMQP.SERVICE
9/23/20 10:19:04.511 AMQXR0005I: Running
com.ibm.mq.MQXRService.RunMQXRService version null.
AMQCO2005I: Formatter stopped at:10:19:04 AM GMT Wednesday, September
23, 2020
AMQCO2004I: Formatter started at:10:19:04 AM GMT Wednesday, September
23, 2020
9/23/20 10:19:04.523 AMQUT0007I: The java.util.logging configuration
is now set to
/var/mqm/qmgrs/AMQP_SAMPLE_QM/./amqp/amqptraceOff.properties.
9/23/20 10:19:07.227 AMQCO2001E: An error (probe: XR063017) occurred
and a Failure Data Capture (FDC) file has been written to file
'/var/mqm/errors/AMQP5.FDC'.
9/23/20 10:19:07.229 AMQXR0008E: Exception during start up of MQXR
service: java.lang.NoClassDefFoundError:
com/ibm/mq/headers/pcf/PCFMessageAgent
com.ibm.mq.headers.jar
com.ibm.mq.pcf.jar
com.ibm.mq.commonservices.jar
are present in classpath
Additional errors are
09/23/20 13:15:14 - Process(5142.1) User(root) Program(amqzmgr0)
Host(ccxluf02) Installation(Installation1)
VRMF(8.0.0.5) QMgr(AMQP_SAMPLE_QM)
AMQ5028: The Server 'SYSTEM.AMQP.SERVICE' has started.
ProcessId(24163).
EXPLANATION: The Server process has started. ACTION: None.
-------------------------------------------------------------------------------
09/23/20 13:15:16 - Process(24190.1) User(mqm) Program(java)
Host(ccxluf02) Installation(Installation1)
VRMF(8.0.0.5) QMgr(AMQP_SAMPLE_QM)
AMQ6175: The system could not dynamically load the shared library
'/opt/mqm/lib64/amqzfud'. The system returned error message 'ld.so.1:
java: fatal: relocation error: file /opt/mqm/lib64/amqzfud: symbol
CSCtrl: referenced symbol not found'.
EXPLANATION: This message applies to UNIX systems. The shared library
'/opt/mqm/lib64/amqzfud' failed to load correctly due to a problem
with the library. ACTION: Check the file access permissions and that
the file has not been corrupted.
----- amqxufnx.c : 1436 -------------------------------------------------------
09/23/20 13:15:18 - Process(5142.1) User(root) Program(amqzmgr0)
Host(ccxluf02) Installation(Installation1)
VRMF(8.0.0.5) QMgr(AMQP_SAMPLE_QM)
AMQ5029: The Server 'SYSTEM.AMQP.SERVICE' has ended. ProcessId(24163).
EXPLANATION: The Server process has ended. ACTION: None.
So i was making a vertx verticle for java, when i run it in intellij it seems to start, but when i make a shadowjar and launch it on my ubuntu server i get this:
INFO: Failed to bind on port: 8000
May 23, 2020 3:23:11 PM io.vertx.core.impl.DeploymentManager
SEVERE: Failed to start http server
io.vertx.core.impl.NoStackTraceThrowable: Failed to start http server
It used to work normally before but i can't figure out what this means.
I have been using shadowjar to deploy this for weeks before, it gives no errors in intellij and this error gives zero information...
I made a .war file that prints strings to the console when I run in cmd
java -jar print.war
However, when I deploy this .war file to tomcat 8 by copying the file into the webapps folder:
C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps
I get this error whenever I go to http://localhost:8080/print
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Dec 19 14:36:59 CST 2016
There was an unexpected error (type=Not Found, status=404).
No message available
Does that mean my deployment failed? Or is there something wrong with my .war file?
Thanks.
In order to process http request you need to specify a class that extends javax.servlet.http.HttpServlet and provide a deployment descriptor to let your servlet container know where should it delegate specific request.
If those terms are new to you, visit: https://www.tutorialspoint.com/servlets/ for more informations.
I start working on older Spring application and when I start it, it produces such log messages (~100 messages):
2015-02-10 15:53:11,757 INFO
[org.springframework.context.annotation.AnnotationConfigApplicationContext:510]
- Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext#50533643:
startup date [Tue Feb 10 15:53:11 CET 2015]; root of context hierarchy
And terminates with this exception:
Exception in thread "main" java.lang.NoClassDefFoundError:
org.springframework.beans.FatalBeanException
I am running it in IntelliJ IDEA and I use Maven for dependency management.
It never happed before - what could be wrong?
I recommend to build it again with maven and build a new IDEA project. This problem is a dependency issue.
To build:
mvn clean install
and to create new IDEA project
mvn idea:clean idea:idea
I have deployed a web app including an EJB (RESTFul web service) from Netbwans 8 into Glassfish 4. This includes a cross origin resource sharing filter. I am getting the "HTTP Status 500 - Internal Server Error" error in the browser when i try to view the output of the web service (directly from the web service path, not from a client per se). I saw in a forum that i might try un-checking a Jersey option in my project properties in Netbeans but i see no such option. The only thing I've found in the logs is:
Info: WELD-000900 2.0.0 (SP1)
Warning: Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled
Warning: Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled
Info: Registering the Jersey servlet application, named com.mycompany.enterprisesample.service.ApplicationConfig, at the servlet mapping /webresources/*, with the Application class of the same name.
Aug 21, 2014 11:31:10 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Aug 21, 2014 11:31:10 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime#5c8edb94 in service registry.
Add
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
line of code in the domain.xml file at glassfish4\glassfish\domains\domain1\config\domain.xml folder
inside <java-config> </java-config> tag as :-
<java-config>
.
.
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
</java-config>
Note:- add the above line of code at the last of the –D..... code of the domain.xml file. Adding it at random position may not gurantee that this will work.