[JBoss-user] [Security & JAAS/JBoss] - Re: TLS encryption TLS_RSA_WITH_3DES_EDE_CBC_SHA support

2006-07-08 Thread elkner
I guess, that depends on your JDK/JSSE ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956361#3956361 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956361 Using Tomcat but need to do more? Need to support web servi

[JBoss-user] [Remoting] - Re: Error connecting to ejb3 cluster

2006-07-07 Thread elkner
Nope. On standard bourne shells "${HOSTNAME}" == "$HOSTNAME" is always true. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956276#3956276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956276 Using Tomcat but need to

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-07 Thread elkner
com.ehsbe.commons.common.Misc; | | /** | * @author Jens Elkner | * @version $Revision$ | */ | public class CaHandler | implements X509TrustManager | { | private static final Logger log = LoggerFactory | .getLogger(CaHandler.class); | private static X509TrustManager

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-06 Thread elkner
Yes, setting up a suitable X509TrustManager (+ see SSLContext) is a much better hint ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956028#3956028 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956028 Using Tomcat

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-06 Thread elkner
"[EMAIL PROTECTED]" wrote : ... you need to "Trust all certs" when you setup the connection programmatically Well, why do you need SSL, if you trust all certs? Definitely a "no master" hint ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955938#3955938 R

[JBoss-user] [Management, JMX/JBoss] - Re: JMX-console fails with mustang?

2006-06-30 Thread elkner
/usr/apps/jdk1.6/bin/java -server -Xms128m -Xmx128m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 -Dprogram.name=run.sh -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServer

[JBoss-user] [Management, JMX/JBoss] - JMX-console fails with mustang?

2006-06-28 Thread elkner
Not sure, what the real problem is, however, if I start Jboss 4.0.4GA with mustang instead of tiger, everything runs fine except the JMX console. Because of a "com.sun.management:type=HotSpotDiagnostic is not registered" exception the complete jmx-console is unusable. I made the following fix:

[JBoss-user] [EJB 3.0] - Re: @Service bug

2006-06-23 Thread elkner
Hmmm, @Service seems still quite bogus wrt. Permissions. 1) The problem above described in the first posting is still not resolved. 2) When calling a method of the bean from a servlet (which needs no authentication) one gets an authentication exception even if the whole bean is annotated wi

[JBoss-user] [EJB 3.0] - Re: serialization exception with mustang

2006-06-20 Thread elkner
"[EMAIL PROTECTED]" wrote : Just to review, this error only happens when using jdk 1.6, but works with jdk 1.5, right? Yepp. anonymous wrote : I can make the update to use the other forName() method signature as you mentioned, but only problem is that current code base is for 2.0.0 release, whic

[JBoss-user] [Remoting] - Re: remoting sources for 4.0.4GA

2006-06-20 Thread elkner
OK, thanx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951850#3951850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951850 ___ JBoss-user mailing list JBoss-user@lists.s

[JBoss-user] [EJB 3.0] - Re: serialization exception with mustang

2006-06-18 Thread elkner
OK, Thanx! Going to bed now as well, otherwise I'll probably loose the path as well ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951576#3951576 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951576

[JBoss-user] [EJB 3.0] - Re: serialization exception with mustang

2006-06-18 Thread elkner
OK, just to give it a try (usually I wanna use/test officially realeased as) I downloaded and installed the 1.0.1. As I already guessed, it doesn't fix the problem, since JBoss Serialization is not used. Still need to use my patched version of jboss-remoting.jar ... View the original post : h

[JBoss-user] [EJB 3.0] - Re: serialization exception with mustang

2006-06-18 Thread elkner
"[EMAIL PROTECTED]" wrote : The Bug I was talking about was identified on every JVM At least it is consistent than ;-) anonymous wrote : Bugs happens ;-) (even with the JDK) Yepp ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951571#3951571 Reply to the p

[JBoss-user] [EJB 3.0] - Re: serialization exception with mustang

