Re: [JBoss-user] Running lab4 from JBoss advanced on 3.2.1 --> fails

2003-11-27 Thread Jon Haugsand
* Jon Haugsand
> * Adrian Brock
>> You should remove the SRP stuff from
>> client/auth.conf
>> It is only there as an example.
>
> OK, but I am just in the process to make my own authentication
> modules.  Good thing to experience with a working example
>
> It does not work though.  :-)

I found where the wrong configuration was, in
JBOSS_HOME/client/auth.conf.  However, it still does not work, but
maybe I forget the whole thing?

run-init:
 [java] Name = jduke
 [java] Pass = theduke
 [java] ERROR [main] (SRPLoginModule.java:391) - Failed to 
lookup(SRPServerInterface)
 [java] javax.naming.NameNotFoundException: SRPServerInterface not bound
 [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
 [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
 [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
 [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
 [java] at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)


-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Running lab4 from JBoss advanced on 3.2.1 --> fails

2003-11-27 Thread Jon Haugsand
* Adrian Brock
> You should remove the SRP stuff from
> client/auth.conf
> It is only there as an example.

OK, but I am just in the process to make my own authentication
modules.  Good thing to experience with a working example

It does not work though.  :-)

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Running lab4 from JBoss advanced on 3.2.1 --> fails

2003-11-27 Thread Jon Haugsand

When running lab4, the security lesson, on my JBoss 3.2.1, it fails.
Here is an excert from the stack trace.  As far as I can find out,
there _is_ no org.jboss.srp.jaas.SRPLoginModule, but rather a
org.jboss.security.srp.jaas.SRPLoginModule, but when I change the
auth.conf file this error still occures.

Any suggestions?  Is this an error from the client or from the server?


 [java] Name = jduke
 [java] Pass = theduke
 [java] Login failed:
 [java] javax.security.auth.login.LoginException: unable to find LoginModule 
class: org.jboss.srp.jaas.SRPLoginModule
 [java] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:711)
 [java] at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
 [java] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
 [java] at java.security.AccessController.doPrivileged(Native Method)
 [java] at 
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
 [java] at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
 [java] at amazin.beans.Client.doLogin(Client.java:61)
 [java] at amazin.beans.Client.main(Client.java:38)
 [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
Lorg/jboss/tm/TransactionPropagationContextFactory;
 [java] at java.lang.Class.getDeclaredFields0(Native Method)
 [java] at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
 

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Application is hanging

2003-09-24 Thread Jon Haugsand
A possible dead lock in our application.  Shouldn't this be detected?
And since everything runs in the same transaction context, I cannot
think of any reason for it:

12:19:59,720 WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=[.100078.]
12:19:59,720 WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=[.100077.]
12:19:59,721 WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=[.100071.]
12:19:59,721 WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=[.100079.]
12:21:19,724 WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=[.6.]
12:21:23,661 WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=[.100081.]
12:22:25,553 WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=[.100082.]



We are running 3.2.1 on Linux.  Any suggestion on where to look?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Re: EjbQL-bug in Jboss?

2003-09-15 Thread Jon Haugsand
* Jon Haugsand
> Thanks.  That was the problem.  (Source forge should learn from
> Bugzilla here.  It was quite cumbersome to get into the correct
> state.)

However, JBoss does not look at this as a bug:

Message:
Logged In: YES 
user_id=543482

It is defined by the specification.

Then either

 (1) JBoss cannot be used, or
 (2) Characters cannot be used in fields.

Regretably.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Re: EjbQL-bug in Jboss?

2003-09-15 Thread Jon Haugsand
* Adrian Brock
> On Mon, 2003-09-15 at 11:09, Jon Haugsand wrote:
>> * Adrian Brock
>> > www.sf.net/projects/jboss
>> > click bugs
>> 
>> Yes, I know.  But I still cannot find a way to REPORT a bug.  (Bug I
>> have been blind before. :-) )
>
> Have you logged into sourceforge?

Thanks.  That was the problem.  (Source forge should learn from
Bugzilla here.  It was quite cumbersome to get into the correct
state.)

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Re: EjbQL-bug in Jboss?

2003-09-15 Thread Jon Haugsand
* Adrian Brock
> www.sf.net/projects/jboss
> click bugs

Yes, I know.  But I still cannot find a way to REPORT a bug.  (Bug I
have been blind before. :-) )

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: EjbQL-bug in Jboss?

2003-09-15 Thread Jon Haugsand
* Adrian Brock
> Report it as a bug. I don't see it mentioned in the spec.

Hmm, cannot find any way to report any bug.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: EjbQL-bug in Jboss?

2003-09-15 Thread Jon Haugsand
* Jonathan O'Connor
> Jon,
> 
> Java type char is a numeric type!  But of course you can store '0', '1', 
> 'a' and 'n' in it, as well as 0, 1, 789, and so on.
> 
> Of course, this doesn't explain your problem.
> Ciao,
> Jonathan O'Connor
> XCOM Dublin

I considered that, and accepted that char(1) is numeric.  This means
that it is one byte long, and in most character sets, this would mean
that basically the US ASCII set should be useable.  Therefor I changed
from '0' to the ASCII value which is 48.  

Do you think this helped?

No.  Admittedly deployment worked, but when issuing the finder, I got
an Oracle error message.

At least something is wrong.
-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: EjbQL-bug in Jboss?

2003-09-15 Thread Jon Haugsand
* Adrian Brock
> Report it as a bug. I don't see it mentioned in the spec.
> But I would guess it should different char and java.lang.Character
> as a character type, i.e. a string or a number.

As a matter of fact, if converted into a number, that is, the ascii
representation of the character, like this:


* query="SELECT OBJECT(k) FROM Kunde AS k WHERE k.tilstand = 1 AND 
k.rtgsStatus = false AND k.tillatLaaneadgang = 48 "

Then, JBoss is satisfied, but Oracle protests:

Find failed: java.sql.SQLException: ORA-01722: invalid number


I feel that the only work around is to change into NUMBER(1) or into
VARCHAR(255).

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


EjbQL-bug in Jboss? (was: Re: [JBoss-user] Isn't the string literal '0' allowed?)

2003-09-15 Thread Jon Haugsand
* Adrian Brock
> On Mon, 2003-09-15 at 09:26, Jon Haugsand wrote:
>> * Adrian Brock
>> > It is expecting a number not a string.
>> 
>> And why should it expect a numer and not a string?  Strings are
>> clearly allowed in EJB QL.
>
> because tillatLaaneadgang is a numeric type

But it isn't!  It is of char(1).  Does JBoss consider this as numeric?
It is the opposite in Weblogic where it fails if assumed numeric.

Oracle certainly does not consider this as numeric.  It can contain
any of the values '0', '1', 'A', 'N'.

Further, it certainly works in JBoss as well, e.g.

  public abstract void setTillatLaaneadgang( char v);
  kunde.setTillatLaaneadgang( 'N' );

I cannot possible imagine this as something else than a JBoss bug.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Isn't the string literal '0' allowed?

2003-09-15 Thread Jon Haugsand
* Adrian Brock
> It is expecting a number not a string.

And why should it expect a numer and not a string?  Strings are
clearly allowed in EJB QL.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] NullPointerException when trying to access a home method.

2003-09-15 Thread Jon Haugsand
* Jon Haugsand
> The following stack trace shows a strange situation.  Can anyone hint
> to me where to look for the error?

Actually, the problem happens to take place during deployment.  The
resulting error seen here is quite strange, but I still focus on the
problem at deployment.

See separate case.
-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Isn't the string literal '0' allowed?

2003-09-15 Thread Jon Haugsand

We have the following select statement in an Entity Bean:

 * @ejb:select signature="Collection ejbSelectAlleIkkeOppdaterteIDesk()"
 * query="SELECT OBJECT(k) FROM Kunde AS k WHERE k.tilstand = 1 AND 
k.rtgsStatus = false AND k.tillatLaaneadgang = '0'"

But JBoss-3.2.1 does not like it:

2003-09-15 09:20:33,100 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Kunde.findAlleKunder] SQL: SELECT 
t0_k.id FROM KUNDE t0_k WHERE t0_k.tilstand = 1
2003-09-15 09:20:33,101 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Kunde.ejbSelectAlleIkkeOppdaterteIDesk] 
EJB-QL: SELECT OBJECT(k) FROM Kunde AS k 
WHERE k.tilstand = 1 AND k.rtgsStatus = false AND k.tillatLaaneadgang = '0'
2003-09-15 09:20:33,190 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2003-09-15 09:20:33,196 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2003-09-15 09:20:33,196 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2003-09-15 09:20:33,205 ERROR [org.jboss.ejb.EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT 
OBJECT(k) FROM Kunde AS k WHERE k.tilstand = 1 AND k.rtgsStatus = false AND
 k.tillatLaaneadgang = '0''; - nested throwable: 
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "\'0\'" at line 1, column 
106.
Was expecting one of:
"ABS" ...
"LENGTH" ...
"LOCATE" ...
"SQRT" ...
"(" ...
"+" ...
"-" ...
 ...
 ...
 ...
 ...
)
 
