Eclipse project imported into Netbeans
Import issues:
Unsupported classpath container found. It will be ignored and you may need to update the NetBeans project classpath by hand.
The internal name of this container is:
'org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER'
An existing NetBeans project was found and will be used istead.
Clean & Build: build success
Run (IE browser):
http://localhost:8080/MyServletFilter-0.0.1-SNAPSHOT/
The website declined to show this webpage
HTTP 403
WildFly Application Server
I'm wondering:
Can the import issues be the reason of the problem I'm complaining about? (HTTP 403 The website declined to show this webpage)
"An existing NetBeans project was found and will be used istead." Does that mean the project was not actually an Eclipse project?
Anyway iy should be an Eclipse project since .project and .classpath files are both in the project folder
The website declined to show this webpage HTTP 403 Is there a solution?
Any help will be highly appreciated
You seem to have a very specific question, since only few people will try to automatically convert an Eclipse project for use in Netbeans. I also never went that path so cannot tell about that issue.
But if you get a 403 it means that Wildfly is running and it also deployed the application successfully (otherwise you would get a connection refused or a 404 not found response in your client). So for some reason Wildfly or the application decided to respond with 403 not authorized.
Therefore try to check three locations:
declarative security in web.xml
declarative security in standalone.xml (or whichever other configuration file you may be running)
the application code, which may also check authorization and decide to respond with 403
If you believe everything is configured right and still get that response, reconfigure JBoss logging to be extremely verbose and drill down from here.
Related
I am taking over an old colleague's code and he used JHipster to build a Maven-Spring-Angular project.
I am able to compile, package his code and I used a simple Chrome Web Server (plugin), point it at the project's "target" folder which contains all the web components (i.e. assets, bower_components, META-INF, WEB-INF, etc) and his code, a dashboard can run successfully on the Chrome Web Server.
Problem is, all API calls to the Java back-end are failing.
IMAGE: API calls 404 error
IMAGE: Sample endpoint, api/data
Am I missing any steps when trying to run the project locally on my PC?
Will update the answer in details soon but just want to share the solution.
Chrome Web Server is not a proper Servlet Container hence Spring wasn't able to start. Since Spring did not start, requests to the endpoints could not be handled.
I developed a very simple web service using eclipse for edit the code and tomcat 8.5 for deploy the web service. The Name of maven project is PruebaMaven and I can deploy that with success getting the classic hello world.
My problem is that when I want to access an a method associate to localhost:8080/PruebaMaven/Services/Login/Validate, the tomcat response is HTTP 404 - Not found
The method that I want to access is a POST type, so I'm expecting that the response of the tomcat server be a HTTP 405.
I dont know if my thinking is correct or im wrong and the response of tomcat is apropiate. In the case that my thinking is correct, somebody know where is my issue?
I have installed STS on my windows machine.
When I opened STS and started creating a spring starter project I am getting the the following error saying like
IOException: Server returned HTTP response code: 403 for URL https://spring.io/
this wizard used a web services and need internet access.
I tried accessing this URL from my web browser and I was able to access it.
I even checked my Java Network setting and they are set to browser settings and I am using internet on my local machine without any restriction.
In older version of Liferay this was set in the control panel.
This manifests as a problem where we make the HTTPS connection to application, but Application start executed, but the browser to load unprotected data, which the browser reports as an error.
Can I use this (Switch - relocate) for (changing from HTTP to HTTPS)?
My Local application opening in HTTP. I need to migrating to HTTPS URL.
How can I use properties file to configure. ex: relocate http://ab.qa.app.us/ https://ab.qa.app.us/?
If I understand the question correctly and this issue is targeted to your local lifeary bundle, you will need to do the following steps to configure HTTPS on Tomcat and Liferay. Please clarify if you have already done these steps and still running into issues:
Enable HTTPS with a self-signed certificate on Tomcat (follow steps in the Liferay wiki article below)
Add the following property to the portal-ext.properties file.
company.security.auth.requires.https=true
Please refer to the article for more information: How to configure HTTPS in Liferay
I have recently downloading Tomcat 6 and switch the eclipse I was using to the EE edition.I am having trouble getting eclipse to run the JPA project, and I keeping getting the error message HTTP 404. When I open a web browser and type in http://localhost/8080/ I get the tomcat 6 info page so I think the server does work eclipse cannot connect to it.
I have going into the preferences and and made sure the path to the server in the directory was correct..
If you're using "your own" instance of tomcat you must specify the location in the server configuration view. Take a look at the screenshot :
My instance is located at C:\TOMCT. Hope that helps