Sign In!
|
New User?Signup Now!
|
Forgot password?
Source Code 4 you
Home
Create Forum Topic
Check WebSite Rank
Publish Articles
UV Web Booster
Contact
Forum Type
Search Engine
.Net C# VB F# VC++
MonoPoject
Java J2EE
Zand Php Cake Php
Oracle Database Server
Mysql Database Server
DB2 Database Server
MSSql Databse Server
Javascript Ajax
Html Xml Xhtml
C Programming
C++ Programming
D Programming
CGI Programming
Perl Programming
Cobol Programming
Pascal Programming
Ruby Programming
Drupal Programming
Automobile
Software Testing
Linux Unix Mac Sun OS
Embedded Systems
Mainframe
IC Microcircuit Chip
Electronics Electrical
Hardware Netwarking
SAP ERP
Logical Reasoning
Human Resources
Science
Agriculture
Accounting
History
Pharmaceutical
Other Topic
Java J2EE
Posted by :
Pavel Byles
Problems with hosted mode
I am using a JSP page as my startup page for my GWt/GAE project and hosted mode used to work just fine.
Yesterday I started Eclipse and suddenly hosted mode doesn't work anymore.
I only displays the html in the JSP page but doesn't run the linked <myproject>.nocache.js file and I get no errors.
When I do "Run/Compile" everything works just fine in Firefox at url
http://localhost:8080/
Any ideas?
I'm using GWT SDK 1.7.0 and GAE SDK 1.2.2 on Ubuntu/Eclipse 3.4.2 w/ Sun JDK 1.6.0_13
--
-Pavel
Posted by :
Pavel Byles
Re : Problems with hosted mode
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- Default page to serve -->
<welcome-file-list>
<welcome-file>Caribbeanvisit.jsp</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Servlets -->
<servlet>
<servlet-name>countryServlet</servlet-name>
<servlet-class>com.pavco.caribbeanvisit.server.CountryServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>countryServlet</servlet-name>
<url-pattern>/caribbeanvisit/country</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>attractionServlet</servlet-name>
<servlet-class>com.pavco.caribbeanvisit.server.AttractionServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>attractionServlet</servlet-name>
<url-pattern>/caribbeanvisit/attraction</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>tagServlet</servlet-name>
<servlet-class>com.pavco.caribbeanvisit.server.TagServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>tagServlet</servlet-name>
<url-pattern>/caribbeanvisit/tag</url-pattern>
</servlet-mapping>
</web-app>
Posted by :
Pavel Byles
Re : Problems with hosted mode
I figured out the problem:
Just after I synced w/ my repo I had put
the nocache.js script tag in my body, which doesn't seem to load in
hosted mode. But works just fine in Firefox. Putting it back in the
<head> makes it work again.
Posted by :
Rajeev Dayal
Re : Problems with hosted mode
Hey Pavel,
Can you post the contents of your web.xml file, and also the contents of your JSP page?
Also, where is your JSP page located?
Thanks,
Rajeev
If you have the better reply, then send it to us. We will display your reply after the approval.
Name :
Email Id :
Reply :