Looking into the specification, ejb-2_0-fr2-spec.pdf, I find this
strange.  Anyone know what the proble is?  (In the Oracle schema, the
field tillatLaaneadgang is defined as char(1).

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] NullPointerException when trying to access a home method.

2003-09-15 Thread Jon Haugsand

The following stack trace shows a strange situation.  Can anyone hint
to me where to look for the error?

We have a bunch of Entity Beans that inherit en ejbHomeMethod from a
super class, this is called ejbHomeSlettUnittestdata.  This method
works well in one Entity Bean, but not in another.  Stack trace
follows:


2003-09-15 09:21:20,893 DEBUG [norgesbank.TestUtil] Pant: slettUnittestdata
2003-09-15 09:21:20,898 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException:
java.lang.NullPointerException
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance(JDBCStoreManager.java:555)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:137)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:251)
at 
org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:226)
at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:146)
at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:79)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477)
at org.jboss.ejb.Container.invoke(Container.java:694)
at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:272)
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
at $Proxy58.slettUnittestdata(Unknown Source)
at norgesbank.TestUtil.removeTestdata(TestUtil.java:47)
at 
norgesbank.bank.sil.entiteter.verdipapir.VerdipapirTest.setUp(VerdipapirTest.java:34)
at 
org.apache.cactus.AbstractTestCase.runBareServerTest(AbstractTestCase.java:233)
   
-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] How to deploy simple html and jsp files

2003-09-03 Thread Jon Haugsand
* Sheldon Hearn
> On (2003/09/03 14:22), Jon Haugsand wrote:
>
>> Is it possible to place simple html and/or jsp files directly to
>> JBoss-3.2.1 bundled with Tomcat?  If so, where should you copy the
>> files?
>
> I don't think so.  JBoss needs to know that these files are part of a
> web application to be handled by Tomcat, and Tomcat needs to know that
> these files are associated with a web context.
>
> So you'll need to slap the files into a war.

I thought so, thanks.  Someone meant it was possible.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] How to deploy simple html and jsp files

2003-09-03 Thread Jon Haugsand
Is it possible to place simple html and/or jsp files directly to
JBoss-3.2.1 bundled with Tomcat?  If so, where should you copy the
files?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Web-console problems

2003-08-14 Thread Jon Haugsand

(Retrying)

* Jon Haugsand
> Where in http://localhost:8080/web-console/index.html can one look at
> and administrate the jms queues?
>

Noone seems to know anything about my question, so let me try another
variant.  

Looking into the web-console, I find choices like:

J2EE/JSR-77 Domains/Manager.JBoss(xxx)3.2.1/management
J2EE/JSR-77 Domains/Manager.JBoss(xxx)3.2.1/jms
and so on.

Selecting one of those, all I get is:

J2EE Application 'jms'

Management Object Name:
jboss.management.local:J2EEServer=Local,j2eeType=J2EEApplication,name=jms
Provides Statistics:
false
Deployment Descriptor:

How can I configure my JBoss in order to get more information?


Further, when I open my application tab, I get a list of all my
enterprise beans (small icon is a coffee bean).  However, when I
choose one of my beans, an error occures:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException: org.jboss.mx.util.MBeanProxyCreationException: 
Object name jboss.j2ee:service=EJB,jndiName=Konfigurasjon not found: 
javax.management.InstanceNotFoundException: 
jboss.j2ee:service=EJB,jndiName=Konfigurasjon is not registered.
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)

root cause

javax.servlet.ServletException: org.jboss.mx.util.MBeanProxyCreationException: Object 
name jboss.j2ee:service=EJB,jndiName=Konf

[JBoss-user] [Jon Haugsand] Queue management in web-console

2003-08-14 Thread Jon Haugsand
Where in http://localhost:8080/web-console/index.html can one look at
and administrate the jms queues?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Queue management in web-console

2003-08-14 Thread Jon Haugsand
Where in http://localhost:8080/web-console/index.html can one look at
and administrate the jms queues?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jbossjmx-ant.jar

2003-06-20 Thread Jon Haugsand
* Jon Haugsand
> Trial and error showed me that the file jbossjmx-ant.jar was necessary
> to run a stand-alone client program towards my JBoss application.
>
> I naively thought that the file jbossall-client.jar was enough.  Why
> is that?  (JBoss 3.2.1)
>
> Without it, I get the following error:

Ok, I found it myself.  The file jndi.properties is included in this
file, and the one I served in another place looked like this:

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
#java.naming.provider.url=jnp://localhost:1099

That is, I had commented out the java.naming.provider.url property.
However, I always thought this was correct.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jbossjmx-ant.jar

2003-06-20 Thread Jon Haugsand
Trial and error showed me that the file jbossjmx-ant.jar was necessary
to run a stand-alone client program towards my JBoss application.

I naively thought that the file jbossall-client.jar was enough.  Why
is that?  (JBoss 3.2.1)

Without it, I get the following error:

javax.naming.CommunicationException: Receive timed out.  Root exception is 
java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.peekData(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:622)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1158)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at 
norgesbank.servicelocator.EjbHomeFactory.lookUpHomeObject(EjbHomeFactory.java:555)
at 
norgesbank.servicelocator.EjbHomeFactory.lookUpSynkronGrensesnittHome(EjbHomeFactory.java:467)
at norgesbank.bank.sil.command.TaskCommand.(TaskCommand.java:25)
at norgesbank.bank.sil.command.Sil.doCommand(Sil.java:169)
at norgesbank.bank.sil.command.Sil.main(Sil.java:193)
javax.naming.CommunicationException: Receive timed out.  Root exception is 
java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.peekData(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:622)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1158)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at 
norgesbank.servicelocator.EjbHomeFactory.lookUpHomeObject(EjbHomeFactory.java:555)
at 
norgesbank.servicelocator.EjbHomeFactory.lookUpSynkronGrensesnittHome(EjbHomeFactory.java:467)
at norgesbank.bank.sil.command.TaskCommand.(TaskCommand.java:25)
at norgesbank.bank.sil.command.Sil.doCommand(Sil.java:169)
at norgesbank.bank.sil.command.Sil.main(Sil.java:193)
[n
-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Bug in 3.2.1?

2003-06-06 Thread Jon Haugsand
Look at this fragment.  The call 'findAktivtByIsin' is a finder in
another bean and it fails (just check the stacktrace).  However, it
fails with "ObjectNotFoundException: No such entity".  Why is that?
If it does not exist, shouldn't it fail with "FinderException"?




public void checkConsistency() throws InconsistentDataException
...
try
{
vp = EjbHomeFactory.getFactory().lookUpVerdipapir().findAktivtByIsin( 
this.getIsin() );
} catch( final FinderException e )
{
cat.warn( "Konsistenssjekk feilet." );
throw new InconsistentDataException( e );
}
  



Detail exception is:
javax.ejb.ObjectNotFoundException: No such entity!
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityComm
and.java:46)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.jav
a:591)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.ja
va:312)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(Cac
hedConnectionInterceptor.java:301)
at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:627)
at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.j
ava:998)
at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:8
8)
at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchro
nizationInterceptor.java:188)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(Cac
hedConnectionInterceptor.java:215)
at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:8
8)
at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterc
eptor.java:91)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.ja
va:61)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterc
eptor.java:28)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.ja
va:88)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.jav
a:243)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:9
2)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFind
erInterceptor.java:93)
at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477)
at org.jboss.ejb.Container.invoke(Container.java:694)
at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFact
ory.java:272)
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
at $Proxy59.findAktivtByIsin(Unknown Source)
at 
norgesbank.bank.sil.entiteter.pant.PantBean.checkConsistency(PantBean.java:2167
)

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hot change to the transaction timeout

2003-05-31 Thread Jon Haugsand
* Adrian Brock
> Was the console manager undeployed?

I didn't do anything special.


>
> We currently have no mechanism to make wars
> wait for their required services.

I just found it strange that a change to a deploy/SOMETHING.xml should
mix up the JBoss.


-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Hot change to the transaction timeout

2003-05-30 Thread Jon Haugsand
at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:84)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.registerClassLoader(UnifiedLoaderRepository3.java:778)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.newClassLoader(UnifiedLoaderRepository3.java:134)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at 
org.jboss.deployment.DeploymentInfo.createClassLoaders(DeploymentInfo.java:214)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
      
-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Remote synchronous deployment

2003-05-30 Thread Jon Haugsand
Is there some means to be able to deploy a JBoss application remotely
and synchronously such that it is useable from scripts in a local
network?

I think I can use ssh and/or the http protocol for remote deployment,
but how do I know when the application is deployed so I can start
using its services?

Greping the server.log?  

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] ORA 00921 revisited

