Configuring log4j as jvm environment variable fails

2008-11-07 Thread Hearty

I have tried the below 2 options of setting my fp-log4j.properties.
Both these options fails. I am not able to see log files created.

SET
JAVA_OPTS=-Dlog4j.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties

SET
JAVA_OPTS=-Dorg.apache.geronimo.log4jservice.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties

These envionment variable I've specified from a command prompt and I've run
start-server command from the same instance.

My fp-log4j.properties is as follows

#attach an appender to the base apacheds package logger:
log4j.logger.org.apache.directory=INFO,fp
#do not log apacheds to geronimo logs:
log4j.additivity.org.apache.directory=false


#Configure the fp specific appender:
log4j.appender.fp=org.apache.log4j.DailyRollingFileAppender
log4j.appender.fp.layout=org.apache.log4j.PatternLayout
# geronimo style logging
log4j.appender.fp.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n

log4j.appender.fp.append=true
log4j.appender.fp.file=${org.apache.geronimo.server.dir}/var/log/fp.log
log4j.appender.fp.bufferedIO=false


#focal point specific log settings
log4j.logger.com.telelogic.focalpoint=DEBUG
log4j.logger.com.telelogic.focalpoint.dao.jdbc.Jdbc=OFF
log4j.logger.com.telelogic.focalpoint.dao.ViewExecutor=OFF
log4j.logger.org.apache.catalina=INFO  
log4j.logger.org.springframework=INFO
log4j.logger.net.sf.ehcache.distribution=INFO

Please advice me where I went wrong
-- 
View this message in context: 
http://www.nabble.com/Configuring-log4j-as-jvm-environment-variable-fails-tp20378195s134p20378195.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: StringIndexOutOfBoundsException in getClassFileName

2008-11-07 Thread Kevan Miller

Hi Doug,

On Nov 7, 2008, at 1:29 AM, Doug Reeder wrote:

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?


No.



2) Where should I be looking to fix this? None of the source code  
files in the stack trace are mine!


Tomcat source code, in this case. Jetty uses the Jasper compiler for  
JSP compilation. In particular -- http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/java/org/apache/jasper/JspCompilationContext.java?revision=678601view=markup


What's the URI of your JSP?

Tomcat is looking for the last '/' character in your URI, creating a  
substring based on the remainder of the URI, and trying to create a  
unique java classname based on this substring. In your case, the  
substring is a zero length string. Massaging your uri should work- 
around the problem...


--kevan



Re: Gshell Help Messages

2008-11-07 Thread Jason Dillon
BTW, on this topic, I had considered using something like APT (the  
maven almost plain text language) or even something more wiki-ish for  
the help pages.  That is still an option, just needs to be  
implemented :-)


--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





Re: Gshell Help Messages

2008-11-07 Thread Eric Johnson
That would be cool.

I had a question about using the following properties:
command.argument.xxx.description
command.argument.xxx.tag
I saw them in a couple of the properties files, but couldn't figure out
what they do. I tried adding them to one of the SMX4 commands, but they
did not seem to do anything.

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


On Fri, 2008-11-07 at 22:10 +0700, Jason Dillon wrote:
 BTW, on this topic, I had considered using something like APT (the  
 maven almost plain text language) or even something more wiki-ish for  
 the help pages.  That is still an option, just needs to be  
 implemented :-)
 
 --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
 
 


Re: Gshell Help Messages

2008-11-07 Thread Jason Dillon

On Nov 7, 2008, at 10:36 PM, Eric Johnson wrote:


That would be cool.

I had a question about using the following properties:
command.argument.xxx.description
command.argument.xxx.tag


Basically, for each command's arguments and options there is an i18n  
message to get the value of its description or token.  This is based  
on the name of the field (or method) which the annotation is applied to.


So if you have:

@Option(name=-g, aliases={--groupId}, argumentRequired=true,  
required=true)

private String groupId;

Then the description of the --groupId option would be configured by  
this message:


command.option.groupId=This is the description of groupId

And options that take arguments or regular arguments have a token too,  
so in the above case this configures that:


command.option.groupId.token=GROUP-ID

This is used to generate what users see when they use --help on the  
given command based on their locale.



I saw them in a couple of the properties files, but couldn't figure  
out
what they do. I tried adding them to one of the SMX4 commands, but  
they

did not seem to do anything.


Well you need to be sure to follow the convention, for example there  
is no .description or .tag suffixes for these things ;-)


Ping me back if you still have questions.

--jason




Re: Re-creating SampleTxDatasource/SampleNoTxDatasource by hand...

2008-11-07 Thread David Jencks


On Nov 6, 2008, at 4:57 PM, jck wrote:



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 have no idea how to do anything with eclipse, and think that a build  
system is a more reliable and reproducible build system than an ide.


