My ubuntu crashed and I started to setup all the development environment again.I imported my project from github. Adjusted project facets from Eclipse project properties to Dynamic Web module 3.0, Glassfish web extensions 3.1, Java, Javascript and JPA 2.0. My glassfish server 3.1 is started and running.localhost:8080 shows the server is running. My project is also added to server configuration. When I right click one of html pages and select run as -> run on server nothing happens. No error message or non started html page in the browser.
What could be the problem? Any help would be appreciated. Thanks.
I started a new dynamic web project with same project facet details and noticed glassfish-web.xml file under web content -> web-inf
In my previous project I had sun-web.xml and web.xml files and after copying the glassfish-web.xml file under same folder html page started to opened with browser.
Related
I just installed Eclipse and Tomcat 8 to work on a shared project, that I got from bitbucket/sourcetree.
But when I add the project to the Tomcat 8 server, I get 404 status.
I tried creating a new dynamic web project and made a test.html in WebContent, added it to the server and it worked.
What can be the reason that one projects works in my server, but the other one does not?
Check the shared project Targeted Runtimes. It could be set to another version of Tomcat.
Project -> Properties-> Targeted Runtimes
I am creating a Static Web Project using Eclipse Juno Service Release 2.
My problem is that I have an HTML file (very simple, created automatically with Eclipse with HTML5 template) in this project and I would run it in an external browser (for example, Chrome) using as Server JBoss 7.1.
I have already configured properly JBoss in Eclipse, I can run/stop it without problems.
I have configured as Web Browser Chrome.
I don't know how run the single html file in my localhost:8080.
Someone can help me?
If you have created the project then you would have to deploy it.
Refer to http://www.mastertheboss.com/eclipse/jboss-eclipse/jboss-and-eclipse?showall=&start=1 which describes how to deploy an application.
And your URL to the file would be http://localhost:8080/yourProjectName/htmlFileName
Example: http://localhost:8080/TestApp/index.html
I am creating a gwt application as following steps:
First install gwt plugin in my eclipse(Helios).
Create GWT project
Add Dynamic web plugin
going to property page of the project
project Facets tab
Select Dynamic Web Module and java
ok to apply changes.
Write code
and i try to run on server tomcat7 then it shows resources not available.But when i run as internal server of gwt as just right clicking on project and selecting run as web application.
then it run successfully. so please help to run my application on tomcat server.
Thanks
Rahul
Did you Compile your Application? (GWT Compile Project)
You can then run this Ant buildfile and deploy the WAR file on your Tomcat Server.
I have run a j2ee application in tomcat/eclipse for several months now, but suddenly (after working with changed in the css files), I get the server error:
The requested resource /appname/ is not available. I'm totally lost. I've gone through a number of posts. This one describes my problem: Eclipse is not detecting servlet libraries, but I've gone through everything in that post without finding any missing jars or servers or anything in my project.
I'm running Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 1.
Project -> Properties -> Server shows Tomcat v6.0 Server at localhost
Project -> Build path, please see attached screen dump.
Project -> Project Facets: Dynamic Web Module 2.5 and Java 1.6 is checked.
I have tried to clean and rebuild the project.
I'm running over https so I'm connecting to https://localhost:8443/appname/Start. I'm not sure if that could be the problem, but it has worked ok until now.
Can anyone give me a hint what can be wrong?
Finally got it working again, but I honestly don't know exactly what fixed it.
I started with removing some servlets/servlet mappings from the web.xml file. After having done that change, when restarting the server, the Start servlet was found, but the jsp that the servlet was forwaring to was not (and the url to the jsp page looked strange). Also the logcat property file was not found. I read in another post that the Server might need to be cleaned so I did that and then cleaned the project once again. Then restarted the Server and now it's the application is running again.
Thanks for your help anyway, Andrei.
try cleaning your tomcat from eclipse:
right click in tomcat > clean.
then restart your server
I have a GWT project in Eclipse to which i try to add a jsp file. I run the application in development mode and when i try to access that jsp file i get the following error:
HTTP ERROR 404
Problem accessing /testing.jsp.
Reason:
/testing.jsp
Powered by Jetty://
I'm using Eclipse 3.6 (tried it on 3.5 too with the same results), GWT 2.1 and GAE 1.3.8
That's strange - it works out of the box on my machine:
GWT 2.1
GPE (Google Plugin for Eclipse) 1.4.0
Eclipse 3.6
I just do the following:
Create a new Google Web Application (from Eclipse).
Add a "testing.jsp" directly in the "war" directory (not for example in "war/myApp/")
Start development mode ("Run as Web Application").
Go to http://127.0.0.1:8888/testing.jsp?gwt.codesvr=127.0.0.1:9997 (exactly this URL)
[The only case when it doesn't work for me is, if I use Java 1.5 code in the jsp file. But then I get a 500 error, not a 404.]
Can you try this exact scenario, and see, if it works?
A 404 error means it can't find the file. Your jsp file should go in the war directory, not in your source tree: project/war/testing.jsp