Issue with deploying GWT to Cloudfoundry - eclipse

I am trying to get a a basic GWT App working in cloudfoundry.
The issue is From Eclipse,its all good.and it says deployed and started.
When I got to URL,error is: VCAP ROUTER: 404 - DESTINATION NOT FOUND.
Also,From Eclipse,Its Ok except usage screen looks suspicious.
Screenshot:

I used right click on module descriptor *.gwt.xml and deploy for creating war.
and deployed on tomcat 7 as described here:
tomcat 7 on cloudfoundry
and it worked nice.
you can use above steps for deploying gwt on cloudfoundry.com

Related

Tomcat 404 Error when deploying a WAR file of a REST web app

As part of a course in my CS undergrad degree I need to implement a RESTful web app using Struts2 framework. To do so I'm trying to first see an example of a working example of such a project.
I have downloaded such an example from the official Struts2 website in the following link under the title example applications - https://struts.apache.org/download.cgi.
after extracting the zip file, I saw the folder contained the relevant WAR file named struts2-rest-showcase.
Then, after installing Tomcat 10, I used Tomcat's Web Application Manager to deploy this WAR.
After deployment whenever I try starting the application I get HTTP Status 404 - Not Found error with the following error details:
Type - Status report
Message - The requested resource [/struts2-rest-showcase/] is not available
Description- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
A similar error message occurred when I tried running another example, in the following link, using Tomcat through Eclipse IDE -
https://github.com/amolghotankar/struts2-rest-sample
I feel completely lost since the above examples are supposed to be working examples.

Entreprise-Application deployed succesfully but it is not running

I am trying to develop my first web-application based on java-EE. This application should be deployed on WildFly application server. For That purpose, I made my inspiration from https://bitbucket.org/lassitercg/example/src.
I made some modifications on my Code.
I am developing this application using IntelliJ-Community. The Application was successfully deployed.
whenever I try to access the application using the following URL localhost:8080/startweb, I get the http status code 404. The code can be found unter this link https://github.com/amitakCsNew/startweb
Since I using Intellij Community edition, I am forced to deploy the application then set the breakpoint in the Controller of the application. The application seems to be succesfully deployed, but I am not jumping to the first breakpoint.
any Idea how I can solve this problem ?
Your webapp layout is wrong. Please refer to the standard Maven directories layout.
You need to move webapp directory to src/main. Then update pom.xml file reference to web.xml, then move META-INF from resources into webapp then fix your syntax errors in index.xhtml (the same h namespace is associated with 2 different URLs), then fix/implement your database, then add faces servlet in web.xml, add faces-config.xml, then your web app should be available at http://localhost:8080/startweb/.
Once you resolve all the problems and the controller code finally executes, you will be able to debug it from the IDE using Remote debug configuration.
If you are new to all of this, I'd suggest starting with something more simple, like a single JSP page and a single Java servlet.
Post the new questions if you have issues describing what you did to solve the problem and what exactly didn't work. The current question is too broad and your sample project has too many issues to cover in the single answer.

How do I run GWT on a linux server

Sorry for this simple question but I seem not to find any other way than to publish a GWT app to Google App Spot. I'm sure there must be a way to do this.
I've got the development environment working on my local machine but I'd like to publish the solution to my ubuntu server running nginx.
Edit: Just thought of something... maybe I can just deploy the js-code to the ubuntu server? As simple as that? ;)
No you cant just deploy the js-code and html files to an ubuntu server and put it for apache to serve, well... unless your code only outputs hello world that is. Probably your GWT app is calling/using some other Java code that needs to be deployed in tomcat or jboss, is it? If that is the case, ie your GWT is in a war, then yes, just deploy that .war file to any container on any linux box.
Try to copy your .war into a jboss deploy dir.
Deploying to app spot is similar, ie uploading your .war to google. Read more here http://code.google.com/webtoolkit/doc/1.6/DevGuideDeploying.html
Two options:
Run it in Eclipse
Run it with Ant

WebServiceexception "No Content-type in the header" when trying to consume JBoss hosted webservice with a console application

I have a small assignment where I have to consume a webservice hosted with JBoss using a console application.
I have 2 projects in the same workspace, The DynamicWebApplication that I used as a webservice that is hosted using JBoss and a console application to access it. The console application also has the java files generated with wsimport
I am using the Eclipse IDE and whilst searching through the internet I found that I needed to copy the libraries found in JBOSS_HOME/common/lib to JBOSS_HOME/lib/endorsed but I still have the issue. Any ideas on why this is occurring?
PS. These are the libraries that I copied:
jbossws-native-jaxrpc.jar
jbossws-native-jaxws.jar
jbossws-native-jaxws-ext.jar
jbossws-native-saaj.jar
Ok I found the solution the the problem. Apparently I had to add the following code in the vm arguements:
-Djava.endorsed.dirs=/path-to/jboss-5.1.0.GA/lib/endorsed

Getting Flex Builder to use a Tomcat server on Eclipse

I'm currently trying to get a Tomcat server I have running in Eclipse on http ://localhost:8080/ to be noticed through Flex Builder 4. I think it may have to do with the config.xml file in my Flex Builder project. It is currently set as the following (as well as some other stuff)
<config>
<server>
http://localhost:8080/myty/myy?p1=a1
</server>
<iroot>
c:</iroot>
<oroot>
c:</oroot>
I think it may be that I am using a Mac and there is no C drive on a Mac. However, I think it may also be the server location. I tried taking the part after 8080 out, but then I just get errors and nothing happens as opposed to the actual server page showing up.
You can use lcds or blazeds to push your application to an app server like tomcat. I haven't tried configuring my installation of tomcat to it. But I have worked with the tomcat installation that lcds provides. Works fine.
You can read up on configuring tomcat to lcds here http://help.adobe.com/en_US/livecycle/es/lcds_installation.html#tomcat
Let me know how it goes