2003-05-28 Thread Jon Haugsand
* Jon Haugsand
> Look at the following code fragment:
>
> public void testEqual() throws Exception {
>   cat.debug("testEqual");
>   KonfigurasjonPK pkp = new KonfigurasjonPK(1);
>   KonfigurasjonLocal kl = konfHome.findByPrimaryKey(pkp);
>   kl.getBeskrivelse();
> Collection all = konfHome.findAll();
> 135   kl.getBeskrivelse();
> ...
>
>
> I.e. an entity bean instance is located (kl), and one of it fields are
> fetched.  Then, a findAll is issued on the same entity bean, and then
> the exactly same method is called at line 135.  The statement on line
> 135 fails, while the one on 133 does not.
>
> It look like the findAll is messing something up, and I would
> appreciate any help in locating the error.  There _may_ of course be
> something I have done with my application, but then I should think
> JBoss should give me a better error message.  Stack trace follows
> below.
>
> JBoss 3.2.1, Oracle 9i, java version "1.4.1_01"
>
> (By the way, I tested the same situation in a smaller application and
> this one didn't fail.  Look suspiciously as a resouce problem.)

OK, then I got into something.  When looking at the source code (we
all _love_ open source don't we?) I located some idea of the source of
the problem.  I have the following fragment in jbosscmp-jdbc.xml:

 
none
0
 

When removing the  element, the problem disappeared.  I
guess I have to dig deeper into jboss's  concepts.

However, maybe some of you could issue a warning/error for this during
deployment?


-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no





---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ORA 00921 revisited

2003-05-28 Thread Jon Haugsand
line.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
2003-05-28 12:41:40,402 DEBUG [norgesbank.bank.sil.entiteter.konfigurasjon.SimpleTest] 
tearDown()
2003-05-28 12:41:40,410 DEBUG [org.apache.cactus.server.AbstractWebTestCaller] Test 
result : [Test failed, Exception message = [Load failed; CausedByException is:
ORA-00921: unexpected end of SQL command
]]

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no




---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Transaction differences in weblogic and jboss

2003-03-31 Thread Jon Haugsand
* Manoj Sasidharan
> Are you running on WLS 7.x??? We found some differences b/w WLS 6.x and WLS
> 7.x in the transaction feature.

We use Weblogic 7.0.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Transaction differences in weblogic and jboss

2003-03-27 Thread Jon Haugsand
I think I have discovered a difference between jboss and weblogic
concerning transactions and this is (currently) a bit troublesome for
us.  Given the following metacode:

Start transaction
   a = findBeanInstance(p);
   a.getValue();
   Start transaction
   a.setValue(newValue);
   End transaction
End transaction

This is problem free in weblogic, but jboss errs with deadlock
detection.  Face value, I think JBoss is "correct" because the
container does not know whether you are going to update the value
after the nested transaction.

But can anyone comment on this?  E.g. is it possible to tune this
behaviour in JBoss?

(In the long term we have to rewrite our code so that we avoid such
constructions all together.)

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Possible bug: unchecked does not seem to work.

2003-03-25 Thread Jon Haugsand
* Jon Haugsand
>
> flag = "required" />
>
> 

I found out:

   
  
guest
     
   

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Possible bug: unchecked does not seem to work.

2003-03-25 Thread Jon Haugsand
* Kevin Conner
> > Does not JBoss support the "unchecked" element in 
> > ejb-jar.xml/method-permission?
> 
> You still need to have a principal though.  Some login
> modules allow you to specify the principal that is used
> when unauthenticated access is requested.  If you don't
> specify this then all access must be authenticated.
> 
> Which modules are you using?

I guess I use the following one.

   
  
   


And I see from the doc that you can specify the following option:
unauthenticatedIdentity=name, but how do I put this one into the above
structure?

By the way, thanks a lot.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Possible bug: unchecked does not seem to work.

2003-03-25 Thread Jon Haugsand

Does not JBoss support the "unchecked" element in ejb-jar.xml/method-permission?

In my ejb-jar.xml I have the following fragment:

   
  
  
 SilData
 Home
 create
 
 
  
   

However, when I try to call this method by:

cat.debug( "silPlatromfTest: setUp() " );
EjbHomeFactory ehf = EjbHomeFactory.getFactory();
cat.debug( "setup(): getFactory()" );
SilDataHome sdh = ehf.lookUpSilDataHome();
cat.debug( "setup(): lookUpSilDataHome()" );
sRemote = sdh.create();

The last one fails with:

 [java] java.rmi.ServerException: RemoteException occurred in server thread; 
nested exception is: 
 [java] java.rmi.ServerException: EJBException:; nested exception is: 
 [java] javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
 [java] Authentication exception, principal=null
 [java] java.rmi.ServerException: EJBException:; nested exception is: 
 [java] javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
 [java] Authentication exception, principal=null
 [java] javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
 [java] Authentication exception, principal=null
 [java] at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)


JBoss version is 3.0.2.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Application deadlock detected.

2003-03-21 Thread Jon Haugsand
* Jon Haugsand
> When porting an application from weblogic to JBoss, the following
> failure took place:
> 
>   Application deadlock detected: Current thread already has tx lock in
>   different transaction.

I found out what happened, here is a sketch:

1 Transaction begins
2Entity bean instance is read
3Transaction begins
4   Same entity bean instance is read
5   Instance is changed
6Transaction ends
7More action
8 Transaction ends

JBoss does not like this behaviour as we get a dead lock detection at
line 4.  Weblogic does not complain.  Can anyone tell me what can
possible go wrong here (I mean appart from JBoss's dead lock
detection)?

(I do not like the nested transactions, but it allegedly was needed to
resolve a similar dead lock situation in the Weblogic.)

How do you attack such situations anyway?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Application deadlock detected.

2003-03-21 Thread Jon Haugsand

When porting an application from weblogic to JBoss, the following
failure took place:

  Application deadlock detected: Current thread already has tx lock in
  different transaction.

I have problem resolving this, so I ask:

1. What kind of operations implies that the tx lock is reserved?
2. Why is this behaviour different from Weblogic?
3. Is it possible to log at which point my application enters and
   leaves transactions?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Transaction attributes

2003-02-11 Thread Jon Haugsand
* Lennart Petersson
> I think it is TX_REQUIRED by default.

Thanks to you and Alex.  (Amazing how fast one gets answers.)  Is this
JBoss-spesifics a part of Sun's ejb spec?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Transaction attributes

2003-02-11 Thread Jon Haugsand
In ejb-jar.xml one can (and should) define the applications
transaction policy.  This is typically done in two levels, per bean
and per finder methods, is it?

Anyway, what happens if you _don't_ give any specifics?  I.e. what is
the default behaviour?  Is it "supported"?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Where should auth.conf go for a client app?

2003-02-04 Thread Jon Haugsand

* Jon Haugsand
> Is it possible to include this file (and the policy file) inside the
> client jar file where the client application resides? 

* Scott M. Stark
> Yes. Use a jar URL to reference the file.

Er..?  Where? 

(How? E.g. "file:jar:!auth.conf"?)


-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] basic clustering question

2003-01-31 Thread Jon Haugsand

(Sacha is the right man here, but I'll try anyway.)

* Brian McSweeney
>  
> 1) I assume that we would have a simple router infront of each of the
> boxes 
> to handle load balancing and just picking one of the boxes at random to
> send 
> requests to. Is this how it's normally done?

The "router" is a proxy running on the client side, and each time you
communicate with one of your beans, the client  execute code that
decides which server to ask.  Every time the cluster discovers that
the cluster configuration changes, the client proxy is updated
(whenever communication is done).

>  
> 2) do they both have to use one instance of a database eg on box 3, if
> so, 
> isn't this a single point of failure anyway? How is this normally done?

This has bothered me as well.  Another problem is that we use
messaging (actually IBM's MQ Series) and there is also a single point
of failure.

>  
> 3) in order to cluster, do all the beans have to be remote to keep the
> other 
> nodes updated, or can the entity beans be local?

Entity beans are updated through the database.  There is some caching
and locking issues though, and I think Sacha et al is working on some
distributed cache and/or lock.  The interesting case is the stateful
session beans.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How to assign method-permission to create methods?

2003-01-29 Thread Jon Haugsand
* Gary S. Cuozzo
> I've seen this before as well.  I *think* that I fixed it by putting
> the following xdoclet tag up in my class-level area:
> @ejb:permission  unchecked=""
> 
> This adds an  tag into ejb-jar.xml for the methods that
> don't have security permissions specified.  Then I override the
> permissions for each method that I want secured with specific roles.

Thanks for the reply.  Actually I found out something.  As a matter of
fact, the create resides in a superclass and there we did not have any
XDoclet tags.  Placing them there helped a lot.

However, it is strange that the behaviour of Weblogic is different
from JBoss.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to assign method-permission to create methods?

2003-01-28 Thread Jon Haugsand

Can't see what I do wrong here, I get [SecurityInterceptor] No method
permissions assigned to method=create, interface=HOME.  But isn't the
following good enough?

  
 description not supported yet by ejbdoclet
 silbrukere
 siladministratorer
 
description not supported yet by ejbdoclet
SynkronGrensesnitt
*
 
  

Cannot find I do anything different from what we did on the JBoss
advanced training (well, maybe we used cmp 1.1 then).  So where shall
I look to find the error?

I run jboss-3.0.2_tomcat-4.0.4.  Full stacktrace from server follows:

12:32:25,539 ERROR [SecurityInterceptor] No method permissions assigned to 
method=create, interface=HOME
12:32:25,543 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: No method permissions assigned to method=create, 
interface=HOME
at 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:190)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at 
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
at org.jboss.ejb.Container.invoke(Container.java:738)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:370)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
at sun.rmi.transport.Transport$1.run(Transport.java:147)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:479)

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with JBoss and ejbql

