Rob Hills escribió:
Hi Pablo,


pabloa wrote:
I have an appfuse application that works in jetty. I am trying to run it in tomcat without success.

The problem is: I can access to the original appfuse pages, for example: http://localhost:8081/myapp-1.0-SNAPSHOT/mainMenu.html, but I am unable to access to app pages like http://localhost:8081/myapp-1.0-SNAPSHOT/mylist.html, etc in tomcat. I can access to all the pages using jetty though.


Are your app files (WEB-INF/pages/myList.jsp etc.) in the WAR file deployed
to Tomcat?

Cheers,

Rob Hills
Waikiki, Western Australia

Yes. They are deployed. I followed Matt comment and I activated the logger in debug level.

I have a page WEB-INF/pages/buyerprojectdetailseditform.jsp

The controller is called BuyerProjectDetailsEditFormController

and this is the dispatcher-servlet declaration:

   <bean id="buyerProjectDetailsEditFormController"
class="com.testapp.myapplication.webapp.controller.BuyerProjectDetailsEditFormController"> <property name="editedView" value="redirect:buyerprojectdetailsform.html?action=show&amp;id=:id" />
       <property name="successView" value="redirect:buyerprojects.html" />
       <property name="formView" value="buyerprojectdetailseditform" />
       <property name="buyerProjectManager" ref="buyerProjectManager" />
       <property name="userManager" ref="userManager" />
   </bean>

In the log it is like the url is processed but the browser finish with the page not found. However, the url is http://localhost:8081/myapplication-1.0-SNAPSHOT/buyerprojectdetailseditform.html

All this run smoothly with jetty.

So I do not where I did a mistake.

Regards.

Pablo

PS: This is the log of the HTTP Get /myapplication-1.0-SNAPSHOT/buyerprojectdetailseditform.html

