[jboss-user] [JBoss Seam] - Error in Seam Action accessing another JBoss instance passin

2007-01-26 Thread fastmhaavald
I have a Seam application(the booking example in fact) invoking a request to 
another JBoss app server.
This app server returns the entity objects as result which triggers the 
exception below:


java.io.InvalidClassException: org.hibernate.collection.PersistentBag; local 
class incompatible: stream classdesc serialVersionUID = -992182677146982163, 
local class serialVersionUID = 2819117614876030537


Anybody know how to work around or avoid this problem?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006789#4006789

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006789
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - JMX and Security -- Re: JMX RMI Connector from JDK1.5

2006-11-28 Thread fastmhaavald
Hi,

I have protected the jmx-console at installation of servr(4.04-GA):

Have anybody got it working programmatically logging in and accessing MBeans.
A code example would help a lot since doc is hard to come across

Trying to access MBeans gives:

Exception in thread "main" java.lang.SecurityException: Failed to authenticate 
principal=null, securityDomain=jmx-console
at 
org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989323#3989323

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989323
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: MBean and JNI access

2006-10-26 Thread fastmhaavald
Hi,

I have the same problem.

A general question: SCOPING ?

We have some java code which works as long as calling code is not scoped, but 
in default package.

If we add classes to a scope package com.myscope; 

We get Unsatisdied link error



Remove scope and it works stand alone java app.



In the MBean we make sure that code accessing the native is using same class 
loader as code loading JNI lib...


But unsatisfied link error

Perhaps removing scope in MBean makes it work???


Any ideas, folks?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981025#3981025

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: JNI, System.loadLibrary() and class loader interactions

2006-10-24 Thread fastmhaavald
"bhandsaker" wrote : I was on the right track in what I wrote above.  I finally 
found the
  | following reference in the JNI spec
  | (http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/design.html):
  | 
  |  anonymous wrote :"The programmer may use a single library to store all 
the native methods
  |   | needed by any number of classes, as long as these classes are to be
  |   | loaded with the same class loader. The VM internally maintains a 
list
  |   | of loaded native libraries for each class loader. Vendors should 
choose
  |   | native library names that minimize the chance of name clashes."
  | 
  | The key point here is "same class loader".  Not a parent, not a child:
  | Same class loader.
  | 
  | We have resolved this problem by loading the native libraries from an MBean
  | and then invoking code during the initialization of the MBean that loads the
  | library *and* touches each class that uses native methods, forcing the 
classes
  | to be loaded by the MBean class loader.  Once we do this, everything works
  | correctly.
  | 
  | Note that if you do not force a class with native methods to be loaded by 
the
  | MBean, it will be successfully loaded later by a different class loader,
  | (for example, an EJB class loader), but the native methods will not be 
visible.
  | 
  | One side effect of this solution is that we cannot hot deploy the classes
  | with the native methods and our code that calls them.  We could perhaps
  | achieve some level of hot deployment if we carefully separated our code,
  | but we didn't try.
  | 
  | 

How do you force the class loading?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980320#3980320

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980320
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: JNI, System.loadLibrary() and class loader interactions

2006-10-24 Thread fastmhaavald
Hi,

we have same situation and follows above advice but it does not work.

We load library from MBean.start()
We do teh check class loader which confirms same classloader...

But, when calling an operation from JMX console which uses the native interface 
method, the unsatisifed link error comes

So...we are a bit puzzled why this does not work

Does there exist any test DLL and som JBoss code which actually works and shows 
how to do this?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980319#3980319

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980319
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Error with MS SQL 2005 and mapping of object with name U

2006-10-15 Thread fastmhaavald
Hi, 

"solution" to this was to remove the already created database, remove app from 
jboss deploy. Then start it and let it have the app again as a "fresh" start.

I guess the overall reason was the usage of "update" in the persistence.xml so 
beware...



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978397#3978397

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978397
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Error with MS SQL 2005 and mapping of object with name User

2006-10-13 Thread fastmhaavald
I have an object annotated as shown below.
Deploying in JBoss FAILS since it does not "see" the table name annotation.

When hibernate tries to create the user table it fails with MS SQL 2005:



@Entity
@Table(name= "USERITEM")
@Inheritance(strategy = InheritanceType.JOINED)
public class User implements Serializable {

...

}


JBoss:

20:16:42,809 ERROR [SchemaUpdate] Unsuccessful: create table User (ID 
numeric(19,0) identity not null, NAME varchar(255) not null unique, primary key 
(ID))
20:16:42,809 ERROR [SchemaUpdate] Incorrect syntax near the keyword 'User'.


Datasource in JBoss contains the following since I have not found any mapping 
spec for 2005 edition.

  
  
 MS SQLSERVER2000
  





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978266#3978266

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978266
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Sending to a remote JMS queue - [ConnectionAspect] Caugh

2006-10-11 Thread fastmhaavald
Hi,

Just a question:

Do you have example code using this config?


I have a similar issue, but in my case some beans need to send to a remote 
queue and others to a local queue.

I guess I have to configure two JMS Providers for this.

Have you tried this?




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977521#3977521

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977521
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user