2003-01-28 Thread Jon Haugsand
* Jon Haugsand
> Is anyone able to tell me what is wrong with the following ejbql
> expression (formatted for readability):
> 
> 
> 

It seems as >= is not allowed.  It worked when I changed into
vp.forfallsDato > ?1 OR vp.forfallsDato = ?1.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Where should auth.conf go for a client app?

2003-01-28 Thread Jon Haugsand
* Scott M. Stark
> You need to specify a java.security.auth.login.config system
> property giving the URL or path of the login configuration file.

Is it possible to include this file (and the policy file) inside the
client jar file where the client application resides?  This would make
it easier to write distributable client applications without having to
either configure each machine with these files or being sure that
there are reachable url resources.  (And it won't slow down the client
applications as well having to use http.)

I mean, the client side does not implement any security enforcement
anyway, so there is no need to protect these files, is there?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with JBoss and ejbql

2003-01-27 Thread Jon Haugsand
* Alex Loubyansky
> sorry for stupid question, but didn't you accidently add '(' when formatted for 
>readability?
> you can also remove brackets around IS NULL expression.

Actually, I originally did not have the parenthesis, but I included them
and retried against JBoss.  So, no, I did not include them just now.
(The warning text also says so:
"Encountered "vp.forfallsDato IS NULL ) OR ...")

> 
> alex
> 
> Monday, January 27, 2003, 12:48:06 PM, you wrote:
> 
> JH> Is anyone able to tell me what is wrong with the following ejbql
> JH> expression (formatted for readability):
> 
> JH> 
> JH> 
> 
> JH> It fails with the following:
> 
> JH> 11:41:44,830 WARN  [ServiceController] Problem starting service 
>jboss.j2ee:service=EJB,jndiName=norgesbank/bank/sil/entiteter/verdipapir/VerdipapirLocal
> JH> org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested 
>throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered 
>"vp.forfallsDato IS NULL ) OR vp.forfallsDato >="
> JH> at line 1, column 211.
> JH> Was expecting one of:
> JH> "ABS" ...
> JH> "LENGTH" ...
> JH> "LOCATE" ...
> JH> "SQRT" ...
> JH> "(" ...
> JH> "+" ...

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problem with JBoss and ejbql

2003-01-27 Thread Jon Haugsand
Is anyone able to tell me what is wrong with the following ejbql
expression (formatted for readability):




It fails with the following:

11:41:44,830 WARN  [ServiceController] Problem starting service 
jboss.j2ee:service=EJB,jndiName=norgesbank/bank/sil/entiteter/verdipapir/VerdipapirLocal
org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable: 
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "vp.forfallsDato IS NULL 
) OR vp.forfallsDato >=" at line 1, column 211.
Was expecting one of:
"ABS" ...
"LENGTH" ...
"LOCATE" ...
    "SQRT" ...
"(" ...
"+" ...

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] What is the proper way to name a datasource?

2002-11-08 Thread Jon Haugsand
We have an application that we are trying out on several application
servers, i.e. Borland, Weblogic and of course JBoss.  This
application uses CMP, but we also need to do some JDBC calls directly,
and consequently we need to get the name of the datasource from the
application server.

We do it like this in JBoss:

Context ctx = new InitialContext();
DataSource pool = (DataSource)ctx.lookup("java:OracleDS");
return pool.getConnection();

However using "java:" does not work in Borland and Weblogic, it works
well with:

Context ctx = new InitialContext();
DataSource pool = (DataSource)ctx.lookup("OracleDS");
return pool.getConnection();

So, is there a way that works in all cases?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Transaction exception, possible timing problems?

2002-11-04 Thread Jon Haugsand
re object!javax.transaction.SystemException: 
Could not enlist XAResource!javax.transaction.RollbackException: Already 
marked for rollback)
 [java] <>
 [java] javax.ejb.FinderException: Find failed: 
org.jboss.util.NestedSQLException: Could not enlist in transaction on 
entering meta-aware object!javax.transaction.SystemException: Could not 
enlist XAResource!javax.transaction.RollbackException: Already marked for 
rollback; - nested throwable: (javax.resource.ResourceException: Could not 
enlist in transaction on entering meta-aware 
object!javax.transaction.SystemException: Could not enlist 
XAResource!javax.transaction.RollbackException: Already marked for rollback)
 [java]     <>


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: SV: [JBoss-user] Extremely slow transaction

2002-10-31 Thread Jon Haugsand
* Jon Haugsand
> 
> Jeg synes jeg ble kvitt disse når jeg la inn følgende kode i bønnen:
> 
>  * @jboss:read-ahead strategy="none" page-size="0"

Sorry for the Norwegian.  This was meant for Odd Rune only.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: SV: [JBoss-user] Extremely slow transaction

2002-10-31 Thread Jon Haugsand
* Odd Rune Bekkum
> Hi!
> I'm working on the same project as Jon.
> 
> Digging into it a bit more I've found the following:
> If we do a findAll on a table containing 252 rows we get 252 SQL calls,
> the first one containg 252 ors, the next one 251, then 250.. down to 1.
> So from what I understand JBoss first gets all the unique ids, then doing
> all the or selects with one less or each time. 
> To run this query takes a over 3 minutes.
> 
> Have we set up something wrong or is due to the translation from ejb-ql to
> JBoss SQL.

Jeg synes jeg ble kvitt disse når jeg la inn følgende kode i bønnen:

 * @jboss:read-ahead strategy="none" page-size="0"



> 
> Any help appreciated.

You're welcome...

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] NullPointerException on a findByPrimaryKey

2002-10-17 Thread Jon Haugsand

* Alex Loubyansky
> Hello Jon,
> 
> is it possible, sometimes, you pass in null to findByPrimaryKey?

Actually, I don't think so.  Here is a part of the code:

cat.debug("klh=" + klh + ", kpk=" + kpk);
minSekvens=klh.findByPrimaryKey(kpk);

And this is a part of the output:

klh=norgesbank/ejbbasic/GenIdLocalHome, kpk=[.PRIMARYKEY.]
2002-10-17 11:33:12,611 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException, causedBy:
java.lang.NullPointerException
at

The primary key object is XDoclet generated.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] NullPointerException on a findByPrimaryKey

2002-10-17 Thread Jon Haugsand
Running JBoss 3.0.2 with a fairly trivial entity bean:

 /**
  * @ejb:interface-method view-type="both"
  * @ejb:persistent-field
  */
public abstract long getId();

 /**
  */
public abstract void setId( long id );

/**
 * @ejb:interface-method
 */
public abstract void setNavn(String v);
/**
 * @ejb:interface-method
 * @ejb:persistent-field
 * @ejb:pk-field
 */
public abstract String getNavn();


Sometimes the findByPrimaryKey returns NullPointerException.  Has
anyone experimented something similarly?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Extremely slow transaction

2002-10-11 Thread Jon Haugsand

* [EMAIL PROTECTED]

> In this case, I miss the sql-statement "UPDATE sometable SET
> status=2 WHERE status=6" which I don't think EJB/JBoss-QL can
> handle. This will probably speeds things up considerably.

Actually, the code is a bit more complicated, i.e. some computation
for each instance, and the newStatus will vary according to the output
of the tests.  It is like a daily update of some records.


> If it is an unsolvable problem, a hack would be to use a sql like
> that directly to the DB. You might then perhaps not use all commit
> options in jboss safely though (but I think the default for EJB2.x
> beans handles this).

Throwing in the towel then?  Nooo, I would like to solve the problem
with EJB, at least I won't give up that soon. 

Anyway, there are several ways we could live with the slow
transactions.  However, I genuinely want to know what is happening and
how to control my application.

> You might also optimize a bit by tweaking in jbosscmp-jdbc to fetch multiple entites 
>at a time, and have the status as one load group.

Yes, I think I try this first.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Extremely slow transaction

2002-10-11 Thread Jon Haugsand

* Sacha Labourey
> hello,
> 
> Sorry to show up so lately in your discussion but what is the real problem?
> I guess it is not the transaction in itself? You seem to say that your
> problem comes from the way JBossCMP loads your data, do you have more
> information and what is actually happening and why you think it kills your
> performance?

Thanks for showing interest.  This is a real problem for us.  We have
some code that looks loosely like this:

> > > > > >for (id=0;id++;id<1000) {
> > > > > >  // Start transaction
> > > > > >  Collection c=findByStatus(id,status);
> > > > > >  for(i=c.iterator();i.hasNext();) {
> > > > > >((EntityLocal) (i.next())) . setStatus(newStatus);
> > > > > >  }
> > > > > >  // End transaction
> > > > > >}