2006-06-18 Thread elkner
"[EMAIL PROTECTED]" wrote : You could or upgrade JBoss to 4.0.4.SP1 Hmmm, can't find 4.0.4SP1 on sf.net (only the GA). Is there a hidden place, where one can download it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951570#3951570 Reply to the post : http

[JBoss-user] [EJB 3.0] - Re: serialization exception with mustang

2006-06-18 Thread elkner
"[EMAIL PROTECTED]" wrote : There is a bug with JBoss Serialization 1.0 about arrays. Hmmm, as far as I can see, JBoss Serialization is not used. I digged a little bit around, found the source for org.jboss.remoting.loading.ObjectInputStreamWithClassLoader (I think in the 1_4_1 branch) and repl

[JBoss-user] [Remoting] - remoting sources for 4.0.4GA

2006-06-18 Thread elkner
Is it possible to provide the sources for the jboss-remoting.jar, which comes with 4.0.4GA? Without it it is really a pain/impossible to debug ... :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951556#3951556 Reply to the post : http://www.jboss.com/inde

[JBoss-user] [EJB 3.0] - serialization exception with mustang

2006-06-18 Thread elkner
I wanna test (and actually really wanna use) 1.6 with my EJB3 standalone clients. Unfortunately it seems to be impossible dueto a serialization problem: 23:19:40,103 [Thread-4] ERROR (SocketClientInvoker.java:293) - Got marshalling exception, exiting | java.lang.ClassNotFoundException: [Ljava.

[JBoss-user] [EJB 3.0] - Re: @Service bug

2006-06-15 Thread elkner
Thanx william, but somehow it doesn't work or I replaced the wrong line. I guess, you ment the 2nd bind entry in the "Service Bean" domain element (for my version 4.0.4GA vanilla this is line 330)? Do you need the complete stack trace ? View the original post : http://www.jboss.com/index.html

[JBoss-user] [EJB 3.0] - @Service bug

2006-06-15 Thread elkner
Is it possible, that @Service is still not completely fixed wrt. Permissions ? E.g.: @Service | @SecurityDomain("shared") | @RunAs("staff") | -- log -- | 2006-06-15 23:58:30,355 WARN [ScannerThread:org.jboss.system.ServiceController:515] - Problem stopping service jboss.j2ee:ear=freddy

[JBoss-user] [Remoting] - InvokerLocator: Why always resolve(host) ?

2006-05-26 Thread elkner
I'm currently trying to fix jboss to allow naming + ejb3 transport completely via http[s] and to get it working via tunneled connections. The problem I see is, that InvokerLocator always tries to resolve the host to an inetAddress/its own hostname in the constructor. This IMHO not very useful,

[JBoss-user] [EJB 3.0] - Re: jnp+http[s] != invocation via http - bug ?

2006-05-25 Thread elkner
"[EMAIL PROTECTED]" wrote : The ejb transport is independent of the naming service transport. | OK, but it is involved/used to create the InvokerLocation for the ejb transport. That's what I wanna tweak wrt. the request. anonymous wrote : The ejb remote binding being looked up has to be confi

[JBoss-user] [EJB 3.0] - jnp+http[s] != invocation via http - bug ?

2006-05-25 Thread elkner
Hi, just tried to tunnel jnps via ssh and found out, that it seems to have real security issues: 1) the initial context lookup is done via https, ok 2) but any consecutive ctx.lookup is done via plain http://{serveraddr}:80/... 3) every ejb3 invocation is done via a plain aka unencrypted socke

