Profiling with Geroinimo 2.0.1

2008-02-28 Thread Java_James

Hi all,

I'm trying to find a halfway decent, open source, profiler that I can use
with Geronimo.  Unfortunatly some of the profilers I have tried do not seem
to want to work with Geronimo (2.0.1).

Does anyone have a profiler they could recommend?  Open Source/Freeware is a
must.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Profiling-with-Geroinimo-2.0.1-tp15741008s134p15741008.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Geronimo 2/Log4j question

2007-09-24 Thread Java_James

Hi all,

I tried searching for an answer on this one, but couldnt find anything.  

I'm using geronimo 2, struts 2 and the latest log4j package.  I've deployed
an ear file with an ejb jar and a war file.

For the most part, everything works just fine.  However, despite the fact
that I have my log4j.xml in the WEB-INF/classes folder, the app is picking
up the logging for geronimo instead of for my app.  

Is there something special I have to do for it to use the logging config in
my war?  I don't really want all my logs in geronimo.out

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Geronimo-2-Log4j-question-tf4510784s134.html#a12865061
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: JPA issue when migrating to geronimo 2.0.1

2007-08-29 Thread Java_James


djencks wrote:
> 
> What is your persistence.xml?
> 

Thanks for your quick reply.  I actually solved my problem shortly after
posting.  Just in case anyone else is having this problem it seems that
geronimo 2.0.1 has a problem auto loading the geronimo transaction manager.

I added the following properties to my persistence.xml and it started
working just fine




-- 
View this message in context: 
http://www.nabble.com/JPA-issue-when-migrating-to-geronimo-2.0.1-tf4348941s134.html#a12393956
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



JPA issue when migrating to geronimo 2.0.1

2007-08-29 Thread Java_James

I was wondering if anyone could help me with a problem I am having after
migrating to geronimo 2.0.1 (from m6).

I have a basic web app that uses openejb/openjpa for persistence.  It is
also using JTA.  

When using M6, I would call entityManager.persist(entityobj);

The value would be stored in the database just fine (Flush Type was set to
AUTO).

However, once I moved to 2.0.1, the value would not be stored.  I added
entityManager.flush() to force the commit, and now I get the following
exception:

11:02:48,362 ERROR [OpenEJB] The bean instances business method encountered
a system exception: null<1.0.0-r561970-r561970 fatal
general error> org.apache.openjpa.persistence.PersistenceException: null
  
at
org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.getConnection(AbstractJDBCSeq.java:162)
  
at
org.apache.openjpa.jdbc.kernel.NativeJDBCSeq.nextInternal(NativeJDBCSeq.java:209)
   
at
org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.next(AbstractJDBCSeq.java:60)

at org.apache.openjpa.util.ImplHelper.generateValue(ImplHelper.java:159)
   
at
org.apache.openjpa.util.ImplHelper.generateFieldValue(ImplHelper.java:143)  

at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignField(JDBCStoreManager.java:557)
  
at org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:438)   
   
at org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:423)   
   
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignObjectId(JDBCStoreManager.java:541)
   
at
org.apache.openjpa.kernel.DelegatingStoreManager.assignObjectId(DelegatingStoreManager.java:134)

at
org.apache.openjpa.kernel.StateManagerImpl.assignObjectId(StateManagerImpl.java:501)

at
org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:2763) 

at org.apache.openjpa.kernel.PNewState.beforeFlush(PNewState.java:39)   
   
at
org.apache.openjpa.kernel.StateManagerImpl.beforeFlush(StateManagerImpl.java:933)
   
at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1919) 
   
at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1879) 
   
at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1650) 
   
at
org.apache.openjpa.kernel.DelegatingBroker.flush(DelegatingBroker.java:978) 

at
org.apache.openjpa.persistence.EntityManagerImpl.flush(EntityManagerImpl.java:489)
  
at
org.apache.geronimo.persistence.CMPEntityManagerTxScoped.flush(CMPEntityManagerTxScoped.java:153)



