Check and see if you have a target/web.xml file... Because of the way
(grumble grumble) the M2 war plugins work you have to run the
mergewebxml goal, then edit the war settings in your pom to use
target/web.xml not webapp/.../web.xml.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>target/web.xml</webXml>
See if the one in your target folder is correct after running mergewebxml..
You can look at the sample here:
http://code.google.com/p/gwt-maven/source/browse/trunk/maven-googlewebtoolkit2-sample/war/pom.xml
On Wed, Feb 18, 2009 at 11:07 AM, ytbryan <[email protected]> wrote:
>
> i did ran the webmergexml. but i check teh web.xml and it does not
> have servet or servlet mapping.
>
> sorry i am not familiar with what you are saying...... my gwt.xml is
> below...... can you explain to me again>?
>
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><module>
>
> <!-- Inherit the core Web Toolkit stuff. -->
> <inherits name="com.google.gwt.user.User"/>
> <inherits name="com.gwtext.GwtExt"/>
> <inherits name="com.gwtext.Charts"/>
>
>
> <!-- Inherit the gwtextux plugin stuff. -->
> <!-- <inherits name="com.gwtextux.GridSearchPlugin"/>-->
>
>
>
> <!-- Specify the app entry point class. -->
> <entry-point class="com.tribling.gwt.test.mysqlconn.client.MySQLConn"/
>>
>
> <!-- style -->
> <stylesheet src="style.css"/>
> <stylesheet src="js/ext/resources/css/ext-all.css"/>
> <script src="js/ext/adapter/ext/ext-base.js"/>
> <script src="js/ext/ext-all.js"/>
>
> <!-- servlet context - path is arbritray, but must match up with
> the rpc init inside java class -->
> <!-- Tomcat will listen for this from the server and waits for rpc
> request in this context -->
> <servlet
> class="com.tribling.gwt.test.mysqlconn.server.MySQLConnServiceImpl"
> path="/MySQLConnService"/>
>
>
> </module>
>
> On Feb 18, 4:56 pm, "Robert \"kebernet\" Cooper" <[email protected]>
> wrote:
>> Yeah.
>>
>> If you are running the mergewebxml goal as part of your build, you
>> should see something like:
>>
>> <servlet>
>> <name>me.MyModule/me.MyServlet</name>
>> <class>me.MyServlet</class>
>> </servlet>
>>
>> and
>>
>> <servlet-mapping>
>> <name>me.MyModule/me.MyServlet</name>
>> <url>me.MyModule/me.MyServlet</name>
>> </servlet-mapping>
>>
>> for each servlet defined in your gwt.xml module descriptor. If you
>> aren't running this goal as part of your build, you need to manually
>> add those to a web.xml file in your project
>> (src/main/webapp/WEB-INF/web.xml)
>>
>>
>>
>> On Wed, Feb 18, 2009 at 10:53 AM, ytbryan <[email protected]> wrote:
>>
>> > thank you for your reply. do you mean the WEB-INF/web.xml file?
>> > inside myapplication.war ??
>>
>> > On Feb 18, 4:45 pm, "Robert \"kebernet\" Cooper" <[email protected]>
>> > wrote:
>> >> Are you running the mergewebxml goal as part of your build?
>>
>> >> What is in your deployed WEB-INF/web.xml file?
>>
>> >> On Wed, Feb 18, 2009 at 10:43 AM, ytbryan <[email protected]> wrote:
>>
>> >> > hi all,
>>
>> >> > after i deploy my application( that has RPC) on tomcat using , i got
>> >> > the following error:
>>
>> >> > HTTP Status 404 - /gwt-test-MySQLConn/
>> >> > com.tribling.gwt.test.mysqlconn.MySQLConn/MySQLConnService
>>
>> >> > type Status report
>>
>> >> > message /gwt-test-MySQLConn/com.tribling.gwt.test.mysqlconn.MySQLConn/
>> >> > MySQLConnService
>>
>> >> > description The requested resource (/gwt-test-MySQLConn/
>> >> > com.tribling.gwt.test.mysqlconn.MySQLConn/MySQLConnService) is not
>> >> > available.
>>
>> >> > i have no clue what is wrong as it was working fine at hosted mode.
>> >> > please help me!!
>>
>> >> > and the MySQLConnService is in the client folder of
>> >> > com.tribling.gwt.test.mysqlconn
>>
>> >> > what is com.google.gwt.user.client.rpc.StatusCodeException exactly?
>>
>> >> --
>> >> :Robert "kebernet" Cooper
>> >> ::[email protected]
>> >> Alice's cleartext
>> >> Charlie is the attacker
>> >> Bob signs and
>> >> encryptshttp://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8
>>
>> --
>> :Robert "kebernet" Cooper
>> ::[email protected]
>> Alice's cleartext
>> Charlie is the attacker
>> Bob signs and
>> encryptshttp://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8
> >
>
--
:Robert "kebernet" Cooper
::[email protected]
Alice's cleartext
Charlie is the attacker
Bob signs and encrypts
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"gwt-maven" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-maven?hl=en
-~----------~----~----~----~------~----~------~--~---