[myapplication] DEBUG [http-8081-1] RequestContextListener.requestInitialized(69) | Bound request context to thread: [EMAIL PROTECTED] [myapplication] DEBUG [http-8081-1] XmlWebApplicationContext.publishEvent(273) | Publishing event in context [EMAIL PROTECTED]: org.springframework.security.event.authorization.AuthorizedEvent[source=FilterInvocation: URL: /buyerprojectdetailseditform.html] [myapplication] DEBUG [http-8081-1] ClickstreamFilter.doFilter(30) | Applying clickstream filter to request. [myapplication] DEBUG [http-8081-1] ResponseOverrideFilter.doFilter(122) | Filter has been called, but PARAMETER_EXPORTING parameter has not been found. [myapplication] DEBUG [http-8081-1] ServerNameMatcher.debug(182) | looking for hostname match on current server name localhost [myapplication] DEBUG [http-8081-1] UrlRewriteFilter.debug(182) | checking for status path on /myapplication-1.0-SNAPSHOT/buyerprojectdetailseditform.html [myapplication] DEBUG [http-8081-1] UrlRewriter.debug(182) | processing request for /buyerprojectdetailseditform.html [myapplication] DEBUG [http-8081-1] UrlRewriter.debug(182) | after utf-8 decoding /buyerprojectdetailseditform.html [myapplication] DEBUG [http-8081-1] RuleBase.debug(182) | Rule 0 run called with /buyerprojectdetailseditform.html [myapplication] DEBUG [http-8081-1] RuleBase.trace(137) | no match on "from" for ^/admin/user/(.*)\.html$ and /buyerprojectdetailseditform.html [myapplication] DEBUG [http-8081-1] RuleBase.debug(182) | Rule 1 run called with /buyerprojectdetailseditform.html [myapplication] DEBUG [http-8081-1] RuleBase.trace(137) | no match on "from" for ^//services/(.*)$ and /buyerprojectdetailseditform.html [myapplication] DEBUG [http-8081-1] DispatcherServlet.getHandler(1045) | Testing handler map [EMAIL PROTECTED] in DispatcherServlet with name 'dispatcher' [myapplication] DEBUG [http-8081-1] SimpleUrlHandlerMapping.getHandlerInternal(161) | Looking up handler for [/buyerprojectdetailseditform.html] [myapplication] DEBUG [http-8081-1] DispatcherServlet.getHandler(1045) | Testing handler map [EMAIL PROTECTED] in DispatcherServlet with name 'dispatcher' [myapplication] DEBUG [http-8081-1] SimpleUrlHandlerMapping.getHandlerInternal(161) | Looking up handler for [/buyerprojectdetailseditform.html] [myapplication] DEBUG [http-8081-1] DispatcherServlet.getHandlerAdapter(1085) | Testing handler adapter [EMAIL PROTECTED] [myapplication] DEBUG [http-8081-1] DispatcherServlet.getHandlerAdapter(1085) | Testing handler adapter [EMAIL PROTECTED] [myapplication] DEBUG [http-8081-1] DispatcherServlet.getLastModified(961) | Last-Modified value for [/myapplication-1.0-SNAPSHOT/buyerprojectdetailseditform.html] is: -1 [myapplication] DEBUG [http-8081-1] DispatcherServlet.doService(783) | DispatcherServlet with name 'dispatcher' received request for [/myapplication-1.0-SNAPSHOT/buyerprojectdetailseditform.html] [myapplication] DEBUG [http-8081-1] DispatcherServlet.doDispatch(845) | Bound request context to thread: [EMAIL PROTECTED] [myapplication] DEBUG [http-8081-1] DispatcherServlet.getHandlerAdapter(1085) | Testing handler adapter [EMAIL PROTECTED] [myapplication] DEBUG [http-8081-1] DispatcherServlet.getHandlerAdapter(1085) | Testing handler adapter [EMAIL PROTECTED] [myapplication] DEBUG [http-8081-1] BuyerProjectDetailsEditFormController.showNewForm(337) | Displaying new form [myapplication] DEBUG [http-8081-1] BuyerProjectDetailsEditFormController.createCommand(362) | Creating new command of class [com.testapp.myapplication.model.BuyerProject] [myapplication] DEBUG [http-8081-1] DefaultListableBeanFactory.invokeInitMethods(1365) | Invoking afterPropertiesSet() on bean with name 'buyerprojectdetailseditform' [myapplication] DEBUG [http-8081-1] InternalResourceViewResolver.resolveViewName(81) | Cached view [buyerprojectdetailseditform] [myapplication] DEBUG [http-8081-1] DispatcherServlet.render(1171) | Rendering view [org.springframework.web.servlet.view.JstlView: name 'buyerprojectdetailseditform'; URL [/WEB-INF/pages/buyerprojectdetailseditform.jsp]] in DispatcherServlet with name 'dispatcher' [myapplication] DEBUG [http-8081-1] JstlView.render(235) | Rendering view with name 'buyerprojectdetailseditform' with model [EMAIL PROTECTED], org.springframework.validation.BindingResult.buyerProject=org.springframework.validation.BeanPropertyBindingResult: 0 errors} and static attributes {} [myapplication] DEBUG [http-8081-1] JstlView.exposeModelAsRequestAttributes(334) | Added model object 'buyerProject' of type [com.testapp.myapplication.model.BuyerProject] to request in view with name 'buyerprojectdetailseditform' [myapplication] DEBUG [http-8081-1] JstlView.exposeModelAsRequestAttributes(334) | Added model object 'rc' of type [org.springframework.web.servlet.support.RequestContext] to request in view with name 'buyerprojectdetailseditform' [myapplication] DEBUG [http-8081-1] JstlView.exposeModelAsRequestAttributes(334) | Added model object 'org.springframework.validation.BindingResult.buyerProject' of type [org.springframework.validation.BeanPropertyBindingResult] to request in view with name 'buyerprojectdetailseditform' [myapplication] DEBUG [http-8081-1] JstlView.renderMergedOutputModel(238) | Forwarding to resource [/WEB-INF/pages/buyerprojectdetailseditform.jsp] in InternalResourceView 'buyerprojectdetailseditform' [myapplication] DEBUG [http-8081-1] ServerNameMatcher.debug(182) | looking for hostname match on current server name localhost [myapplication] DEBUG [http-8081-1] UrlRewriteFilter.debug(182) | checking for status path on /myapplication-1.0-SNAPSHOT/WEB-INF/pages/buyerprojectdetailseditform.jsp [myapplication] DEBUG [http-8081-1] UrlRewriter.debug(182) | processing request for /WEB-INF/pages/buyerprojectdetailseditform.jsp [myapplication] DEBUG [http-8081-1] UrlRewriter.debug(182) | after utf-8 decoding /WEB-INF/pages/buyerprojectdetailseditform.jsp [myapplication] DEBUG [http-8081-1] RuleBase.debug(182) | Rule 0 run called with /WEB-INF/pages/buyerprojectdetailseditform.jsp [myapplication] DEBUG [http-8081-1] RuleBase.trace(137) | no match on "from" for ^/admin/user/(.*)\.html$ and /WEB-INF/pages/buyerprojectdetailseditform.jsp [myapplication] DEBUG [http-8081-1] RuleBase.debug(182) | Rule 1 run called with /WEB-INF/pages/buyerprojectdetailseditform.jsp [myapplication] DEBUG [http-8081-1] RuleBase.trace(137) | no match on "from" for ^//services/(.*)$ and /WEB-INF/pages/buyerprojectdetailseditform.jsp [myapplication] DEBUG [http-8081-1] DispatcherServlet.doDispatch(939) | Cleared thread-bound request context: [EMAIL PROTECTED] [myapplication] DEBUG [http-8081-1] DispatcherServlet.processRequest(591) | Successfully completed request [myapplication] DEBUG [http-8081-1] XmlWebApplicationContext.publishEvent(273) | Publishing event in context [EMAIL PROTECTED]: ServletRequestHandledEvent: url=[/myapplication-1.0-SNAPSHOT/buyerprojectdetailseditform.html]; client=[0:0:0:0:0:0:0:1]; method=[GET]; servlet=[dispatcher]; session=[EC19327F6441B3E682013C6F3FA20927]; user=[admin]; time=[282ms]; status=[OK] [myapplication] DEBUG [http-8081-1] XmlWebApplicationContext.publishEvent(273) | Publishing event in context [EMAIL PROTECTED]: ServletRequestHandledEvent: url=[/myapplication-1.0-SNAPSHOT/buyerprojectdetailseditform.html]; client=[0:0:0:0:0:0:0:1]; method=[GET]; servlet=[dispatcher]; session=[EC19327F6441B3E682013C6F3FA20927]; user=[admin]; time=[282ms]; status=[OK] [myapplication] DEBUG [http-8081-1] RequestContextListener.requestDestroyed(89) | Cleared thread-bound request context: [EMAIL PROTECTED] [myapplication] DEBUG [http-8081-1] UseMenuDisplayerTag.release(266) | release() called [myapplication] DEBUG [http-8081-1] UseMenuDisplayerTag.setConfig(71) | setting config to: cssHorizontalMenu.vm [myapplication] DEBUG [http-8081-1] UseMenuDisplayerTag.doStartTag(132) | Looking for repository named 'net.sf.navigator.menu.MENU_REPOSITORY' [myapplication] DEBUG [http-8081-1] UseMenuDisplayerTag.doStartTag(145) | stuffing repository into pageContext...





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to