StringIndexOutOfBoundsException in getClassFileName

2008-11-06 Thread Doug Reeder
I have an app (developed in NetBeans) which passes all the verifier  
tests and runs fine in GlassFish.  I'm able to deploy and start it  
running in Geronimo (2.1.3, Jetty), but when I try to actually access  
one of the JSPs, I get the following error:

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:558)
	at org.apache.jasper.compiler.JspUtil.makeJavaIdentifier(JspUtil.java: 
962)
	at  
org 
.apache 
.jasper 
.JspCompilationContext.getServletClassName(JspCompilationContext.java: 
371)
	at  
org 
.apache 
.jasper 
.JspCompilationContext.getClassFileName(JspCompilationContext.java:511)

at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:403)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:351)
	at  
org 
.apache 
.jasper.JspCompilationContext.compile(JspCompilationContext.java:582)
	at  
org 
.apache 
.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
	at  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 
487)
	at  
org 
.apache 
.geronimo 
.jetty6 
.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:65)
	at  
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at  
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 
216)
	at  
org 
.apache 
.geronimo 
.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java: 
114)
	at  
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at  
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 
405)
	at org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access 
$101(TwistyWebAppContext.java:40)
	at org.apache.geronimo.jetty6.handler.TwistyWebAppContext 
$TwistyHandler.handle(TwistyWebAppContext.java:65)
	at  
org 
.apache 
.geronimo 
.jetty6 
.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java: 
46)
	at  
org 
.apache 
.geronimo 
.jetty6 
.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
	at  
org 
.apache 
.geronimo 
.jetty6 
.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
	at  
org 
.apache 
.geronimo 
.jetty6 
.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
	at  
org 
.apache 
.geronimo 
.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
	at  
org 
.mortbay 
.jetty 
.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java: 
206)
	at  
org 
.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 
114)
	at  
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 
505)
	at org.mortbay.jetty.HttpConnection 
$RequestHandler.headerComplete(HttpConnection.java:828)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at  
org 
.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 
395)

at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
	at org.apache.geronimo.pool.ThreadPool 
$ContextClassLoaderRunnable.run(ThreadPool.java:344)
	at java.util.concurrent.ThreadPoolExecutor 
$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor 
$Worker.run(ThreadPoolExecutor.java:675)

at java.lang.Thread.run(Thread.java:613)

1) Is there an analog to the verifier tool for Geronimo?
2) Where should I be looking to fix this? None of the source code  
files in the stack trace are mine!


This is all under Mac OS X 10.5.5 (Java 1.5.0_16) on an intel Mini.



Re-creating SampleTxDatasource/SampleNoTxDatasource by hand...

2008-11-06 Thread jck

I am working myself up to speed with Geronimo EJB3+JPA, and am wrestling with
the same 
http://markmail.org/message/rlhorr23z7akikbo#query:JtaDataSourceWrapper+page:1+mid:6x3ou4tzrk7zfeci+state:results
JtaDataSourceWrapper problem  that will (hopefully) be addressed by 
https://issues.apache.org/jira/browse/GERONIMO-4331 Jira issue 4331 .
Basically, I'm stumped as to how to create a set of jta and non-jta
datasources similar to SampleTxDatasource and SampleNoTxDatasource for a
networked instance of Derby.  

As an example, I have a small container-managed JPA entity accessed through
a trivial EJB3 local interface, using annotations, from Eclipse 3.4 with the
Geronimo 2.1 WTP adapter; I can not get it to load properly.  (I can get a
simple EAR with an EJB3 interface to load.)  I am pretty sure the problem is
that I am not providing the "proper" set of jta and non-jta datasource
references.

I am not using maven or ant at this point -- I am just trying to get this
running inside the Eclipse IDE.

This has been discussed previously by David Jencks and others, but I could
not figure out how to create a Tx/NoTx datasource using the Derby network
client using a database and username of my own choosing; guidance from those
who have a better familiarity with this would be appreciated.  

I'd also like to take a stab at updating the online documentation and/or
tutorials to make this clearer; but don't know who to talk with to
coordinate a contribution (once I figure this out).



-- 
View this message in context: 
http://www.nabble.com/Re-creating-SampleTxDatasource-SampleNoTxDatasource-by-hand...-tp20371530s134p20371530.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: [ANNOUNCE] Welcome Jason Warner as the newest member of the Geronimo PMC

2008-11-06 Thread Joseph Leong
Congratulations Jason!!

On Tue, Nov 4, 2008 at 4:36 PM, Ted Kirby <[EMAIL PROTECTED]> wrote:

> Belated Congratulations!
>
> Ted Kirby
>
> On Thu, Oct 23, 2008 at 6:51 AM, Jason Warner <[EMAIL PROTECTED]> wrote:
> > Thank you for the congrats, everyone.
> >
> > On Wed, Oct 22, 2008 at 6:26 AM, Gianny Damour
> > <[EMAIL PROTECTED]> wrote:
> >>
> >> Congratulations Jason!
> >>
> >> Gianny
> >>
> >> On 22/10/2008, at 7:29 AM, Kevan Miller wrote:
> >>
> >>> All,
> >>> Please join us in congratulating Jason Warner as the newest member of
> the
> >>> Geronimo PMC. It's been great to have Jason working with us as a
> committer
> >>> on Geronimo. Even better to have him join us in providing oversight of
> the
> >>> Geronimo project.
> >>>
> >>> Way to go Jason!!!
> >>>
> >>> The Apache Geronimo PMC
> >>>
> >>> --kevan
> >>
> >
> >
> >
> > --
> > ~Jason Warner
> >
>


Re: Gshell Help Messages

2008-11-06 Thread Jason Dillon
Um... honestly I'm not sure, as I've not really tried to write up full  
help pages yet.  Chances are that some features are still needed  
there.  I only exposed them as resource bundle messages, but I do  
believe there could be some formatting problems.


--jason


On Nov 5, 2008, at 5:58 AM, Eric Johnson wrote:

I'm looking to add help messages to the ServiceMix 4 shells. I've  
got a

few questions:
* Is there any special formatting that can be used in the  
command.manual

property? For example, how does one add line breaks?
* Is there a property for adding arguments to the printed help  
message?


Thanks,
Eric

-
Eric Johnson
Principal Technical Writer
MII-KS, FUSE
Progress Software Corporation