[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread elkner
"[EMAIL PROTECTED]" wrote : | - I actually (as a programmer) would recommend to not use SimpleDateFormat unless your formatting is stored in a database field since its performance is pretty bad. Hmmm, would say, that depends. Its probably not as fast as Integer.toString(), but IMHO its stil

[JBoss-user] [EJB 3.0] - Re: MySQL Connector/J 3.1

2006-05-18 Thread elkner
Here an example, which I usually place directly into the $jboss/server/$instance/deploy/ directory: | | TestDS | jdbc:mysql://localhost:3306/test | com.mysql.jdbc.Driver | test.dba | test | false | true | conv

[JBoss-user] [EJB 3.0] - Re: MySQL Connector/J 3.1

2006-05-17 Thread elkner
You already tried: convertToNull | or something like that ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944361#3944361 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944361

[JBoss-user] [EJB 3.0] - EJBTHREE-425 rejected ?

2006-05-04 Thread elkner
Emmanuel, I do not understand your comment on EJBTHREE-425 aka why you rejected it? Is it possible to explain a little bit more? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941452#3941452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=po

[JBoss-user] [EJB 3.0] - Re: Bean (+mysql) doesn't get deployed

2006-05-03 Thread elkner
And oracle has more than one dialect as well - be warned ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941012#3941012 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941012

[JBoss-user] [EJB 3.0] - Re: Classcast Exception $Proxy thing

2006-04-15 Thread elkner
http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937523#3937523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937523 -

[JBoss-user] [EJB 3.0] - Re: @Local and @Remote version of the same interface?

2006-04-14 Thread elkner
"lhoriman" wrote : Why would you ever want a bean with identical Local and Remote interfaces?Because I wanna make sure, that at the server the method params are passed as reference and thus avoid the serialization overhead ... ? View the original post : http://www.jboss.com/index.html?module=bb

[JBoss-user] [EJB 3.0] - Re: em.merge generates

2006-04-07 Thread elkner
Did you give @EmbeddedId a try ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935738#3935738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935738 --- This SF.Net

[JBoss-user] [EJB 3.0] - Re: Why doesn't the name() attribute of the @Stateless annot

2006-04-06 Thread elkner
How about @Service + @Management and putting the "init my app" stuff into the start() method (having that in the spec would be really cool)? OK, there is still the permission issue wrt. @RunAs, but AFAIK it is already fixed in CVS (but not in CR2 :-(()... View the original post : http://www.j

[JBoss-user] [EJB 3.0] - Re: Problems with Date

2006-04-05 Thread elkner
Perhaps 'interval' is a reserved word within mysql ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935074#3935074 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935074

[JBoss-user] [EJB 3.0] - Re: Tutorial: Integrating EJB3.0 into JBoss AS 4.0.4.CR2

2006-04-04 Thread elkner
Wondering, what those "j2ee rules" are ... ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934838#3934838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934838 --

[JBoss-user] [EJB 3.0] - Performance: @EmbeddedId or @IdClass?

2006-03-30 Thread elkner
Any experience/hints, whether @EmbeddedId or @IdClass should be used wrt. better performance? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933883#3933883 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933883 ---

[JBoss-user] [EJB 3.0] - Re: @Service + @Management + @Remote + @SecurityDomain?

2006-03-29 Thread elkner
Thax a lot. Hope it doesn't take too long ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933570#3933570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933570 ---

[JBoss-user] [EJB 3.0] - Re: @Service + @Management + @Remote + @SecurityDomain?

2006-03-29 Thread elkner
Thanx for the info. Unfortunately I need start() and stop() to fire up/cancel timer threads :( BTW: What are your estimations? Is it possible to have it fixed in RC2? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933500#3933500 Reply to the post : http://w

[JBoss-user] [Security & JAAS/JBoss] - Re: Username in DatabaseServerLoginModule is null

2006-03-29 Thread elkner
Enable the log trace level for org/jboss/security/auth/spi . Perhaps it queries for something else ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933395#3933395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933395

[JBoss-user] [EJB 3.0] - Re: @Service + @Management + @Remote + @SecurityDomain?

2006-03-28 Thread elkner
Was slightly faster: http://jira.jboss.com/jira/browse/EJBTHREE-491 ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933279#3933279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933279

[JBoss-user] [EJB 3.0] - @Service + @Management + @Remote + @SecurityDomain?

2006-03-27 Thread elkner
Is this bean (@Service + @Management + @Remote + @SecurityDomain) possible ? For my case, @Service + @Management + @Remote works, but as soon as I add @SecurityDomain (since I do not want, that unauthenticated users are allowed to invoke service methods), I get an exception like: 2006-03-28 00:

[JBoss-user] [EJB 3.0] - Re: persistence.xml

2006-03-25 Thread elkner
For test environment OK. But for production (i.e. when I'm sure, everything is fine), I do not want to have a ... fetching something from somewhere (even if it is a schema, only) and slowing down the things by validating already validated stuff ... View the original post : http://www.jboss.com

[JBoss-user] [EJB 3.0] - Re: DOS issue - DefaultUncaughtExceptionHandler needs to be

2006-03-25 Thread elkner
Hmm, already fixed that stuff and have no ex. handy anymore. If I'm remember correctly, I created a Thread (more or less long running task) from within a bean and within the thread I got an NPE ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932637#39326

[JBoss-user] [EJB 3.0] - Re: persistence.xml

2006-03-25 Thread elkner
Or just to switch validation off ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932603#3932603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932603 --- This SF.Ne

[JBoss-user] [EJB 3.0] - Re: How to protect an object from concurrent access in EJB3.

2006-03-22 Thread elkner
http://docs.jboss.org/ejb3/app-server/HibernateEntityManager/reference/en/html_single/index.html#transactions-optimistic http://docs.jboss.org/ejb3/app-server/HibernateEntityManager/reference/en/html_single/index.html#transactions View the original post : http://www.jboss.com/index.html?module=bb

[JBoss-user] [EJB 3.0] - Re: @PrimaryKeyJoinColumns is disallowed annotation

2006-03-22 Thread elkner
Hmm, actually I expected to see the Airline class. But anyway, the IDE issue might be an outdated ejb3.api beeing used. The other thing you have to find out by yourself. Just mimic the spec example and if it works, start modifying it ;-) View the original post : http://www.jboss.com/index.htm

[JBoss-user] [EJB 3.0] - Re: How to protect an object from concurrent access in EJB3.

2006-03-22 Thread elkner
Not sure, what you are trying to accomplish with it, however, where do you know, 1) that's the EM has only ONE instance of an SLSB? 2) that there is only one EM, which "manages" the SLSB? 3) that not another instance of something accesses your bean from within another ClassLoader? 4) Scaleabili

[JBoss-user] [EJB 3.0] - Re: @PrimaryKeyJoinColumns is disallowed annotation

2006-03-22 Thread elkner
Rough guess: @EmbeddedId What tables do you expect to join ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931843#3931843 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931843 ---

[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?

2006-03-21 Thread elkner
"binario" wrote : I think this is a TERRIBLE design flaw. Hmm, IMHO this is better, than blowing up the required code and introduce a more or less big performance problem and other trouble. anonymous wrote : it should be documented CLEARLY. Yepp. +100 View the original post : http://www.jboss

[JBoss-user] [EJB 3.0] - Re: How to protect an object from concurrent access in EJB3.

2006-03-21 Thread elkner
Well, at least if you use a kind of optimistic locking via @Version one of both should fail and the failed transaction should be rolled back (of course only, if your are not chomping the Exceptions, which automatically trigger the rollback ;-)). Just make sure, that you call em.flush() after mer

[JBoss-user] [EJB 3.0] - Re: How to protect an object from concurrent access in EJB3.

2006-03-21 Thread elkner
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931558#3931558 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931558 --

[JBoss-user] [EJB 3.0] - Re: DOS issue - DefaultUncaughtExceptionHandler needs to be

2006-03-20 Thread elkner
Found a solution by myself: --- jboss-4.0.4RC1-src/system/src/main/org/jboss/system/server/ServerImpl.java.orig Mon Mar 20 23:38:02 2006 | +++ jboss-4.0.4RC1-src/system/src/main/org/jboss/system/server/ServerImpl.java Mon Mar 20 23:45:07 2006 | @@ -172,6 +172,16 @@ |// masqurade

[JBoss-user] [EJB 3.0] - Re: JNDI Lookup Failure, ClassCastException, 4.0.4RC1

2006-03-20 Thread elkner
"tromanowski" wrote : | Is anyone that is using the current Jboss EJB 3.0 release building and deploying an ear? Would you please post the structure of your ear? foobar.ear | foobar.ear!lib | foobar.ear!lib/bar-if.jar | foobar.ear!lib/bar-if.jar!META-INF | foobar.ear!lib/bar-if.jar!ME

[JBoss-user] [EJB 3.0] - DOS issue - DefaultUncaughtExceptionHandler needs to be set

2006-03-20 Thread elkner
Hmm, just played around with some loggers and found out, that JBoss does not set a DefaultUncaughtExceptionHandler (see Thread.setDefaultUncaughtExceptionHandler(...)). The problem here is, that if an exception is not caught (e.g. NPE), it leads to the invocation of ThreadGroup.uncaughtExcepti

[JBoss-user] [EJB 3.0] - Persistence: Timezone property ?

2006-03-18 Thread elkner
Is there a property to set the default timezone to be used in the persistence.xml? My problem is, that I do not want to have to command a user, under which timezone he has to run its application server (since other apps my rely on a certain one). However, the only reliable way to store dateti

[JBoss-user] [EJB 3.0] - Re: EntityManager find method is not throwing EntityNotFound

2006-03-10 Thread elkner
Expected behavior: see PFD-Persistence page 38 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929486#3929486 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929486 --

[JBoss-user] [EJB 3.0] - Re: Problems with getting EntityManagerFactory via JNDI

2006-03-08 Thread elkner
http://jira.jboss.com/jira/browse/EJBTHREE-438 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928752#3928752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928752 --

[JBoss-user] [EJB 3.0] - Re: IllegalStateException in BaseSessionContext.getCallerPri

2006-03-06 Thread elkner
Since no standard available, I use a much simpler approach, i.e. without a callback handler or java.security.auth.login.config: @Override | public boolean authenticate(String name, char[] password, String[] roleNames) | throws Exception | { | if (roleNames

[JBoss-user] [EJB 3.0] - Re: @persistencecontext: name or unitName?

2006-02-23 Thread elkner
yes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925824#3925824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925824 --- This SF.Net email is sponsored by xPML,

[JBoss-user] [EJB 3.0] - Re: Hibernate enum bug ?

2006-02-22 Thread elkner
Just to make sure: your enums are not annoted with @Embedded or something like that, are they? For a shot into the blue, just remove all annotations from your enum and check, whether it works... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925588#3925588 R

[JBoss-user] [EJB 3.0] - Re: EJB client cannot connect: [SocketServerInvoker] Failed

2006-02-21 Thread elkner
Not sure, whether you put the right logs on the issue (it says somes bla at linux, but the logs sees to come from windows). Anyway, I guess you missed to post the important part - the log, which states, that the entity is not bound. You should lookup your bean with $EARNAME/$beanname/local|rem

[JBoss-user] [EJB 3.0] - Re: PK, FK, referenced column problem for ejb3 entity in RC4

2006-02-21 Thread elkner
What I see is, that you wanna create a companies table with two columns with the same name (CLIENTID), one is an long column (clientId) and the other is the column with the FK to Clients.CLIENTID. So ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925384#3

[JBoss-user] [EJB 3.0] - FYI:Tomcat + private static final fields

2006-02-17 Thread elkner
FYI: This is probably something one should know, if one uses tomcat: anonymous wrote : Tomcat's classloader will still rudely null out private fields on objects to | which 'static final' references exist, but it will only do so if the referred | objects themselves were loaded by a webapp cla

[JBoss-user] [EJB 3.0] - Re: enum as primary-key

2006-02-16 Thread elkner
1) Why are you annotating it with embeddable ? 2) Why do you overwrite the ordinal stuff ? Are you looking for trouble ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924395#3924395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[JBoss-user] [EJB 3.0] - Re: Blob No Such Method Error

2006-02-16 Thread elkner
My blobs work wo any problems (and did with the old notation in 4.0.3x) as well. IMHO there is no need to wrap that array into something else: @Lob @Basic(fetch=FetchType.EAGER, optional=true) | @Column(name="image", length=262144) | public byte[] getImage() { |

[JBoss-user] [EJB 3.0] - Re: Hibernate enum bug ?

2006-02-16 Thread elkner
This was a problem with 4.0.3SP1 (EJB RC3) - one had to use enumvar.ordinal(). The ordinal stuff however does not work anymore with 4.0.4RC1. So I removed .ordinal() from all parameters and it works as expected. So at least for me everything is fine with enums now (using MySQL 5.0.15, connecto

[JBoss-user] [EJB 3.0] - Re: Hibernate enum bug ?

2006-02-14 Thread elkner
see "9.1.19 Enumerated Values" in the Java Persistence API PFD View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923778#3923778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923778 -

[JBoss-user] [Security & JAAS/JBoss] - Re: Server not clearing the user authentication

2006-02-14 Thread elkner
4.0.4RC1 comes with EJB 3.0 RC5. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923646#3923646 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923646 --- This SF.net

[JBoss-user] [EJB 3.0] - Re: Problem with Lazy attributes - 4.0.3SP1-EJB3.0RC4

2006-02-13 Thread elkner
Another hint I got wrt. 440: 0 DEBUG [ main ] org.jboss.security.SecurityAssociation - Using ThreadLocal: false 50 DEBUG [ main ] org.jboss.remoting.Client - invoke called, but our invoker is disconnected, discarding and fetching another fresh invoker for: InvokerLocator [socket://192.168.21.1:

[JBoss-user] [EJB 3.0] - Re: Problem with Lazy attributes - 4.0.3SP1-EJB3.0RC4

2006-02-12 Thread elkner
But I think, I know why: The legacy db has no/does not support FKs. Try the given example with mysql (I'm using 5.0.15): USE test; | DROP TABLE IF EXISTS `categories`; | CREATE TABLE `categories` ( | `categories_id` int(11) NOT NULL auto_increment, | `parent_id` int(11) NOT NULL defaul

[JBoss-user] [EJB 3.0] - Re: em.getReference ?

2006-02-12 Thread elkner
OK, thanx for the enlighten me ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923184#3923184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923184 --- This SF.ne

[JBoss-user] [EJB 3.0] - Re: Problem with Lazy attributes - 4.0.3SP1-EJB3.0RC4

2006-02-12 Thread elkner
Does not help. Still the same problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923183#3923183 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923183 --- This S

[JBoss-user] [EJB 3.0] - Re: Problem with Lazy attributes - 4.0.3SP1-EJB3.0RC4

2006-02-11 Thread elkner
"[EMAIL PROTECTED]" wrote : Guys, | I need more information. I need a test case I can reproduce. Currently, we cannot reproduce any of your problems. | Now I've found one too in an old app, which I'm currently converting to 4.0.4RC1. Reduced stuff looks like this: | @Entity | @Table(

[JBoss-user] [EJB 3.0] - Re: Sahoo 'using java Persistence JEE 5' blog

2006-02-11 Thread elkner
E.g. because my EJBs use util classes, which are required on the rich client (and in the feature possibly on the web app as well). Right now, I've to add the util classes to the ejb.jar - otherwise I get ClassNotFoundExeptions when invoking the beans. OK, perhaps it might work to add a class-pa

[JBoss-user] [EJB 3.0] - Re: Sahoo 'using java Persistence JEE 5' blog

2006-02-11 Thread elkner
Hmmm, is this (*.ear/lib/availableToAll.jar) on your roadmap for 4.x ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923056#3923056 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923056 -

[JBoss-user] [EJB 3.0] - Re: Problem With EJB or JBOSS CACHE..seems L1 Cache Problem

2006-02-11 Thread elkner
Interesting. Wondering, whether it would help in case 2), to create the query outside of loop and just setting the id inside the loop via query1.setParameter("pid", id). Also it would be interesting, how the second case looks, if you em.flush() at the end of the loop (i.e. after clearing orders

[JBoss-user] [EJB 3.0] - Re: NPE createEntityManagerFactory

2006-02-10 Thread elkner
http://jira.jboss.com/jira/browse/EJBTHREE-438 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923006#3923006 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923006 --

[JBoss-user] [EJB 3.0] - em.getReference ?

2006-02-10 Thread elkner
Just saw the use case for em.getReference() in HibernateEntityManager/reference/en/html/objectstate.html: child = new Child(); | child.SetName("Henry"); | Parent parent = em.getReference(Parent.class, parentId); //no query to the DB | child.setParent(parent); | em.persist(child); My qu

[JBoss-user] [EJB 3.0] - NPE createEntityManagerFactory

2006-02-10 Thread elkner
Hmm, using 4.0.4RC1 I get always a NPE when I try to create an EM factory: javax.persistence.PersistenceException: java.lang.NullPointerException at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:173) at org.hibernate.ejb.HibernatePersistenc

[JBoss-user] [EJB 3.0] - Re: annotation changes ...

2006-02-09 Thread elkner
Another one (since wiki does not work): Rich clients will need jboss40/server/all/lib/jboss-serialization.jar (watch out for exceptions wrt org.jboss.serial.io.JBossObjectOutputStream) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922777#3922777 Reply to th

[JBoss-user] [EJB 3.0] - annotation changes ...

2006-02-09 Thread elkner
Perhaps it is worth to add them to the wiki or hibernate migration guide: @Lob(fetch=FetchType.EAGER, optional=true, type = LobType.BLOB) is now @Lob @Basic(fetch=FetchType.EAGER, optional=true) type (blob or clob) is determined automatically Use @Interceptors(A.class...) instead of @Interceptor

[JBoss-user] [EJB 3.0] - FATAL PersistenceXmlLoader ?

2006-02-09 Thread elkner
Would should tell me the follwing: 2006-02-10 00:14:31,172 FATAL [ScannerThread:org.hibernate.ejb.packaging.PersistenceXmlLoader:101] - $earname JTA No other WARN, ERROR around it. So should I assume, something is wrong (at least logs look ok) or is it a just a kind of typo ? env: 4.0.4RC1 V

[JBoss-user] [EJB 3.0] - Re: Error with fetching nested entities

2006-02-09 Thread elkner
OK, thanx! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922754#3922754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922754 --- This SF.net email is sponsored by:

[JBoss-user] [EJB 3.0] - Re: Error with fetching nested entities

2006-02-09 Thread elkner
Emmanuel, is it leagal to use p.getMandant.getId() aka "native" PKs on lazy fetched entities, or is it just an unreliable sideffect? Asking because this would make caching on the client side for e.g. tree like structures easier/less complex ... View the original post : http://www.jboss.com/i

[JBoss-user] [EJB 3.0] - Re: entitymanager does not flush ?

2006-02-03 Thread elkner
"[EMAIL PROTECTED]" wrote : flush() just calls JDBC updates, it doesn't commit. Ahh, so I interpreted the spec not as assumed. OK, thinking a little bit more about it, it is probably not so easy to rollback already db commited data ;-) anonymous wrote : For transacted JMS use the "java:/JmsXA" f

[JBoss-user] [EJB 3.0] - Re: Problem with Lazy attributes - 4.0.3SP1-EJB3.0RC4

2006-02-03 Thread elkner
See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=76094 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921580#3921580 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921580 --

[JBoss-user] [EJB 3.0] - entitymanager does not flush ?

2006-02-02 Thread elkner
Is it possible, that in 4.0.3SP1 vanilla the entitymanager does not flush, when em.flush() is called, but at the end of a JTA, only ? My SLSB szenario: C1:t0) remote client creates a new entity S1:++t0) server em.persist(entity) S2:++t0) server em.flush() S3:++t0) server broadcast: new entity S

[JBoss-user] [EJB 3.0] - cannot commit with autocommit set ???

2006-01-26 Thread elkner
Hmmm, since it seems to be impossible to persist and remove an entity within the same JTA, I 'm trying to manage the tx manually, i.e. with tx1 persist and within tx2 cleanup aka remove: SLSB ... | @PersistenceUnit(unitName="foo") | EntityManagerFactory emf; | EntityManager em;

[JBoss-user] [EJB 3.0] - deleted entity passed to persist exception ???

2006-01-25 Thread elkner
Hmmm, is it not allowed to create and persist an entity and later to delete it within the same JTA? What I [need to] do is: 1) read the header of a file and [re]populate/merge in tree nodes 2) read the remaining part of the file and fill the tree nodes with content/merge new content 3) finally r

