Opa galera =P
Quando eu acesso minha aplicação pelo endereço root (www.host.com.br:8080/myApp) o servlet do Open Laszlo lança a seguinte exception:
Error: String index out of range: -4java.lang.StringIndexOutOfBoundsException: String index out of range: -4
at java.lang.String.substring(String.java:1768)
at org.openlaszlo.servlets.responders.ResponderAPP_CONSOLE.getRequestXML(ResponderAPP_CONSOLE.java:95)
at org.openlaszlo.servlets.responders.ResponderAPP_CONSOLE.respondCompilationError(ResponderAPP_CONSOLE.java:214)
at org.openlaszlo.servlets.responders.ResponderAPP_CONSOLE.handleCompilationError(ResponderAPP_CONSOLE.java:204)
at org.openlaszlo.servlets.responders.ResponderCompile.respondImpl(ResponderCompile.java:209)
at org.openlaszlo.servlets.responders.Responder.respond(Responder.java:260)
at org.openlaszlo.servlets.LZServlet._doGet(LZServlet.java:441)
at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:355)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:163)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
No meu arquivo web.xml eu tenho definido o arquivo .lzx que eu quero que seja minha “página” inicial… mais não faço idéia o por que deste erro…
Segue abaixo meu arquivo web.xml:
[code]<web-app>
<display-name>dSystems Application Manager</display-name>
<description/>
<!-- Definições para o OpenLaszlo -->
<servlet>
<servlet-name>LPS</servlet-name>
<servlet-class>org.openlaszlo.servlets.LZServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>LZViewer</servlet-name>
<servlet-class>org.openlaszlo.servlets.LZViewer</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LPS</servlet-name>
<url-pattern>*.lzx</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LPS</servlet-name>
<url-pattern>*.lzo</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LZViewer</servlet-name>
<url-pattern>/LZViewer</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>
org.apache.axis.transport.http.AxisServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>
<filter>
<filter-name>webwork</filter-name>
<filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>webwork</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/lib/webwork-2.2.1.jar</taglib-location>
</taglib>
<welcome-file-list>
<welcome-file>/laszlo/login.lzx</welcome-file>
</welcome-file-list>
</web-app>
[/code]
Já ocorreu com alguem este erro ? Ou alguem sabe o que está acontecendo ?
OBS: Eu consigo acessar a aplicação normalmente inserindo o endereço completo do arquivo lzx que eu queira acessar (ex: www.host.com.br:8080/myApp/laszlo/teste.lzx)
Obrigado
Rodrigo Kerkhoff