I would:
1. copy the plugins/system-database/system-database maven project to a  
location of your choice and change the parent and id so it is clearly  
not part of geronimo.  You'll have to find the plugin management  
section that configures the car-maven-plugin and include it in your  
pom (or an ancestor pom).  Or you could make a new project with the  
geronimo-plugin-archetype and just copy the plan.
2. modify the plan to include userName and password config-properties  
and set the database location info as needed
3. change the pom to use the tranql-connector-derby-client-local or  
tranql-connector-derby-client-xa connector

4. build
5 install the resulting plugin in an appropriate server.

thanks
david jencks




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.






new bie

2008-11-07 Thread Minh Tu Duong

i d like to be member of Geronimo userlist.


Re: new bie

2008-11-07 Thread Vamsavardhana Reddy
Send mail to the id [EMAIL PROTECTED] to subscribe to the
list.

On Fri, Nov 7, 2008 at 9:17 PM, Minh Tu Duong [EMAIL PROTECTED] wrote:

 i d like to be member of Geronimo userlist.




-- 
Vamsi


Re: Configuring log4j as jvm environment variable fails

2008-11-07 Thread Manu George
Hi Hearty,

My understanding was that we just needed to hide the log4j and slf4j
classes to use logging
However a quick search came up with this

http://webui.sourcelabs.com/geronimo/mail/user/threads/Logging_in_Geronimo_2.0.1.meta

It lists the same problem and a solution

In case of wanting to use a properties file, You can configure log4j
for you app as follows

1) Write a gbean that will initialize log4j

eg:

package test

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.geronimo.gbean.GBeanInfo;
import org.apache.geronimo.gbean.GBeanInfoBuilder;
import org.apache.geronimo.gbean.GBeanLifecycle;
import org.apache.log4j.PropertyConfigurator;

public class Log4JInitGBean {

public Log4JInitGBean(String log4jResource, ClassLoader classloader)
throws IOException {
InputStream in;
if (log4jResource != null) {
in = classloader.getResourceAsStream(log4jResource);
if (in == null) {
throw new NullPointerException(
No log4j properties resource 
found at 
+ 
log4jResource);
}
} else {
return;
}
Properties props = new Properties();
try {
props.load(in);
} finally {
in.close();
}
PropertyConfigurator.configure(props);
}

public static final GBeanInfo GBEAN_INFO;

static {
GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(
Log4JInitGBean.class);
infoBuilder.setPriority(2);
infoBuilder.addAttribute(log4jResource, String.class, true);
infoBuilder.addAttribute(classLoader, ClassLoader.class, 
false);
infoBuilder.setConstructor(new String[] { log4jResource,
classLoader });

GBEAN_INFO = infoBuilder.getBeanInfo();
}

public static GBeanInfo getGBeanInfo() {
return GBEAN_INFO;
}

}

Define this gbean in your plan via this entry

gbean name=Log4jConfiguration class=test.Log4JInitGBean
   attribute name=log4jResourcefp-log4j.properties/attribute
  /gbean

This will initialize ur log4j. Now since you are using slf4j as a
wrapper over log4j. You can hide the two projects that may already be
loaded in the parent classloaders via

 sys:hidden-classes
  sys:filterorg.apache.log4j/sys:filter
  sys:filterorg.slf4j/sys:filter
/sys:hidden-classes

Remember to package your own copies or add dependencies in your plan
for the slf4j and log4j jars
This should have your logging working.

2) Another way is to use the ApplicationLog4jConfigurationGBean though
I was not able to get it to work as expected

3) I was not getting log4j to initialize with the configuration I
specified without using the gbean above

I need to investigate more into 2 and 3.

Regards
Manu

P.S In your log4j.properties you can give the file path as
log4j.appender.FILE.file=${org.apache.geronimo.server.dir}/var/log/test.log
where org.apache.geronimo.server.dir is a system property


On Fri, Nov 7, 2008 at 4:10 PM, Hearty [EMAIL PROTECTED] wrote:

 I have tried the below 2 options of setting my fp-log4j.properties.
 Both these options fails. I am not able to see log files created.

 SET
 JAVA_OPTS=-Dlog4j.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties

 SET
 JAVA_OPTS=-Dorg.apache.geronimo.log4jservice.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties

 These envionment variable I've specified from a command prompt and I've run
 start-server command from the same instance.

 My fp-log4j.properties is as follows

 #attach an appender to the base apacheds package logger:
 log4j.logger.org.apache.directory=INFO,fp
 #do not log apacheds to geronimo logs:
 log4j.additivity.org.apache.directory=false


 #Configure the fp specific appender:
 log4j.appender.fp=org.apache.log4j.DailyRollingFileAppender
 log4j.appender.fp.layout=org.apache.log4j.PatternLayout
 # geronimo style logging
 log4j.appender.fp.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n

 log4j.appender.fp.append=true
 log4j.appender.fp.file=${org.apache.geronimo.server.dir}/var/log/fp.log
 log4j.appender.fp.bufferedIO=false


 #focal point specific log settings
 log4j.logger.com.telelogic.focalpoint=DEBUG
 log4j.logger.com.telelogic.focalpoint.dao.jdbc.Jdbc=OFF
 log4j.logger.com.telelogic.focalpoint.dao.ViewExecutor=OFF
 log4j.logger.org.apache.catalina=INFO
 log4j.logger.org.springframework=INFO
 log4j.logger.net.sf.ehcache.distribution=INFO

 Please advice me where I went wrong
 --
 

