File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Frontman2 beta: strange startup error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Frontman2 beta: strange startup error" Watch "Frontman2 beta: strange startup error" New topic
Author

Frontman2 beta: strange startup error

Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 3433
I've been using Frontman version 2 doing beta testing for a few months with no problems.

Now I've got a problem that has me baffled.

Background: I started getting "index out of bounds" exceptions when I called

ctx.forwardToView(destination);


Most strange, so I decided, as a good beta tester, to debug it. To do this, I had to create a Netbeans project for Frontman, so the debugger could bind the source to the .class files.
Now, I can't get any of Frontman to work.

The logs show:


13:34:36,848 INFO CommandBroker:57 - Initializing FrontMan...
13:34:36,849 DEBUG CommandBroker:39 - commandVerbsProperties=null
13:34:36,849 DEBUG CommandBroker:39 - commandPackages(raw) = null
13:34:36,849 DEBUG CommandBroker:39 - viewNamesProperties=null
13:34:36,850 DEBUG CommandBroker:39 - viewsPath=/WEB-INF/pages
13:34:36,850 WARN CommandBroker:87 - At least one of commandPackages or commandVerbsProperties must be specified; CommandBroker is unavailable


I have not changed the web.xml, or my calling code. All I'm trying to do is link in a jar file that knows about the sources.....
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 3433
more debugging info:

from web.xml

This message was edited 1 time. Last update was at by Pat Farrell

Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48842

With Frontman 2, you can specify multiple base packages to search for auto-configured commands. So the init param has changed to commandPackages.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 3433
er, a change is OK, but why has it worked the past couple of months of Beta testing?

BTW: Probably should have a "change this" section added to the docs/
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 3433
So, I made the fix:



no joy. get a different runtime error


Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 3433
Looks like a cockpit error.
 
 
subject: Frontman2 beta: strange startup error
 
developer file tools