[JBoss-user] [EJB 3.0] - Re: hibernate client jar

2006-01-25 Thread elkner
No, I haven't since JBoss Team said, problems should be posted to discussion forums first. However, reproduction is easy: 1) Create an entity, which has a property represented by a lazy fetched collection 2) Get the remote entity with the lazy collection (i.e. server side does not fetch it) Th

[JBoss-user] [EJB 3.0] - Re: hibernate client jar

2006-01-24 Thread elkner
Actually there is already a hibernate-client.jar in jboss/client/. However, this is not sufficient when using lazy stuff (because of the missing hibernate*Proxy) and that's why you still need hibernate3.jar and may forget hibernate-client.jar ... :((( View the original post : http://www.jboss.

[JBoss-user] [EJB 3.0] - Re: EJB 3.0 RC4

2005-12-12 Thread elkner
dito! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912218#3912218 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912218 --- This SF.net email is sponsored by: Splu

[JBoss-user] [Security & JAAS/JBoss] - Re: How to copy protect an EAR?

2005-12-01 Thread elkner
"oglueck" wrote : You can not make any code tamper-safe. All code you give away is untrusted. Hmmm, even not, if archives are signed ? Actually my concern is not really reverse-engineering, but rather a way to assure users, that they have the "right/original" archive. View the original post :