>From the log/server.log we see that each findByStatus generates a HUGE
select statement with around 300 ORs  ( SELECT id FROM VPKRITERIE
WHERE (id=?) OR (id=?) OR (id=?) OR (id=?) OR (id=?) OR (id=?) OR
(id=?) 

We have tried to play around with conf/standardjbosscmp-jdbc.xml and
standardjaws.xml, but to no help.  The parameteres set is:

in  standardjbosscmp-jdbc.xml:

  
  on-find
  *
  

in standardjaws.xml:

     false

We now are in the process to do this on the individual beans, but are
not there yet because it is not supported in xdoclet. 

Any suggestions?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Extremely slow transaction

2002-10-10 Thread Jon Haugsand
* Marius Kotsbak
> > > >for (id=0;id++;id<1000) {
> > > >  // Start transaction
> > > >  Collection c=findByStatus(id,status);
> > > >  for(i=c.iterator();i.hasNext();) {
> > > >((EntityLocal) (i.next())) . setStatus(newStatus);
> > > >  }
> > > >  // End transaction
> > > >}
> > > >
> > > Why not package the whole in one transaction (including the outher
> > > for-statement), too see if this speeds things up, if it doesn't change
> > > the semantics of your operation. Or you might start a nested
> > > transaction for the inner for.
> > 
> > We can try this in order to see the effect, but we cannot change this
> > permanently.
> Why not?

Several reasons:

  1. The transaction will take too long time, locking other requests
 out.
  2. An exception would roll back all updates to the entity bean
 instances.

Of course, no 2 can be solved by designing differently, but that is
also a risk in our project.  No 1 has to be tested.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Extremely slow transaction

2002-10-10 Thread Jon Haugsand

* Marius Kotsbak
> Jon Haugsand wrote:
> 
> >We have a table with approx 1500 rows and a finder that picks one or
> >two rows during each query like this:
> >
> >for (id=0;id++;id<1000) {
> >  // Start transaction
> >  Collection c=findByStatus(id,status);
> >  for(i=c.iterator();i.hasNext();) {
> >((EntityLocal) (i.next())) . setStatus(newStatus);
> >  }
> >  // End transaction
> >}
> >
> Why not package the whole in one transaction (including the outher
> for-statement), too see if this speeds things up, if it doesn't change
> the semantics of your operation. Or you might start a nested
> transaction for the inner for.

We can try this in order to see the effect, but we cannot change this
permanently.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Value Objects...

2002-10-09 Thread Jon Haugsand

* Markus Garscha
> Hi!
> 
> i started to play with xdoclet. xdoclet generates "value" classes which
> implement serialize. what are they good for? examples? 
> is this a workaround for relations which are accessed over remote
> interfaces?

You are supposed to use them to transport all data from an entity bean
instance over the network in just one call.  Then you reduce network
traffic which is expensive.

> 
> the second thing i noticed is that a NamePK.java class for the primary
> key is generated. why? there is not method like .getNextValue() which 
> might be usefull. It only holds the value... how do i use it in a
> create() method?

The purpose of the NamePK class is to abstract the real content of the
primary key and of course to be able to handle primary keys that span
several columns in your database table (or fields in your bean).

I find it useful to use a primary key class even when I have only a
single field as a primary key.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] mysterious slowness on entity bean update FIXED

2002-10-09 Thread Jon Haugsand

* Dain Sundstrom
> If you are interested, the read-ahead strategies are covered in detain
> in the JBossCMP Documentation ($10 flashline.com).

What it does not cover is how to do this with EJB-QL.
(Or did I misunderstand?)

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Extremely slow transaction

2002-10-09 Thread Jon Haugsand

We have a table with approx 1500 rows and a finder that picks one or
two rows during each query like this:

for (id=0;id++;id<1000) {
  // Start transaction
  Collection c=findByStatus(id,status);
  for(i=c.iterator();i.hasNext();) {
((EntityLocal) (i.next())) . setStatus(newStatus);
  }
  // End transaction
}

Each such transaction takes around one second, which means that around
1000 seconds to fulfill the whole operation.

Looking at the server.log, we have those large SQL queries I have asked
about earlier.  However, we do not need those and thinking we have
found the problem with the performance, we tried to eliminate them.

1. Is it correct then to edit the conf/standardjbosscmp-jdbc.xml to tune
   this?

   We tried to set 
  on-find

   and remove completely 
  1000

   but alas, this did not help.  What do we really do?

2. In the CMP-manual, the examples on how to tune this for each finder
   only shows it when you use JBOSS-finders and not EJB-QL.  Is it
   possible ot use EJB-QL and tune this per finder?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] [OT] can't run xdoclet ;(

2002-10-08 Thread Jon Haugsand

* Markus Garscha
> hi,
> 
> the same problem:
> 
> /home/gama/prog/java/jboss/build.xml:56: taskdef class
> xdoclet.ejb.EjbDocletTask cannot be found
> 
> something does goes wrong with ant. ant can't find the class, but the
> file xdoclet.jar exists and it is the correct classpath... ;(

I seem to remember similar problems, but I am not sure.  In any case,
try to explicitely give the classpath in the taskdef task:

  

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] [OT] can't run xdoclet ;(

2002-10-08 Thread Jon Haugsand

* Markus Garscha
> Hi!
> 
> what's wrong? 
> ---8<--
> gama@ws:~/prog/java/jboss$ ant xdoclet
> Buildfile: build.xml
> 
> init:
> 
> xdoclet:
> 
> BUILD FAILED
> 
> /home/gama/prog/java/jboss/build.xml:54: taskdef class
> xdoclet.ejb.EjbDocletTask cannot be found
>
>
>  classpath="${xdoclet.classpath}"/>

To be sure that xdoclet _really_ is in your classpath you may try the
following in front of :

  

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] (no subject)

2002-10-08 Thread Jon Haugsand

* Cindy Liang
> Oracle-service.xml:
> 
> 
> name="DefaultDomain:service=XADataSource,name=OracleDS">
>   OracleDS
>   name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
>   jdbc:oracle:thin:localhost:1521:ora
>   s_user
>   sh
>   50  
> 
> 

Isn't this quite short?  What I did was to copy the
docs/examples/jca/oracle-service.xml to server/MYSERVER/deploy and
edit this.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] MQ Series messages to JBoss message beans?

2002-10-04 Thread Jon Haugsand

* Benjamin Geer
> Here's a little HOWTO that I wrote for the project I'm currently working
> on.
> 
> Using JBoss with MQSeries JMS
> =

Thanks a lot, we are now looking into it.  However, we are uncertain
if this is enough to activate automatically a message driven bean?  Is
it?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] MQ Series messages to JBoss message beans?

2002-10-01 Thread Jon Haugsand

We are developing an application that receives messages from IBM MQ
Series and needs to handle them in an EJB application.  The current
application server we use is JBoss, but it is not known what we end up
with.  One of the deciding questions is how we are able to tackle
messages from IBM MQSeries.

So, how have other people solved this problem?  Naive solutions
include the following:

 1. A stand alone application that listens to MQ Series and sends to a
JBoss message queue to which a JBoss message bean subscribes to.

 2. An MBean that does the same as 1.

 3. Configure JBoss such that JBoss own JMS implementation is turned
off and MQ Series is used instead.

Has anyone done anything like this and is willing to share his/her
solution?  Clustering is an important subject, but mainly in the sense
of detecting/resending lost messages.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBOSS - Components library

2002-09-27 Thread Jon Haugsand

* wonder sonic
> This just what I talked about, to centralize the
> development of such components, I mean *FREE*
> components working without spending one hour to
> configure it... sort of Plug and Play components ;)

Is this possible?  Is it even a good idea?

I agree in the sense that any free downloaded component should work
out of the box, but most of us would want to reconfigure most of the
components to make it fit.  Java isn't such a good language to use to
configure things from the outside.


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBOSS - Components library

2002-09-27 Thread Jon Haugsand

* rahul ganjoo
> not sure if it will increase the usage of jboss
> developers on any app server can use these EJB components.

I think it will.  First, it increases the awareness of Open Source.
Second, it will be best tested on JBoss.  Third, when businesses are
looking for solutions to problems, one often have to buy packages, so
when someone can deliver an open source package with JBoss and beans,
it will compete well with other solutions.

> 
> great idea though

Yeah.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBOSS - Components library

2002-09-27 Thread Jon Haugsand

* wonder sonic
> Hi Saroj,
> 
> 1 & 2) 
> In fact the kind of components can be sorted by
> domain:
> - network:
> - SSL Connection management component
> - Chat component
> - Forum component
> - Multicast component (JXTA...)
> - accounting:
> - Order component
> - invoice component
> - login/security:
> - User component
> - Administrator component (extends User...)
> - Director component (extends User, link with
>   Address component (CMP...))
> - bio data-processing:
> - BLAST algorithm processing component
> - MMC algorithm processinc component
> 
> As you see, the domains can be infinite and the
> associated components too :)

- banking
- customer component
- account component

(Associated with the components should be a set of interfaces.)

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] No default logging in JBoss 3.0.2

2002-09-26 Thread Jon Haugsand

* Jon Haugsand
> * Lennart Petersson
> > Maybe log4j.xml defaults the threshold to INFO? Ins't only DEBUG
> > written to file (at least was this the scenario pre 3.0).
> > 
> 
> Thanks, but I cannot see that I have any other configuration setup
> than I have in 3.0.1.

Actually I had.  Silly me. My log4j.xml was not well-formed.  (Again I
would like some error message.)  My emacs XML mode does not work as it
should with sgml-insert-end-tag so what should look like 

  

  


