Error 503 in GWT with the servlet and paths (Java)Is Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How do I convert a String to an int in Java?Creating a memory leak with JavaGetting a Jetty exception when I reloading my GWT development web serverRESTEasy, Error 503 and servlet not foundWhen running a project “Unsatisfied dependency expressed through constructor parameter 0”
List of people who lose a child in תנ"ך
Is XSS in canonical link possible?
A Permanent Norse Presence in America
How to decide convergence of Integrals
What major Native American tribes were around Santa Fe during the late 1850s?
Gibbs free energy in standard state vs. equilibrium
Why has "pence" been used in this sentence, not "pences"?
How do I repair my stair bannister?
Is it improper etiquette to ask your opponent what his/her rating is before the game?
Indicating multiple different modes of speech (fantasy language or telepathy)
Engineer refusing to file/disclose patents
How to color a curve
anything or something to eat
Bob has never been a M before
Query about absorption line spectra
Could the E-bike drivetrain wear down till needing replacement after 400 km?
Do varchar(max), nvarchar(max) and varbinary(max) columns affect select queries?
How to align and center standalone amsmath equations?
About a little hole in Z'ha'dum
How should I respond when I lied about my education and the company finds out through background check?
Can somebody explain Brexit in a few child-proof sentences?
How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?
Can not upgrade Kali,not enough space in /var/cache/apt/archives
How will losing mobility of one hand affect my career as a programmer?
Error 503 in GWT with the servlet and paths (Java)
Is Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How do I convert a String to an int in Java?Creating a memory leak with JavaGetting a Jetty exception when I reloading my GWT development web serverRESTEasy, Error 503 and servlet not foundWhen running a project “Unsatisfied dependency expressed through constructor parameter 0”
I work with IntelliJ and when I run it in a web browser, it returns 503 error :
Problem accessing / MySampleApplication.html. Reason:
Service Unavailable"*
The bug should be somewhere in the XML file and it seems to be something wrong with the servlet path.
XML:
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.0//EN"
"http://gwtproject.org/doctype/2.8.0/gwt-module.dtd">
<module rename-to="MySampleApplication">
<inherits name='com.google.gwt.user.User'/>
<entry-point class='com.mySampleApplication.client.MySampleApplication'/>
<servlet path='/MySampleApplicationService' class='com.mySampleApplication.server.ServiceImpl'/>>
/>
</module>
Console:
Code server started in 12.55 s ms
2019-03-06 13:09:20.410:INFO:oejs.Server:main: Started @13836ms
Loading modules
com.mySampleApplication.MySampleApplication
Validating <servlet> tags for module 'MySampleApplication'
For additional info see: file:/Users/simonemettesorensen/Downloads/gwt-2.8.2/doc/helpInfo/servletMappings.html
[WARN] Module declares a servlet class 'com.mySampleApplication.server.ServiceImpl' with a mapping to '/MySampleApplication/MySampleApplicationService', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
<servlet-name>com.mySampleApplication.MySampleApplication Service</servlet-name>
<url-pattern>/MySampleApplication/MySampleApplicationService</url-pattern>
</servlet-mapping>
2019-03-06 13:09:20.549:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT
Starting Jetty on port 8888
[WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload@41aa7994/,file:/Users/simonemettesorensen/Library/Caches/IntelliJIdea2018.2/gwt/%C3%B8velsemedrpc.9e5e27b2/oevelseMedRPC.6c3e6f2f/run/www/,STARTING/Users/simonemettesorensen/Library/Caches/IntelliJIdea2018.2/gwt/øvelsemedrpc.9e5e27b2/oevelseMedRPC.6c3e6f2f/run/www
java.lang.NullPointerException
at java.lang.String.compareTo(String.java:1155)
at org.eclipse.jetty.servlet.ServletHolder.compareTo(ServletHolder.java:209)
at org.eclipse.jetty.servlet.ServletHolder.compareTo(ServletHolder.java:70)
at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:321)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
at java.util.Arrays.sort(Arrays.java:1246)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:865)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:550)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:760)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)
at com.google.gwt.dev.DevMode.main(DevMode.java:432)
2019-03-06 13:09:22.470:INFO:oejs.ServerConnector:main: Started ServerConnector@1006dd06HTTP/1.1127.0.0.1:8888
2019-03-06 13:09:22.470:INFO:oejs.Server:main: Started @15896ms
Dev Mode initialized. Startup URL:
http://127.0.0.1:8888/MySampleApplication.html
[ERROR] 503 - GET /MySampleApplication.html (127.0.0.1) 312 bytes
Request Headers
Host: 127.0.0.1:8888
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7
Response headers
Date: Wed, 06 Mar 2019 12:09:22 GMT
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 312
And if I add this, it won't run because of an unexpected error: "servlet mapping :
<servlet-mapping>
<servlet-name>com.mySampleApplication.MySampleApplication Service</servlet-name>
<url-pattern>/MySampleApplication/MySampleApplicationService</url-pattern>
</servlet-mapping>
I would really appreciate any help.
java xml gwt
add a comment |
I work with IntelliJ and when I run it in a web browser, it returns 503 error :
Problem accessing / MySampleApplication.html. Reason:
Service Unavailable"*
The bug should be somewhere in the XML file and it seems to be something wrong with the servlet path.
XML:
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.0//EN"
"http://gwtproject.org/doctype/2.8.0/gwt-module.dtd">
<module rename-to="MySampleApplication">
<inherits name='com.google.gwt.user.User'/>
<entry-point class='com.mySampleApplication.client.MySampleApplication'/>
<servlet path='/MySampleApplicationService' class='com.mySampleApplication.server.ServiceImpl'/>>
/>
</module>
Console:
Code server started in 12.55 s ms
2019-03-06 13:09:20.410:INFO:oejs.Server:main: Started @13836ms
Loading modules
com.mySampleApplication.MySampleApplication
Validating <servlet> tags for module 'MySampleApplication'
For additional info see: file:/Users/simonemettesorensen/Downloads/gwt-2.8.2/doc/helpInfo/servletMappings.html
[WARN] Module declares a servlet class 'com.mySampleApplication.server.ServiceImpl' with a mapping to '/MySampleApplication/MySampleApplicationService', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
<servlet-name>com.mySampleApplication.MySampleApplication Service</servlet-name>
<url-pattern>/MySampleApplication/MySampleApplicationService</url-pattern>
</servlet-mapping>
2019-03-06 13:09:20.549:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT
Starting Jetty on port 8888
[WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload@41aa7994/,file:/Users/simonemettesorensen/Library/Caches/IntelliJIdea2018.2/gwt/%C3%B8velsemedrpc.9e5e27b2/oevelseMedRPC.6c3e6f2f/run/www/,STARTING/Users/simonemettesorensen/Library/Caches/IntelliJIdea2018.2/gwt/øvelsemedrpc.9e5e27b2/oevelseMedRPC.6c3e6f2f/run/www
java.lang.NullPointerException
at java.lang.String.compareTo(String.java:1155)
at org.eclipse.jetty.servlet.ServletHolder.compareTo(ServletHolder.java:209)
at org.eclipse.jetty.servlet.ServletHolder.compareTo(ServletHolder.java:70)
at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:321)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
at java.util.Arrays.sort(Arrays.java:1246)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:865)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:550)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:760)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)
at com.google.gwt.dev.DevMode.main(DevMode.java:432)
2019-03-06 13:09:22.470:INFO:oejs.ServerConnector:main: Started ServerConnector@1006dd06HTTP/1.1127.0.0.1:8888
2019-03-06 13:09:22.470:INFO:oejs.Server:main: Started @15896ms
Dev Mode initialized. Startup URL:
http://127.0.0.1:8888/MySampleApplication.html
[ERROR] 503 - GET /MySampleApplication.html (127.0.0.1) 312 bytes
Request Headers
Host: 127.0.0.1:8888
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7
Response headers
Date: Wed, 06 Mar 2019 12:09:22 GMT
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 312
And if I add this, it won't run because of an unexpected error: "servlet mapping :
<servlet-mapping>
<servlet-name>com.mySampleApplication.MySampleApplication Service</servlet-name>
<url-pattern>/MySampleApplication/MySampleApplicationService</url-pattern>
</servlet-mapping>
I would really appreciate any help.
java xml gwt
There is a blank between 'MySampleApplication' and 'Service' inside the servlet-name tag. Is this an error in your question or is it so defined in your web.xml? If it is so defined in your web.xml, this might be a problem.
– El Hoss
Mar 7 at 11:10
add a comment |
I work with IntelliJ and when I run it in a web browser, it returns 503 error :
Problem accessing / MySampleApplication.html. Reason:
Service Unavailable"*
The bug should be somewhere in the XML file and it seems to be something wrong with the servlet path.
XML:
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.0//EN"
"http://gwtproject.org/doctype/2.8.0/gwt-module.dtd">
<module rename-to="MySampleApplication">
<inherits name='com.google.gwt.user.User'/>
<entry-point class='com.mySampleApplication.client.MySampleApplication'/>
<servlet path='/MySampleApplicationService' class='com.mySampleApplication.server.ServiceImpl'/>>
/>
</module>
Console:
Code server started in 12.55 s ms
2019-03-06 13:09:20.410:INFO:oejs.Server:main: Started @13836ms
Loading modules
com.mySampleApplication.MySampleApplication
Validating <servlet> tags for module 'MySampleApplication'
For additional info see: file:/Users/simonemettesorensen/Downloads/gwt-2.8.2/doc/helpInfo/servletMappings.html
[WARN] Module declares a servlet class 'com.mySampleApplication.server.ServiceImpl' with a mapping to '/MySampleApplication/MySampleApplicationService', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
<servlet-name>com.mySampleApplication.MySampleApplication Service</servlet-name>
<url-pattern>/MySampleApplication/MySampleApplicationService</url-pattern>
</servlet-mapping>
2019-03-06 13:09:20.549:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT
Starting Jetty on port 8888
[WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload@41aa7994/,file:/Users/simonemettesorensen/Library/Caches/IntelliJIdea2018.2/gwt/%C3%B8velsemedrpc.9e5e27b2/oevelseMedRPC.6c3e6f2f/run/www/,STARTING/Users/simonemettesorensen/Library/Caches/IntelliJIdea2018.2/gwt/øvelsemedrpc.9e5e27b2/oevelseMedRPC.6c3e6f2f/run/www
java.lang.NullPointerException
at java.lang.String.compareTo(String.java:1155)
at org.eclipse.jetty.servlet.ServletHolder.compareTo(ServletHolder.java:209)
at org.eclipse.jetty.servlet.ServletHolder.compareTo(ServletHolder.java:70)
at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:321)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
at java.util.Arrays.sort(Arrays.java:1246)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:865)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:550)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:760)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)
at com.google.gwt.dev.DevMode.main(DevMode.java:432)
2019-03-06 13:09:22.470:INFO:oejs.ServerConnector:main: Started ServerConnector@1006dd06HTTP/1.1127.0.0.1:8888
2019-03-06 13:09:22.470:INFO:oejs.Server:main: Started @15896ms
Dev Mode initialized. Startup URL:
http://127.0.0.1:8888/MySampleApplication.html
[ERROR] 503 - GET /MySampleApplication.html (127.0.0.1) 312 bytes
Request Headers
Host: 127.0.0.1:8888
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7
Response headers
Date: Wed, 06 Mar 2019 12:09:22 GMT
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 312
And if I add this, it won't run because of an unexpected error: "servlet mapping :
<servlet-mapping>
<servlet-name>com.mySampleApplication.MySampleApplication Service</servlet-name>
<url-pattern>/MySampleApplication/MySampleApplicationService</url-pattern>
</servlet-mapping>
I would really appreciate any help.
java xml gwt
I work with IntelliJ and when I run it in a web browser, it returns 503 error :
Problem accessing / MySampleApplication.html. Reason:
Service Unavailable"*
The bug should be somewhere in the XML file and it seems to be something wrong with the servlet path.
XML:
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.0//EN"
"http://gwtproject.org/doctype/2.8.0/gwt-module.dtd">
<module rename-to="MySampleApplication">
<inherits name='com.google.gwt.user.User'/>
<entry-point class='com.mySampleApplication.client.MySampleApplication'/>
<servlet path='/MySampleApplicationService' class='com.mySampleApplication.server.ServiceImpl'/>>
/>
</module>
Console:
Code server started in 12.55 s ms
2019-03-06 13:09:20.410:INFO:oejs.Server:main: Started @13836ms
Loading modules
com.mySampleApplication.MySampleApplication
Validating <servlet> tags for module 'MySampleApplication'
For additional info see: file:/Users/simonemettesorensen/Downloads/gwt-2.8.2/doc/helpInfo/servletMappings.html
[WARN] Module declares a servlet class 'com.mySampleApplication.server.ServiceImpl' with a mapping to '/MySampleApplication/MySampleApplicationService', but the web.xml has no corresponding mapping; please add the following lines to your web.xml:
<servlet-mapping>
<servlet-name>com.mySampleApplication.MySampleApplication Service</servlet-name>
<url-pattern>/MySampleApplication/MySampleApplicationService</url-pattern>
</servlet-mapping>
2019-03-06 13:09:20.549:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT
Starting Jetty on port 8888
[WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload@41aa7994/,file:/Users/simonemettesorensen/Library/Caches/IntelliJIdea2018.2/gwt/%C3%B8velsemedrpc.9e5e27b2/oevelseMedRPC.6c3e6f2f/run/www/,STARTING/Users/simonemettesorensen/Library/Caches/IntelliJIdea2018.2/gwt/øvelsemedrpc.9e5e27b2/oevelseMedRPC.6c3e6f2f/run/www
java.lang.NullPointerException
at java.lang.String.compareTo(String.java:1155)
at org.eclipse.jetty.servlet.ServletHolder.compareTo(ServletHolder.java:209)
at org.eclipse.jetty.servlet.ServletHolder.compareTo(ServletHolder.java:70)
at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:321)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
at java.util.Arrays.sort(Arrays.java:1246)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:865)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:550)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:760)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)
at com.google.gwt.dev.DevMode.main(DevMode.java:432)
2019-03-06 13:09:22.470:INFO:oejs.ServerConnector:main: Started ServerConnector@1006dd06HTTP/1.1127.0.0.1:8888
2019-03-06 13:09:22.470:INFO:oejs.Server:main: Started @15896ms
Dev Mode initialized. Startup URL:
http://127.0.0.1:8888/MySampleApplication.html
[ERROR] 503 - GET /MySampleApplication.html (127.0.0.1) 312 bytes
Request Headers
Host: 127.0.0.1:8888
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7
Response headers
Date: Wed, 06 Mar 2019 12:09:22 GMT
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 312
And if I add this, it won't run because of an unexpected error: "servlet mapping :
<servlet-mapping>
<servlet-name>com.mySampleApplication.MySampleApplication Service</servlet-name>
<url-pattern>/MySampleApplication/MySampleApplicationService</url-pattern>
</servlet-mapping>
I would really appreciate any help.
java xml gwt
java xml gwt
edited Mar 8 at 18:13
Mr. Semicolon
531422
531422
asked Mar 7 at 8:12
Simone SørensenSimone Sørensen
61
61
There is a blank between 'MySampleApplication' and 'Service' inside the servlet-name tag. Is this an error in your question or is it so defined in your web.xml? If it is so defined in your web.xml, this might be a problem.
– El Hoss
Mar 7 at 11:10
add a comment |
There is a blank between 'MySampleApplication' and 'Service' inside the servlet-name tag. Is this an error in your question or is it so defined in your web.xml? If it is so defined in your web.xml, this might be a problem.
– El Hoss
Mar 7 at 11:10
There is a blank between 'MySampleApplication' and 'Service' inside the servlet-name tag. Is this an error in your question or is it so defined in your web.xml? If it is so defined in your web.xml, this might be a problem.
– El Hoss
Mar 7 at 11:10
There is a blank between 'MySampleApplication' and 'Service' inside the servlet-name tag. Is this an error in your question or is it so defined in your web.xml? If it is so defined in your web.xml, this might be a problem.
– El Hoss
Mar 7 at 11:10
add a comment |
2 Answers
2
active
oldest
votes
Simone, welcome to the GWT world!
If that servlet uses GWT-RPC I would strongly suggest you to look into creating a JSON endpoint. Moving forward the RPC part will be dropped, JSON is standard and future-proof.
It's also waaaaaaay easier to debug and mock up, makes working with GWT significantly easier.
Thank you but my teacher wants us til use GWT RPC and don't tell me why :)
– Simone Sørensen
Mar 12 at 6:44
Teacher? They are teaching GWT in school? That's interesting ... Here's a working example of GWT-RPC: github.com/jimmyfm/gwt-mvp-examples/blob/master/src/main/java/…
– Luigi Polvani
Mar 13 at 14:34
add a comment |
You need to replace the <servlet> from your *.gwt.xml file with a <servlet-mapping> (and <servlet>) in your WEB-INF/web.xml (a standard servlet mapping, not GWT-specific, like in any other, non-GWT, servlet development)
thank you for the answer. I already tried that but the console then said [ERROR] Line 13: Unexpected element 'servlet-mapping'
– Simone Sørensen
Mar 12 at 6:41
aaaah now I understood what you meant and it worked!! thank you
– Simone Sørensen
Mar 12 at 7:06
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038944%2ferror-503-in-gwt-with-the-servlet-and-paths-java%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Simone, welcome to the GWT world!
If that servlet uses GWT-RPC I would strongly suggest you to look into creating a JSON endpoint. Moving forward the RPC part will be dropped, JSON is standard and future-proof.
It's also waaaaaaay easier to debug and mock up, makes working with GWT significantly easier.
Thank you but my teacher wants us til use GWT RPC and don't tell me why :)
– Simone Sørensen
Mar 12 at 6:44
Teacher? They are teaching GWT in school? That's interesting ... Here's a working example of GWT-RPC: github.com/jimmyfm/gwt-mvp-examples/blob/master/src/main/java/…
– Luigi Polvani
Mar 13 at 14:34
add a comment |
Simone, welcome to the GWT world!
If that servlet uses GWT-RPC I would strongly suggest you to look into creating a JSON endpoint. Moving forward the RPC part will be dropped, JSON is standard and future-proof.
It's also waaaaaaay easier to debug and mock up, makes working with GWT significantly easier.
Thank you but my teacher wants us til use GWT RPC and don't tell me why :)
– Simone Sørensen
Mar 12 at 6:44
Teacher? They are teaching GWT in school? That's interesting ... Here's a working example of GWT-RPC: github.com/jimmyfm/gwt-mvp-examples/blob/master/src/main/java/…
– Luigi Polvani
Mar 13 at 14:34
add a comment |
Simone, welcome to the GWT world!
If that servlet uses GWT-RPC I would strongly suggest you to look into creating a JSON endpoint. Moving forward the RPC part will be dropped, JSON is standard and future-proof.
It's also waaaaaaay easier to debug and mock up, makes working with GWT significantly easier.
Simone, welcome to the GWT world!
If that servlet uses GWT-RPC I would strongly suggest you to look into creating a JSON endpoint. Moving forward the RPC part will be dropped, JSON is standard and future-proof.
It's also waaaaaaay easier to debug and mock up, makes working with GWT significantly easier.
answered Mar 8 at 14:43
Luigi PolvaniLuigi Polvani
35559
35559
Thank you but my teacher wants us til use GWT RPC and don't tell me why :)
– Simone Sørensen
Mar 12 at 6:44
Teacher? They are teaching GWT in school? That's interesting ... Here's a working example of GWT-RPC: github.com/jimmyfm/gwt-mvp-examples/blob/master/src/main/java/…
– Luigi Polvani
Mar 13 at 14:34
add a comment |
Thank you but my teacher wants us til use GWT RPC and don't tell me why :)
– Simone Sørensen
Mar 12 at 6:44
Teacher? They are teaching GWT in school? That's interesting ... Here's a working example of GWT-RPC: github.com/jimmyfm/gwt-mvp-examples/blob/master/src/main/java/…
– Luigi Polvani
Mar 13 at 14:34
Thank you but my teacher wants us til use GWT RPC and don't tell me why :)
– Simone Sørensen
Mar 12 at 6:44
Thank you but my teacher wants us til use GWT RPC and don't tell me why :)
– Simone Sørensen
Mar 12 at 6:44
Teacher? They are teaching GWT in school? That's interesting ... Here's a working example of GWT-RPC: github.com/jimmyfm/gwt-mvp-examples/blob/master/src/main/java/…
– Luigi Polvani
Mar 13 at 14:34
Teacher? They are teaching GWT in school? That's interesting ... Here's a working example of GWT-RPC: github.com/jimmyfm/gwt-mvp-examples/blob/master/src/main/java/…
– Luigi Polvani
Mar 13 at 14:34
add a comment |
You need to replace the <servlet> from your *.gwt.xml file with a <servlet-mapping> (and <servlet>) in your WEB-INF/web.xml (a standard servlet mapping, not GWT-specific, like in any other, non-GWT, servlet development)
thank you for the answer. I already tried that but the console then said [ERROR] Line 13: Unexpected element 'servlet-mapping'
– Simone Sørensen
Mar 12 at 6:41
aaaah now I understood what you meant and it worked!! thank you
– Simone Sørensen
Mar 12 at 7:06
add a comment |
You need to replace the <servlet> from your *.gwt.xml file with a <servlet-mapping> (and <servlet>) in your WEB-INF/web.xml (a standard servlet mapping, not GWT-specific, like in any other, non-GWT, servlet development)
thank you for the answer. I already tried that but the console then said [ERROR] Line 13: Unexpected element 'servlet-mapping'
– Simone Sørensen
Mar 12 at 6:41
aaaah now I understood what you meant and it worked!! thank you
– Simone Sørensen
Mar 12 at 7:06
add a comment |
You need to replace the <servlet> from your *.gwt.xml file with a <servlet-mapping> (and <servlet>) in your WEB-INF/web.xml (a standard servlet mapping, not GWT-specific, like in any other, non-GWT, servlet development)
You need to replace the <servlet> from your *.gwt.xml file with a <servlet-mapping> (and <servlet>) in your WEB-INF/web.xml (a standard servlet mapping, not GWT-specific, like in any other, non-GWT, servlet development)
answered Mar 8 at 18:34
Thomas BroyerThomas Broyer
62.4k680153
62.4k680153
thank you for the answer. I already tried that but the console then said [ERROR] Line 13: Unexpected element 'servlet-mapping'
– Simone Sørensen
Mar 12 at 6:41
aaaah now I understood what you meant and it worked!! thank you
– Simone Sørensen
Mar 12 at 7:06
add a comment |
thank you for the answer. I already tried that but the console then said [ERROR] Line 13: Unexpected element 'servlet-mapping'
– Simone Sørensen
Mar 12 at 6:41
aaaah now I understood what you meant and it worked!! thank you
– Simone Sørensen
Mar 12 at 7:06
thank you for the answer. I already tried that but the console then said [ERROR] Line 13: Unexpected element 'servlet-mapping'
– Simone Sørensen
Mar 12 at 6:41
thank you for the answer. I already tried that but the console then said [ERROR] Line 13: Unexpected element 'servlet-mapping'
– Simone Sørensen
Mar 12 at 6:41
aaaah now I understood what you meant and it worked!! thank you
– Simone Sørensen
Mar 12 at 7:06
aaaah now I understood what you meant and it worked!! thank you
– Simone Sørensen
Mar 12 at 7:06
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038944%2ferror-503-in-gwt-with-the-servlet-and-paths-java%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
There is a blank between 'MySampleApplication' and 'Service' inside the servlet-name tag. Is this an error in your question or is it so defined in your web.xml? If it is so defined in your web.xml, this might be a problem.
– El Hoss
Mar 7 at 11:10