I after tracing through the code, I found that the exception is coming from
the following code in OpenJPAs AbstractJDBCSeq.java:

try {
TransactionManager tm = getConfiguration()
.getManagedRuntimeInstance().getTransactionManager();
_outerTransaction = tm.suspend();
tm.begin();
return store.getConnection();
} catch (Exception e) {
throw new StoreException(e);
}

Upon further investigatoin, I found that the TransactionManager seems to be
an instance of RegistryManagedRuntime.java, which throws an exception when
suspend is called.

This is where I am stuck, and not sure how to continue.  Has anyone else had
a similar problem, or would anyone know what the problem might be?

Thanks in advance for your help.
-- 
View this message in context: 
http://www.nabble.com/JPA-issue-when-migrating-to-geronimo-2.0.1-tf4348941s134.html#a12390954
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



RE: Struts 2/Geronimo Security Realm best practices

2007-06-27 Thread Java_James

Thanks for the response.

I'm trying to access the security realm programmatically through JAAS.  I
suppose I should also mention that I am using the latest release of Geronimo
2.  There seems to be very little documentation for this release.

I have created the following realm:

http://geronimo.apache.org/xml/ns/deployment-1.2";>


console.realm
Testing
1.0
car



org.apache.geronimo.configs
j2ee-security
car



http://geronimo.apache.org/xml/ns/deployment-1.2";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
Testing

ServerInfo


JaasLoginService


http://geronimo.apache.org/xml/ns/loginconfig-1.2";>

Testing
   
org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule
users.properties
groups.properties


   
Testing-Audit
   
org.apache.geronimo.security.realm.providers.FileAuditLoginModule
login_audit.log






When I set up a new LoginContext in my application, I am not sure what
values to pass it in order to access this realm.

any help would be greatly appreciated.



Mark Aufdencamp wrote:
> 
> A nice example of defining Realms and Roles exists in the sample
> applications. 
>   
> http://cwiki.apache.org/GMOxDOC11/web-application-security-sample.html 
> I'm using Struts 1.2 with a MySQL Backed Security Realm.  The real
> trick involves setting up a login page with the proper form that submits
> to j_security_check along with setting up the security realm and the roles
> in web.xml/geronimo-web.xml.  If you've cheked out the sample and
> have more specific questions, post them and we'll give a shot at a right
> answer.:) 
>   
> Mark Aufdencamp 
> [EMAIL PROTECTED] 
> 
>  Original Message  Subject: Struts 2/Geronimo Security
> Realm best practices From: Java_James <[EMAIL PROTECTED]> Date:
> Mon, June 25, 2007 3:53 pm To: user@geronimo.apache.org Hi all,
> 
> I'm new to the world of struts 2 and geronimo.  I was wondering if there
> were any best practices when it came to setting up your web
> application to
> use Geronimo's security realm.
> 
> I'm hoping to be able to call the security realm through an action (or
> some
> sort of wrapped object doing the authentication).  There seems to be very
> little documentation on using the two technologies together.
> 
> Any help would be appreciated.
> 
> Thanks.
> -- 
> View this message in context:
> http://www.nabble.com/Struts-2-Geronimo-Security-Realm-best-practices-tf3978596s134.html#a11294301
>  
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-Geronimo-Security-Realm-best-practices-tf3978596s134.html#a11329990
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Struts 2/Geronimo Security Realm best practices

2007-06-25 Thread Java_James

Hi all,

I'm new to the world of struts 2 and geronimo.  I was wondering if there
were any best practices when it came to setting up your web application to
use Geronimo's security realm.

I'm hoping to be able to call the security realm through an action (or some
sort of wrapped object doing the authentication).  There seems to be very
little documentation on using the two technologies together.

Any help would be appreciated.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Struts-2-Geronimo-Security-Realm-best-practices-tf3978596s134.html#a11294301
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.