aspose file tools*
The moose likes Other Application Frameworks and the fly likes Frontman misfire? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Frontman misfire?" Watch "Frontman misfire?" New topic
Author

Frontman misfire?

Mark Frasertoo
Greenhorn

Joined: Oct 20, 2012
Posts: 7
The problem is that the command isn't being called by the broker. Why? Is this is as simple a setup as I think it is, or am I missing something?

In my web.xml:



From http://localhost/nutrition/admin/ I submit the following URL:
http://localhost/nutrition/command/LoadTextCommand?textRoot=/WEB-INF/classes/CNF_TXT


The Command implementation looks like this:


In H:\Tomcat\webapps\nutrition\WEB-INF\views\db is the page LoadTextResultsPage.jsp, which never gets viewed.

The logs show nothing but the initialization of the broker. This is after the request was made:

INFO main org.apache.coyote.http11.Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-80
INFO main org.apache.catalina.startup.Catalina - Initialization processed in 324 ms
INFO main org.apache.catalina.core.StandardService - Starting service Catalina
INFO main org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/5.5.33
INFO main org.apache.catalina.core.StandardHost - XML validation disabled
INFO main org.apache.catalina.core.StandardHost - XML validation disabled
INFO main org.bibeault.frontman.CommandBroker - Initializing...
DEBUG main org.bibeault.frontman.CommandBroker - commandVerbsProperties=null
DEBUG main org.bibeault.frontman.CommandBroker - commandsPath=ca.markfraser.nutrition.db.commands
DEBUG main org.bibeault.frontman.CommandBroker - viewNamesProperties=null
DEBUG main org.bibeault.frontman.CommandBroker - viewsPath=/WEB-INF/views/db
DEBUG main org.bibeault.frontman.utensils.ClassFinder - searching by resource...
DEBUG main org.bibeault.frontman.utensils.ClassFinder - Done searching by resource...
DEBUG main org.bibeault.frontman.utensils.ClassFinder - searching folders...
DEBUG main org.bibeault.frontman.utensils.ClassFinder - done searching folders...
INFO main org.bibeault.frontman.CommandBroker - Commands path root: ca.markfraser.nutrition.db.commands
INFO main org.bibeault.frontman.CommandBroker - Views path root: /WEB-INF/views/db
INFO main org.bibeault.frontman.CommandBroker - Done initializing.
INFO main org.apache.coyote.http11.Http11BaseProtocol - Starting Coyote HTTP/1.1 on http-80
INFO main org.apache.catalina.storeconfig.StoreLoader - Find registry server-registry.xml at classpath resource
INFO main org.apache.catalina.startup.Catalina - Server startup in 735 ms

I've tried the command and views properties files and then tried this approach with the same results. I simply have no clue what to do next other than go back to my old framework, which I really don't want to do.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60074
    
  65

I see no evidence in the log that a request has been submitted. There should be logging for the request.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mark Frasertoo
Greenhorn

Joined: Oct 20, 2012
Posts: 7
You're right. I tried my old setup and it doesn't work either. The context is serving pages but doesn't forward the request to the servlet. I've never seen this. Any ideas?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60074
    
  65

Is Tomcat running on 80 or 8080? (Or are you fronting with Apache?)
Mark Frasertoo
Greenhorn

Joined: Oct 20, 2012
Posts: 7
Tomcat is running alone on port 80. I updated from 5.5 to 7 and am having the same problem; pages are served in the virtual hosts and in my development context, but the servlet isn't being called. I'm not new to servlets so this is very puzzling. I'm feeling like a newbie so I've started re-learning everything so I can find the tiny thing I seem to have overlooked.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60074
    
  65

Yeah, it sounds like it's something outside of FrontMan.

You might want to strip the web app down to essentials and see what happens. Perhaps post in the Tomcat forum if things are still loopy.
Mark Frasertoo
Greenhorn

Joined: Oct 20, 2012
Posts: 7
The problem was in the servlet mapping. I had the context name included when I should not.
The new web.xml entry:


I would be interested in looking at Frontman 2.0 if you're still offering.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Frontman misfire?
 
Similar Threads
servlet mapping clarification
FrontMan Commands ?
Frontman 2.0 vs /WEB-INF
Frontman2 beta: strange startup error
FrontMan: Startup Error.