Became

  

  

Oh, well, this is not an emacs group, so pardon me.  But thanks for
your effort, Lennart.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] No default logging in JBoss 3.0.2

2002-09-26 Thread Jon Haugsand

* Lennart Petersson
> Maybe log4j.xml defaults the threshold to INFO? Ins't only DEBUG
> written to file (at least was this the scenario pre 3.0).
> 

Thanks, but I cannot see that I have any other configuration setup
than I have in 3.0.1.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] No default logging in JBoss 3.0.2

2002-09-26 Thread Jon Haugsand

After upgrading to JBoss 3.0.2 the server no longer produces any
output to log/server.log.  The documentation does not indicate how to
turn this feature on/off.  So what can be wrong?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Interrupted while requesting permit!

2002-09-24 Thread Jon Haugsand

* Saroj Kumar
> I don't see any need for using finder Inside ejbCreate as JBOSS does it
> automatically before insert.
> 
> It does like:
> 
> SELECT COUNT(*) FROM TABLE WHERE PK_COLUMN=?
> 
> Try without finder. 

Well, yeas, but actually, this is not primary key fields it tests
against.  Our model is that we can have several entity instances where
field A and B are equal, but never during ejbCreate.  So we have to
test this.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Interrupted while requesting permit!

2002-09-24 Thread Jon Haugsand


JBoss 3.0.1 where we within ejbCreate we use a finder to detect double
creation of a bean instance.  The following message was printed at the
log:

2002-09-24 16:32:33,169 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.VpKriterie.findByVpKriterieIdAndTilstand]
 Find failed
org.jboss.util.NestedSQLException: Interrupted while requesting permit!; - nested 
throwable: (javax.resource.ResourceException: Interrupted while requesting permit!)
at 
org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:106)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:92)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:44)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:541)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:336)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:301)
at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:634)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1116)
at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:73)
at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:209)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:88)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:111)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:230)
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
at $Proxy368.findByVpKriterieIdAndTilstand(Unknown Source)
at 
norgesbank.bank.sil.entiteter.vpkriterie.VpKriterieBean.ejbCreate(VpKriterieBean.java:156)
  

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Serious problem with wrong data returned.

2002-09-23 Thread Jon Haugsand

* Kevin Conner
> > Actually, it did not help.  But thank you very much anyway, because it
> > was in the entitypk.j the error occured.  The problem was that our
> > primary key was in a superclass, but the entitypk.j was not able to
> > generate correct equals method for the subclasses.  (All primary keys
> > was equal...)
> 
> Glad I could help, even if it wasn't what I thought :-).  We haven't
> come across that one because our primary keys are in the subclass, this
> may change soon though.  Thanks for the warning.
> 
> BTW How did you fix it?  Did you change the hashCode, equals and toString
> XDtEjbPersistent:forAllPersistentFields superclasses attribute to true?

Yes, that's it.  (But we forgot to include toString)

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss 3.0.1 and Oracle-XA

2002-09-23 Thread Jon Haugsand


I am trying to get Oracle-XA to work with JBoss 3.0.1, by doing the
following:

 1. I copy the docs/examples/jca/oracle-xa-service.xml
 2. I change the line with URL=jdbc:oracle:oci8:@tc
to URL=jdbc:oracle:oci8:@banklab3:1521:ora8
 3. I insert username and password
 4. I include an true into
jboss-service.xml


It looks like the mbean is registrated, but I get error message that
complain with "no ocijdbc8 in java.library.path"

 I assume no 2 above is not correct.  But how should the URL be then?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Serious problem with wrong data returned.

2002-09-23 Thread Jon Haugsand

* Kevin Conner
> If you have a simple test then we can try to reproduce it.
> 
> > /**
> >  * @ejb:interface-method
> >  */
> 
> Which version of xdoclet are you using?  We found a bug in
> version 1.1.2 when generating primary keys, it manifests
> itself during serialisation.  Try regenerating your pk with
> the attached template.

Actually, it did not help.  But thank you very much anyway, because it
was in the entitypk.j the error occured.  The problem was that our
primary key was in a superclass, but the entitypk.j was not able to
generate correct equals method for the subclasses.  (All primary keys
was equal...)

Thanks.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Serious problem with wrong data returned.

2002-09-23 Thread Jon Haugsand

* Saroj Kumar
> It seems that you are getting duplicate data in collection.
> 
> Try using java.util.Set for Collection. 

I'll try, but I cannot see why this should be the case.  I made the
following change in my Bean code:

/**
 * @ejb:interface-method
 */
public  String egetForetaksnr() {
String fnr = getForetaksnr();
cat.debug("ID: " + getId() + ", Foretaksnr = " + fnr);
return fnr;
}


This code result in the same bug.  I.e. the following is written out:

 ID: 1, Foretaksnr = 9
 ID: 2, Foretaksnr = 9

When correct data is:

 ID: 1, Foretaksnr = 937885911
 ID: 2, Foretaksnr = 938335605

Maybe the error is in the Oracle driver?  But how do you test such
things?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Serious problem with wrong data returned.

2002-09-23 Thread Jon Haugsand

We have a serious problem with JBoss 3.0.1 that I guess is not easy to
reproduce or else it should have been reported long time ago.  I post
here so that I can get help to identify where the problem really is.
My (BA devoted) collegue thinks it _is_ a problem with JBoss, but if
so, it should be corrected quite soon...

The following is a snapshot of a Cactus test:

public void testberegnSikkerhet() throws Exception{
final Collection c = ff.findAlleKunder();
for( final Iterator i = c.iterator(); i.hasNext(); ) {
final KundeLocal kunde = (KundeLocal) i.next();
cat.debug( "kunde.pk=" + kunde.getPrimaryKey() );
cat.debug( "kunde.foretaks=" + kunde.getForetaksnr() );
cat.debug( "kunde.data=" + kunde.getData() );
kunde.beregnSikkerhet( null, true );
}
}

The above getters are what is standard CMP 2.x and it is without doubt
wrong data that is written out:

   kunde.pk=[.1.]   kunde.foretaks=9
   kunde.pk=[.2.]   kunde.foretaks=9

In reality, the KUNDE table's FORETAKS should contain something very
different in both cases.  (FORETAKS is what was found in the last
entry of the table.)

Please help us to solve the problem.  (We use Oracle with
driver oracle.jdbc.driver.OracleDriver if it is interesting.)

--
More output below:

2002-09-23 11:01:12,115 DEBUG [norgesbank.bank.sil.entiteter.kunde.KundeTest] 
kunde.pk=[.1.]
2002-09-23 11:01:12,119 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing SQL: SELECT 
foretaksnr, bere
2002-09-23 11:01:12,155 DEBUG [norgesbank.bank.sil.entiteter.kunde.KundeTest] 
kunde.foretaks=9
2002-09-23 11:01:12,159 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing SQL: SELECT 
foretaksnr, bere
2002-09-23 11:01:12,187 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Foretak.findByForetaksnr] Executing 
SQL: SELECT t0_f
2002-09-23 11:01:12,208 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Foretak] Executing SQL: SELECT 
foretaksNr, NA
2002-09-23 11:01:12,232 DEBUG [norgesbank.bank.sil.entiteter.kunde.KundeTest] 
kunde.data={foretaksnr=9 beregnetSikkerhet=
2002-09-23 11:01:12,237 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing SQL: SELECT 
foretaksnr, bere
2002-09-23 11:01:12,259 DEBUG [norgesbank.bank.sil.entiteter.kunde.KundeBean] 
beregnSikkerhet()
2002-09-23 11:01:12,263 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Pant.findPantForKunde] Executing SQL: 
SELECT t0_p.id
2002-09-23 11:01:12,280 DEBUG [norgesbank.bank.sil.entiteter.kunde.KundeBean] 
beregnSikkerhet(): Fant 0 pant for kunde 9.
2002-09-23 11:01:12,280 DEBUG [norgesbank.bank.sil.entiteter.kunde.KundeBean] 
beregnSikkerhet()={NOK=0 Utl=0}
2002-09-23 11:01:12,283 DEBUG [norgesbank.bank.sil.entiteter.kunde.KundeTest] 
kunde.pk=[.2.]
2002-09-23 11:01:12,287 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing SQL: SELECT 
foretaksnr, bere
2002-09-23 11:01:12,326 DEBUG [norgesbank.bank.sil.entiteter.kunde.KundeTest] 
kunde.foretaks=9
2002-09-23 11:01:12,332 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing SQL: SELECT 
foretaksnr, bere



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Direct Session Bean to JDBC connection

2002-09-18 Thread Jon Haugsand

* Arijit Ghosh
> I find that jboss.jcml file does not exist. Instead oracle-service.xml
> file exists. Can anyone give me the corresponding mbean code in
> oracle-service.xml file for direct jdbc connection ??

Why don't you just copy the file
${JBOSS_HOME}/docs/examples/jca/oracle-service.xml to
${JBOSS_HOME}/server/myserver/deploy and edit the three important
lines that is local for you (machine, port, username and password).
(Be aware that this example code have something commented out.)

> 
> IMPORTANT ..  Also,  I find that the jboss.jar file that has been
> provided with jboss version 3.0 does not have XADataSourceLoader. Any
> pointers for this ?

