aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
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: 4659
    
    5

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: 4659
    
    5

more debugging info:

from web.xml
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61652
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

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: 4659
    
    5

So, I made the fix:



no joy. get a different runtime error


Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

Looks like a cockpit error.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Frontman2 beta: strange startup error