[JBoss-user] [EJB 3.0] - Re: Logging

2005-12-01 Thread elkner
persistence.xml: conf/log4j.xml: | | | | | | | | | | | | Does this help ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910065#3910065 Reply to the post :

[JBoss-user] [Security & JAAS/JBoss] - Re: validate sun certificate

2005-11-18 Thread elkner
Try to add to the keystore the certificate[s] of the CA,who signed the two certs as well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907894#3907894 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907894 --

[JBoss-user] [Security & JAAS/JBoss] - Re: Simple users/roles login to EJBs not passing username/pa

2005-10-25 Thread elkner
I use usually a simpler approach: public static InitialContext getInitialContext(...) | throws NamingException | { | String trailer = ("http".equals(proto) || "https".equals(proto)) | ? "/invoker/JNDIFactory" | : null;

[JBoss-user] [Security & JAAS/JBoss] - Re: Help please - Simple example of JASS/JBoss DatabaseServe

2005-10-19 Thread elkner
perhaps log4j.xml: | | | gives you a little bit more information ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902050#3902050 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902050

[JBoss-user] [Security & JAAS/JBoss] - Re: login-config works, but not with MD5

2005-10-13 Thread elkner
echo -n "test" | openssl dgst -md5 -binary | openssl base64 does the same ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900982#3900982 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900982 -

[JBoss-user] [Management, JMX/JBoss] - Re: jmx-console: db authentication doesn't work

2005-09-05 Thread elkner
Sorry, for forgetting to add that: authentication doesn't work. The log says: 2005-09-05 18:20:25,589 DEBUG [http-0.0.0.0-8080-1:org.jboss.security.plugins.JaasSecurityManager:218] - CallbackHandler: [EMAIL PROTECTED] | 2005-09-05 18:20:25,589 DEBUG [http-0.0.0.0-8080-1:org.jboss.security.plug

[JBoss-user] [Management, JMX/JBoss] - jmx-console: db authentication doesn't work

2005-09-04 Thread elkner
I want to use a DatabaseServerLoginModule instead of the UsersRolesLoginModule for jmx-console authentication. However, this doesn't seem to work (UsersRolesLoginModule does the job, but not DatabaseServerLoginModule). the relevant part of my login-config.xml: | |

[JBoss-user] [Security & JAAS/JBoss] - JMS + Security

2005-04-08 Thread elkner
I've setup an application, which uses JMS Topics to inform stand-alone clients about certain state change. So the client subscribe to the well known topic and receive messages. Now I want to secure the topic, so that authenticated clients are able to subscribe to the topics, only. I've an appli