Have you tried ${JBOSS_HOME}/docs/examples/jca/oracle-xa-service.xml?
(I haven't so maybe this is not thre trick...)

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>




---
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to use application specific properties

2002-09-12 Thread Jon Haugsand

We have a local property file containg such things like name of
machines, files, ip-addresses and such for legacy interfaces.  I found
out (the hard way) that I could place this file in the
${JBOSS_HOME}/bin directory, presumably because it is from there we
run the server.  It shouldn't stay there of course, and further we
need it within the client too.

I know we could use some property mechanism within ejb-jar.xml, but I
cannot figure out how to get this with XDoclet and I am not sure I
like this because different machines/servers need different
properties.

Is there a Right (tm) way to do this?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] 3.0.2 error

2002-09-12 Thread Jon Haugsand

* Scott M. Stark
> VMs less than 1.3.1 do not pickup property editors that are not on the
> system classpath. We have several custom property editors that are
> loaded after the bootstrap of the server. What VM is being used here?

VM 1.3 I think.  OK, time to upgrade.  Or could I somehow point to a
"property editor" whatever it is?

Thanks.


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] 3.0.2 error

2002-09-12 Thread Jon Haugsand

* Jon Haugsand
> Well, actually, my solution was even simpler.  The JBOSS_DIST (and
> JBOSS_HOME) pointed to a 3.0.0beta distro  (Why can't bin/run.sh
> do a self check?)
Actually, I still have a problem.  From a plain 3.0.2 on a SuSe 7.2,
the following happens:

05:46:14,291 INFO  [MainDeployer] Deployed package: 
file:/usr/local/share/jboss-3.0.2/server/default/deploy/jmx-console.war/
05:46:14,298 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 
'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  
Incompletely deployed packages:
  
MBeans waiting for classes:
  
MBeans waiting for other MBeans:
[ObjectName: jboss:type=Service,name=SystemProperties
 state: FAILED
 I Depend On: 
 Depends On Me: org.jboss.deployment.DeploymentException: No property editor for 
attribute: Properties; type=class java.util.Properties, ObjectName: 
jboss.system:type=Log4jService,service=Logging
 state: FAILED
 I Depend On: 
 Depends On Me: org.jboss.deployment.DeploymentException: No property editor for 
attribute: ConfigurationURL; type=class java.net.URL]
05:46:14,321 INFO  [URLDeploymentScanner] Started
05:46:14,323 INFO  [MainDeployer] Deployed package: 
file:/usr/local/share/jboss-3.0.2/server/default/conf/jboss-service.xml
05:46:14,325 ERROR [Server] start failed
Incomplete Deployment listing:
Packages waiting for a deployer:
  
Incompletely deployed packages:
  
MBeans waiting for classes:
  
MBeans waiting for other MBeans:
[ObjectName: jboss:type=Service,name=SystemProperties
 state: FAILED
 I Depend On: 
 Depends On Me: org.jboss.deployment.DeploymentException: No property editor for 
attribute: Properties; type=class java.util.Properties, ObjectName: 
jboss.system:type=Log4jService,service=Logging
 state: FAILED


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] 3.0.2 error

2002-09-10 Thread Jon Haugsand

* Asgeir Østerhus
> I had a similar problem in 3.0.1.
> 
> Check the Log4j Initialization section in jboss-service.xml.
> If the ConfigurationURL is not commented out, try commenting it out. Worked
> for me

Well, actually, my solution was even simpler.  The JBOSS_DIST (and
JBOSS_HOME) pointed to a 3.0.0beta distro  (Why can't bin/run.sh
do a self check?)

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
In remembrance
www.osdn.com/911/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] 3.0.2 error

2002-09-09 Thread Jon Haugsand

When starting the 3.0.2 distro, JBoss prints out an error message,
something like "log4j.properties missing" and then halts.  (This is at
home som I haven't the excact wording.)  However, I cannot find any
"log4j.properties" file in neither the 3.0.1 nor the 3.0.2.  

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] XDoclet and dependent value classes

2002-09-09 Thread Jon Haugsand

Has anyone done anything to get dependent value classes by using
XDoclet?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: AW: [JBoss-user] Agent view not working in 3.0.1

2002-09-04 Thread Jon Haugsand

* Kristian Kohler
> another nice tool you will find under
> 
> http://mc4j.sourceforge.net
> 
> This is a OpenSource JMX Management Console.
> 
> > http://localhost:8080/jmx-console
> > 

Thanks to both.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Agent view not working in 3.0.1

2002-09-04 Thread Jon Haugsand

Trying to connect to http://localhost:8082 in an out-of-the-box JBoss
3.0.1, but I only get "Connection refused".  This works very nicely in
JBoss 3.1.0alpha.


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Timestamp, JBoss and Oracle

2002-08-31 Thread Jon Haugsand

* Jon Haugsand
> With JBoss 3.0.1, CMP 2.0 and oracle.jdbc.driver.OracleDriver (Oracle DB
> 8.1.7) we try to map Timestamp-attributes to Oracle Date.  We have no
> problems with Timestamp and the Borland server.
> 
> 
> The error message is as follows:
> 
> 15:00:08,254 ERROR [Pant] Could not create entity
> java.sql.SQLException: ORA-01841: (full) year must be between -4713 and +, and 
>not be 0



>  MERKNADDATE

Well, when you try to store a String variable into a DATE column you
cannot expect anything else...

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Timestamp, JBoss and Oracle

2002-08-31 Thread Jon Haugsand

With JBoss 3.0.1, CMP 2.0 and oracle.jdbc.driver.OracleDriver (Oracle DB
8.1.7) we try to map Timestamp-attributes to Oracle Date.  We have no
problems with Timestamp and the Borland server.


The error message is as follows:

15:00:08,254 ERROR [Pant] Could not create entity
java.sql.SQLException: ORA-01841: (full) year must be between -4713 and +, and not 
be 0

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822)
at 
oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1446)


Using the p6spy-driver we can identify the insert statement as
follows (Why doesn't the JBoss log system provide the same amount of information?):

INSERT INTO PANT (pantId, tilstand, kontrollStatus, isin, foretaksNr, lopeNr, antall, 
beholdning, beholdningsendring, uttrekningsBeholdning, uttrekningsDato, vpKontoNr, 
vpKontoNrTil, erDelPant, prioritet, foretakTilstand, sikkerhet, endretAv, endret, 
verifisertAv, verifisert, merknad) VALUES ('139', '0', '13', 
'En-isin-kode', '971171324', 'Et-lopenr', '999.1234', '100', '', '', '2002-08-31 
15:00:05.976', 'En-vpkonto', 'Enda-en-vpkonto', 'false', 'en-prioritet', '1', '13', 
'nbjhh1', '2002-08-31 15:00:05.976', 'nbjhh1', '2002-08-31 15:00:05.976', 'En dummy 
pant for testhensikt')

Running this query manually, I get a different error message (that
looks OK): 

ERROR at line 1:
ORA-01830: date format picture ends before converting entire input string

(Because the stupid Oracle system does not like to get date strings in
any other format than is defined in the initora8.ora file: nls_date_format = 
"-MM-DD")



PANT is defined as follows:

SQL> desc pant
 Name  Null?Type
 -  
 PANTIDNOT NULL NUMBER(19)
 FORETAKSNRNOT NULL VARCHAR2(255)
 LOPENRNOT NULL VARCHAR2(255)
 ANTALLNOT NULL NUMBER(38,15)
 TILSTAND  NOT NULL NUMBER(19)
 KONTROLLSTATUS NUMBER(19)
 ISIN   VARCHAR2(255)
 BEHOLDNINGNOT NULL NUMBER(19)
 BEHOLDNINGSENDRING NUMBER(19)
 UTTREKNINGSBEHOLDNING  NUMBER(19)
 UTTREKNINGSDATODATE
 VPKONTONR  VARCHAR2(255)
 VPKONTONRTIL   VARCHAR2(255)
 ERDELPANT NOT NULL NUMBER(1)
 PRIORITET  VARCHAR2(255)
 FORETAKTILSTAND   NOT NULL NUMBER(10)
 SIKKERHET NOT NULL NUMBER(19)
 ENDRETAV   VARCHAR2(255)
 ENDRET DATE
 VERIFISERTAV   VARCHAR2(255)
 VERIFISERT DATE
 MERKNADDATE




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Serious (for us) error when using MySQL

2002-08-25 Thread Jon Haugsand

* David Jencks
> The apparently missing check is supposed to be a safeguard against calling
> an ejb while it is in the process of deploying.  Have your ejb's apparently
> deployed completely before you try to use them?  Are there any errors in
> the log during ejb deployment?

Not that I can find except for the following one (which I do not know
how to remove.  I use XDoclet to generate this, so I do not
discriminate between local and remote interfaces).


2002-08-26 07:44:10,908 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: 
telefon: 
2002-08-26 07:44:10,942 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation: 
Bean   : telSess
Method : public abstract Collection listAll() throws FinderException, RemoteException, 
Nam
Section: 7.10.7
Warning: The methods in the local interface must not include java.rmi.RemoteException 
in t

2002-08-26 07:44:10,945 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation: 
Bean   : telSess
Method : public abstract telefonData getLine(telefon) throws FinderException, 
RemoteExcept
Section: 7.10.7
Warning: The methods in the local interface must not include java.rmi.RemoteException 
in t

...

(Unfortenately I am not able to reproduce the original error.  If I
do, I'll try to record the circumstances.)


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Strange select statement

2002-08-20 Thread Jon Haugsand

* Sacha Labourey
> Well, this one is really easy and is not related to Oracle, which is pretty
> rare ;) :
> 
>   "java.lang.ClassNotFoundException:
> org.jboss.ejb.plugins.local.EntityProxy"
> 
> What is strange is that class doesn't seem to be in any of the client JAR.
> Maybe it is a bug. In the meantime, just try to put jboss.jar in the
> classpath of your client application.


Yes, this made it work.  Strange, somehow, that this was only
necessary when using MySQL and not Oracle.


However, that was only to get findAll() to work...

Now I included the test that creates and deletes 1000 records.
Actually there 997 record in the database after it fails.

Testcase: testCreateRemove took 30.794 sec
Caused an ERROR
RemoteException occurred in server thread; nested exception is: 
javax.transaction.TransactionRolledbackException: Entity not found: 
primaryKey=[.JunitTestXX-etter-99.]; CausedByException is:
Entity not found: primaryKey=[.JunitTestXX-etter-99.]; nested exception is: 
javax.ejb.NoSuchObjectLocalException: Entity not found: 
primaryKey=[.JunitTestXX-etter-99.]
java.rmi.ServerException: RemoteException occurred in server thread; nested exception 
is: 
javax.transaction.TransactionRolledbackException: Entity not found: 
primaryKey=[.JunitTestXX-etter-99.]; CausedByException is:
Entity not found: primaryKey=[.JunitTestXX-etter-99.]; nested exception is: 
javax.ejb.NoSuchObjectLocalException: Entity not found: 
primaryKey=[.JunitTestXX-etter-99.]
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:295)
at sun.rmi.transport.Transport$1.run(Transport.java:151)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
at java.lang.Thread.run(Thread.java:539)
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:250)
 