Re: StringIndexOutOfBoundsException in getClassFileName

2008-11-07 Thread Doug Reeder
The URL is the root URL for my web app, i.e. something
likemyhost.org/FooApp  or
myhost.org/FooApp/

The welcome-files entry in web.xml includes index.jsp, and that's what I'm
expecting to run.  It's a fairly simple JSP, for what that's worth.

Also, the other JSPs in my webapp seem to run fine.


On Fri, Nov 7, 2008 at 9:45 AM, Kevan Miller [EMAIL PROTECTED] wrote:

 Hi Doug,


 On Nov 7, 2008, at 1:29 AM, Doug Reeder wrote:

  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?


 No.


 2) Where should I be looking to fix this? None of the source code files in
 the stack trace are mine!


 Tomcat source code, in this case. Jetty uses the Jasper compiler for JSP
 compilation. In particular --
 http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/java/org/apache/jasper/JspCompilationContext.java?revision=678601view=markup

 What's the URI of your JSP?

 Tomcat is looking for the last '/' character in your URI, creating a
 substring based on the remainder of the URI, and trying to 

save file physical FileUpload

2008-11-07 Thread Rodrigo Baeza O
Hello,
   Let me know if anyone can help me with this problem.
I'm using Geronimo 2.1.2 with Myface and tomahawk-1.1.6, I am dealing
inputFileUpload, specifically the question is where you saved the physical
archives.
Thanks to all

-- 
Saludos
Rodrigo Baeza O.


Re: StringIndexOutOfBoundsException in getClassFileName

2008-11-07 Thread Kevan Miller


On Nov 7, 2008, at 12:19 PM, Doug Reeder wrote:


The URL is the root URL for my web app, i.e. something like
myhost.org/FooApp   or myhost.org/FooApp/

The welcome-files entry in web.xml includes index.jsp, and that's  
what I'm expecting to run.  It's a fairly simple JSP, for what  
that's worth.


Also, the other JSPs in my webapp seem to run fine.


Can you give your app a try on a Geronimo (Tomcat) server? Would be  
interesting to see if this is common between Tomcat-Jasper and Jetty- 
Jasper. Or, if this is unique to Jetty-Jasper... I suspect it's going  
to be Jetty specific...


I'd go ahead an open a Jira. If you have a test app that you can  
attach to the Jira, that would be great...


--kevan



Re: StringIndexOutOfBoundsException in getClassFileName

2008-11-07 Thread Doug Reeder
On Geronimo (Tomcat) 2.1.3, the JSP compiles and runs fine.  I can't  
attach my actual app to a Jira, but I'll see if I can pare it down to  
a test app.




On Nov 7, 2008, at 5:55 PM, Kevan Miller wrote:



On Nov 7, 2008, at 12:19 PM, Doug Reeder wrote:


The URL is the root URL for my web app, i.e. something like
myhost.org/FooApp   or myhost.org/FooApp/

The welcome-files entry in web.xml includes index.jsp, and that's  
what I'm expecting to run.  It's a fairly simple JSP, for what  
that's worth.


Also, the other JSPs in my webapp seem to run fine.


Can you give your app a try on a Geronimo (Tomcat) server? Would be  
interesting to see if this is common between Tomcat-Jasper and Jetty- 
Jasper. Or, if this is unique to Jetty-Jasper... I suspect it's  
going to be Jetty specific...


I'd go ahead an open a Jira. If you have a test app that you can  
attach to the Jira, that would be great...


--kevan





Geronimo not found at login subject for Jackrabbit JCA.

2008-11-07 Thread Markku Saarela

Hi,

Jackrabbit 1.4 (1.4.1 core)  JCA deployed to Geronimo 2.1.1. Web 
application or ejb session bean  failed with repository login. 
InitialContext lookup find Repository but calling repository.login( new 
SimpleCredentials( system, manager.toCharArray() ) ); method results 
exception:


Caused by: javax.resource.ResourceException: No subject for container 
managed security
  at 
org.apache.geronimo.connector.outbound.SubjectInterceptor.getConnection(SubjectIntercepto 


r.java:51)
  at 
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(Connecti 


onHandleInterceptor.java:43)
  at 
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java 


:39)
  at 
org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(Connec 


tionTrackingInterceptor.java:66)
  at 
org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(Abstr 


actConnectionManager.java:87)
  at 
org.apache.jackrabbit.jca.JCARepositoryHandle.login(JCARepositoryHandle.java:98) 



So how to configure Geronimo to provide subject to connector?

rgds,

Markku