Deploying a Jax-WS application locally - HTTP Status 404 - java

I have setup a local server running in eclipse. It is to run my max-ws application which I have been making.
Once the server has started i can proceed to the following directory to view the management console;
> http://localhost:8080/
The name of my war file is hotornotserver.war - so assuming i deploy the war in the management console i should then be able to proceed to the following directory to view the wsdl.
> http://localhost:8080/hotornotserver?wsdl
As it stands when i do this i get the following error;
HTTP Status 404 - /hotornotserver
type Status report
message /hotornotserver
description The requested resource (/hotornotserver) is not available.
JBoss Web/7.0.1.Final
Baically i am interested in finding out how I can call methods on my local web service to perform some analysis on metrics / performance however I keep getting the error above. Some help would be much appreciated.
Thanks

Related

Google App Engine (GAE) - Flexible Environment - Jetty Issue

After using mvn appengine:deploy, we receive a BUILD SUCCESSFUL message... but when you navigate to the URL... the following message is received:
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:
/ ---> o.e.j.w.WebAppContext#4566e5bd{/,file:///var/lib/jetty/webapps/root/,UNAVAILABLE}{/root.war} [failed]
Powered by Jetty:// 9.4.5.v20170502
I almost feel like the WAR is being deployed to the wrong directory on the AppEngine, causing Jetty to not be able to locate. Any ideas?
It turns out Jetty requires two configuration files (web.xml and applicationContext.xml), web.xml defines the DispatcherServlet and it's configuration location, applicationContext.xml indicates that spring should use component-scanning and annotation-driven configuration.

WebLogic: Unrecognized Callback

After migrating my JAVA EE app. (Spring Web model-view-controller (MVC) framework) from Ant to Maven I am getting this message while starting my app by WebLogic Server Version: 12.1.2.0.0
Error 403--Forbidden
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.4 403 Forbidden
The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable
I've extracted an ear that is working with the new ear that is not working and I don't see any differences. Only a folder (jsp_servlet) that is not present in the new ear
..\myApp\myAppWeb\WEB-INF\classes\jsp_servlet
I went to the console http://localhost:7001/console and login.
I invokeed the test page for the application using the console with the same result
/wls-cat/index.jsp (Classloader Analysis Tool on server myserver)
I see this error in the server logs
javax.security.auth.callback.UnsupportedCallbackException: Unrecognized Callback
at weblogic.management.mbeanservers.internal.JMXAuthenticator$JMXCallbackHandler.handle(JMXAuthenticator.java:135)
at com.bea.common.security.internal.service.CallbackHandlerWrapper.handle(CallbackHandlerWrapper.java:76)
at weblogic.security.service.internal.WLSJAASLoginServiceImpl$CallbackHandlerWrapper.handle(WLSJAASLoginServiceImpl.java:154)
at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:947)
at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:944)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:943)
If you didn't change anything except ant conf file to mvn pom, make sure you clean the project and build that one more time from mvn command. I will suggest to use gradle for migration, because mvn and ant are slightly different. In gradle you can combine the both functionalities.

can't start my first app on struts2

I'm new in java web apps. Do this example: http://www.tutorialspoint.com/struts_2/struts_examples.htm
But can't start it in browser. Tomcat is properly working and shows me it's start page for localhost:8080. When I do
localhost:8080/HelloWorldStruts2/index.jsp
request as it shown in the example I see only :
HTTP Status 404 - /HelloWorldStruts2/index.jsp
type Status report
message /HelloWorldStruts2/index.jsp
description The requested resource is not available.
Apache Tomcat/8.0.20
Please help to solve the problem.
Did it deploy the HelloWorldStruts2 module properly?
I suggest you check Tomcat logs (located in tomcat home -> logs) to see if an exception happened while deploying the Struts app.

Infrequent error appearing in spring application running under a JBoss AS 7.0.2

I've been experiencing an odd issue with an application written with the Spring Framework, running under a JBoss AS 7.0.2 server with an Apache+Siteminder frontend.
13:43:22,053 WARN [org.springframework.web.servlet.PageNotFound] (ajp--141.231.2.111-8009-5) No mapping found for HTTP request with URI [/bosh/service/al28/atun/] in DispatcherServlet with name 'BoshServlet'
The error appears every now and then(it would seem that it's always the same URI, but I'm not 100% sure), resulting in a 500 Internal Server Error for the user currently using the application. Restarting both the application server and the httpd server makes it go away.
Any ideas?
Regards,
David

"Error invoking method check" when deploying a WAR on Tomcat

When I deploy my WAR generated with Ant on my local system (copy/paste under /webapps), everything works fine.
The thing is, when I deploy the WAR on a remote server for test purposes, I got this error message:
There was an error thrown by Tomcat during deployment: "Error invoking method check". This however may not mean that you application failed to deploy. Please check the status in the application list
But the application is not deployed at all.
I have to use Probe (lambaprobe.org) to manage and deploy applications on Tomcat on the remote server I'm talking. And I don't have access to the filesystem, only probe.
Any idea would be much appreciated!
Thanks
I often encountered this problem and after checking the log this was caused by an OutOfMemoryError with tomcat
Impossible to check the log... We managed to restart tomcat and it works now.
Weird.
Thank you anyway!
Check the log files of tomcat; they contain the full error message.
If you can't access them easily, write a small webapp which allows you to browse and/or download the logs and deploy that.

Categories

Resources