-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Strange select statement

2002-08-20 Thread Jon Haugsand

* Sacha Labourey
> > Does not this show that the share_pool_size is more than three times
> > as big as LARGE?
> 
> Maybe you need to flush your pool: some posts suggests this.

What I did was to increase the LARGE_POOL_SIZE from 614400 to 2614400.
Oracle worked clock like then.  To create and delete 1000 bean
instances JBoss used 60 seconds.  I do not know if this is
representative?  Each creation was initiated from the JUnit client,
through a session bean which called the entity bean using a local
interface.  Deletion was done in a loop in the session bean that used
local interface.


> in this case, you can change JBossCMP options to prefetch less rows: this
> will reduce the size of the statement.

I reduced page size to 10, but still it fails.

  
  on-load
  10
  *
  

The following is 
Testcase: testList took 1.71 sec
Caused an ERROR
null
java.lang.reflect.UndeclaredThrowableException
at $Proxy1.listAll(Unknown Source)
at nb.api.TelefonTest.testList(TelefonTest.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
Caused by: java.lang.ClassNotFoundException: org.jboss.ejb.plugins.local.EntityProxy 
(no security manager: RMI class loader disabled)
 

> with 2.x entity beans. Just put your xdoclet descriptor to default to
> "Required".

Thanks, this made my day...

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] MySql with Jboss 3.0.1

2002-08-20 Thread Jon Haugsand

* Chris Pinfold
> I am having problems deploying mysql-service.xml (MySql Datasource) using
> Jboss 3.0.1.
> This worked fine in 3.0.0, but now I get the folllowing error:
> 
> I have attached the mysql-service.xml file.
> 
> 05:00:51,079 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
> operation 'checkIncompleteDeployments()'
> Cause: Incomplete Deployment listing:
> Packages waiting for a deployer:
>   
> Incompletely deployed packages:
>   
> MBeans waiting for classes:
>   
> MBeans waiting for other MBeans:
> [ObjectName: jboss.jca:service=LocalTxCM,name=MySqlDS
>  state: CONFIGURED
>  I Depend On:   jboss.jca:service=LocalTxDS,name=MySqlDS
>   jboss.jca:service=LocalTxPool,name=MySqlDS
>   jboss.jca:service=CachedConnectionManager
>   jboss.security:name=JaasSecurityManager
>   jboss.jca:service=RARDeployer
> 
>  Depends On Me: ]

This typically happens during startup where it seems that JBoss reads
your bean jar file before it reads the data source definition.
Somehow this must be an bug in JBoss who should read all files in
server/xx/deploy in alphabetic order or some other deterministic
fashion.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Strange select statement

2002-08-20 Thread Jon Haugsand

* Pavel Kolesnikov
> I guess Jon's problem is just the fact that such weird SQL statement
> was even generated - and it doesn't seem to be an oracle-problem :-)
> 
> It would be helpful to see the original code (before running XDoclet)
> and XDoclet generated code to find out if it's error of JBoss, XDoclet
> or Jon :-)

Sure.  I have two beans, and here is some of the entity bean.  It is
"getData()" that fails. 

 public abstract class TelefonBean implements EntityBean
 {
 public TelefonBean() {}

 /**
  * @ejb:interface-method  view-type="both"
  */
 public abstract void setData(telefonData data);

 /**
  * @ejb:interface-method view-type="both"
  */
 public abstract telefonData getData();

 /**
  * @class Integer ejbCreate() creates a new bean
  * @ejb:create-method
  * @ejb:transaction type="Supports"
  */
 public  telefonPK ejbCreate(telefonData _data)
 throws CreateException {
 setLast_name(_data.getLast_name());
 setData(_data);
 return null;
 }


The following is the created code:

   private nb.api.telefonData dataHolder;

   public nb.api.telefonData getData()
   {
  if( dataHolder == null )
  {
 try
 {
dataHolder = new nb.api.telefonData();

dataHolder.setLast_name( getLast_name() );
dataHolder.setFirst_name( getFirst_name() );
dataHolder.setAddress( getAddress() );
dataHolder.setTelephone( getTelephone() );
dataHolder.setStatus( getStatus() );

 }
 catch (Exception e)
 {
throw new javax.ejb.EJBException(e);
 }
  }

  return dataHolder;
   }


-
If interesting, this is called from a session bean like this:


 Collection col=listAll();
 for (Iterator i=col.iterator(); i.hasNext(); ) {
Object o=i.next();
System.out.println("Object is " + o);
telefonLocal  tf = (telefonLocal) o;

System.out.println("Before");
telefonData td=tf.getData();
System.out.println("Got line!");

>From the output I can see "Before" but not "Got line!"

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Strange select statement

2002-08-20 Thread Jon Haugsand

* Sacha Labourey
> Hello Jon,
> 
> The problem is not really with JBoss but with your Oracle configuration.
> 
> The SQL query that is generated is normal (take a look at the CMP doco for
> more information on available optimisations). You should modify your
> SHARED_POOL_SIZE in Oracle to allow for the query to be executed (take a
> look at ORA-04031 message definition in your Oracle documentation for more
> information)


Thanks.  However, the following is an excert from my initsid.ora:

shared_pool_size  = 31457280  # INITIAL
# shared_pool_size = 350  # SMALL
# shared_pool_size = 500  # MEDIUM
# shared_pool_size = 900  # LARGE

Does not this show that the share_pool_size is more than three times
as big as LARGE?

Actually the same test I run failed much earlier when using MySQL as
my datasource.  The test is simple, I have one entity bean and one
session bean.  I create 1000 bean instances and deletes them
afterwards.  When using Oracle, all bean instances get created, but
none are destroyed.  With MySQL only around 100 gets created.

I do not use any explicite transaction handling.  Neither do I set any
commit option (as this seems to be unavailable to set from XDoclet).

I have included code in another article.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Strange select statement

2002-08-19 Thread Jon Haugsand
 allocate 2008 bytes of shared memory 
("large pool","unknown object","session heap","frame segment")

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1674)
at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1870)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:314)

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] ServerException

2002-08-14 Thread Jon Haugsand


(Running JBoss 3.0.0)

In a small test application I experience every second time an
exception I cannot understand.  This is the output:

debug: OK test

Remote exception: java.rmi.ServerException: RemoteException occurred in server thread; 
nested exception is: 
java.rmi.ServerException: INSERTING AN ALREADY EXISTING BEAN, ID = 
[.Etternavn-test.]; nested exception is: 
java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING BEAN, ID = 
[.Etternavn-test.]


Code fragment:

telefonData td = new telefonData(
"Etternavn-test", "Fornavn-test", "Adresse-test",
"Telefon-test", "Status-test");

if (findByLastName("Etternavn-test")!=null) {
debugPrint("found Etternavn-test!!!");
}
else { debugPrint("OK test");
}

telefon tf = ff.create(td);



 public telefon findByLastName(String ln) throws RemoteException {
try {
telefon tf = ff.findByPrimaryKey(new telefonPK(ln));
return tf;
}
catch (FinderException e) {
return null;
}
}   


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user