[JBoss-user] [JCA/JBoss] - ERROR [BeanLock] Saw rolled back tx=TransactionImpl:XidImpl

2005-11-01 Thread cljhyjs
why?when many times to insert to db?
jboss error log;
14:59:43,828 WARN  [TransactionImpl] Transaction TransactionImpl:XidImpl [Format
Id=257, GlobalId=caolianjian//4415, BranchQual=] timed out. status=STATUS_ACTIVE

14:59:53,359 WARN  [TransactionImpl] Transaction TransactionImpl:XidImpl [Format
Id=257, GlobalId=caolianjian//4599, BranchQual=] timed out. status=STATUS_ACTIVE

14:59:53,375 ERROR [BeanLock] Saw rolled back tx=TransactionImpl:XidImpl [Format
Id=257, GlobalId=caolianjian//4599, BranchQual=]
14:59:53,375 ERROR [LogInterceptor] TransactionRolledbackException, causedBy:
java.lang.RuntimeException: Transaction marked for rollback, possibly a timeout
at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(Queued
PessimisticEJBLock.java:201)
at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPe
ssimisticEJBLock.java:157)
at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
tor.java:85)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
Interceptor.java:53)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT.java:243)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
04)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:117)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
ryFinderInterceptor.java:122)
at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483
)
at org.jboss.ejb.Container.invoke(Container.java:674)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
359)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:534)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904789


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Intermittent TransactionRollbackLocalExceptions

2005-11-01 Thread cljhyjs
"darretta" wrote : Problem was resolved. There was business logic that was 
causing multiple beans to share a single ID.

???can you speak detail??

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904788


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Clustering, Failover, Replication Examples

2005-11-01 Thread aho
I went through the DVD Store TrailBlazer in JBoss site hoping to find some 
example on how to implement Clustering, Failover and Replication.

In a section of the trailbalzer, it points out that :

In a distributable web application, entities can be placed in the HTTP session 
by a web component. In the event of fail over, the entities could continue to 
be used on the new machine and persisted back to the database with no special 
action taken on the part of the application.

In the DVD Store example, both the Web and EJB container reside in the same 
machine. If one fails, the load balancer redirect the request to the second 
sever. By the time the servlet in the second machine takes the request it has 
it's own HTTP session and will have no reference to the entity bean. How can 
this work. Is my assumption correct? Hope some one can clarify.

What about session beans? In the event of fail over, how can session beans 
could continue to be used on the new machine? Would appreciate some one can 
give examples or specify what needs to be done.

Many thanks
- aho

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904785


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - what's the Problem

2005-11-01 Thread xuvin
JBoss AS 4.0.3 throw a Exception "Base is null : user" when i ckick a button,
the jsp is 

the config file is 

user
onlyfun.caterpillar.UserBean
session


but it's ok in tomcat5.0

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904782


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Extending DatabaseServerLoginModule

2005-11-01 Thread [EMAIL PROTECTED]
DIGEST auth has nothing to do with MD5 hashed passwords. Its an alternative web 
authentication mechanism that uses a challenge/response mechanism to has the 
input password. MD5 is a 32 byte digest, so what is the problem with 
configuring DatabaseServerLoginModule like:


  | 
  |
  |   
  |   
  | ...
  |  MD5
  |  base64
  |   
  |
  | 
  | 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904781


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - CMP can't get working port from Borland - HELP!

2005-11-01 Thread chrisbitmead
Hi,

Trying to port an app that uses CMP to Jboss from Borland.

I've set up all the config files, ejb-jar.xml, jboss.xml, jbosscmp-jdbc.xml 
oracle-ds.xml. I start up the server and everything seems ok. The JMX console 
reports my beans are deployed etc.

Then I run my app which eventually gets to call findByPrimaryKey on one of my 
CMP objects and it returns javax.ejb.ObjectNotFoundException: No such entity!

I look at the jboss log file and it shows the SQL being executed which is 
perfectly fine. The row is definitely in the database, the key being passed is 
definitely correct from using the Eclipse debugger.

I just don't know how to diagnose a problem like this. I mean, I wonder if it 
is definitely executing the SQL on the correct oracle database, and not for 
example the HSSQL database. All the config I THINK points to the right place, 
but there is nothing in the log to say what is what.

I just don't know how to proceed on this. I've looked at these config files a 
hundred times. I've looked at all the details in the log. There isn't enough 
info to know where to go next. Help!


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904779


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - CMP can't get working port from Borland - HELP!

2005-11-01 Thread chrisbitmead
Hi,

Trying to port an app that uses CMP to Jboss from Borland.

I've set up all the config files, ejb-jar.xml, jboss.xml, jbosscmp-jdbc.xml 
oracle-ds.xml. I start up the server and everything seems ok. The JMX console 
reports my beans are deployed etc.

Then I run my app which eventually gets to call findByPrimaryKey on one of my 
CMP objects and it returns javax.ejb.ObjectNotFoundException: No such entity!

I look at the jboss log file and it shows the SQL being executed which is 
perfectly fine. The row is definitely in the database, the key being passed is 
definitely correct from using the Eclipse debugger.

I just don't know how to diagnose a problem like this. I mean, I wonder if it 
is definitely executing the SQL on the correct oracle database, and not for 
example the HSSQL database. All the config I THINK points to the right place, 
but there is nothing in the log to say what is what. 

I just don't know how to proceed on this. I've looked at these config files a 
hundred times. I've looked at all the details in the log. There isn't enough 
info to know where to go next. Help!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904777


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: How can I customize the portal login page?

2005-11-01 Thread conkan
I think that you need to edit the 'jsp' file 'index.jsp' under 
'jboss-portal-2.2\core\src\resources\portal-core-war\WEB-INF\jsp\catalog'.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904769


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: question on effect of various empty elements in -ds.xml

2005-11-01 Thread [EMAIL PROTECTED]
Thanks for the info. So we have

a)  ==> nowarn (at 
least for 3.2.6 onwards)

and 

c)   ==> 
false

Forgive me, but I'm a little confused about b). I tested with a Sept-14th 
version of HEAD and WRONG 
produces an IllegalArgumentException, but with  there 
is no such exception. I've looked through the comments in 
http://jira.jboss.com/jira/browse/JBAS-2048 and can't see anything which sheds 
light on this specific scenario.

Thanks very much

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904768


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Upgrade to Latest version

2005-11-01 Thread vvangara
Hello there,
How do we upgrade from one version to another version in Jboss?

Thanks
V

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904766


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - How can I customize the portal login page?

2005-11-01 Thread xgj6688
When I login, jBoss portal shows me a default login page at 
http://localhost:8080/portal/auth/index.html,  with a username text filed, a 
password filed, a 'jBoss portal login' text, and a login button, green 
background. How can I change this login page? For example, just changing the 
green background color to blue. I cann't find this login html file on my disk. 
It seems jBoss generates the login page with its specific mechanism instead of 
a html file.  Thanks. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904764


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Trying to get started

2005-11-01 Thread dnavas
I knew I'd figure it out as soon as I posted.
hibernate.session_factory_name needs to be set in the persistence.xml file.

BTW -- I agree with the original poster that your problem is very likely a 
ClassLoader
issue of some kind.  I'm not sure how the persistence layer glues the two pieces
together, but, you can get a good indication of the ClassLoader loading the 
Integer
for your bean using
static {
  |System.out.println(Integer.class.getClassLoader());
  | }
  | 
...in your bean class.  It ought to be the primordial class loader loading 
those classes

[Of course, that won't help you know what the ClassLoader is for the other 
end]

Hope that helps,
-Dave


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904763


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Load-Balancing SLSB

2005-11-01 Thread [EMAIL PROTECTED]
Certainly disabling the call by reference invoker will fix the issue, but this 
should be working with the default invoker interceptor in 4.0.2. There is a 
org.jboss.test.cluster.test.CrossServerCallsUnitTestCase that validates 
repeated calls to a SLSB from a server in a cluster does in fact result in 
calls to both the local and peer deployment of the SLSB. The details of how the 
SLSB is lookedup/used would be neede to understand how load balancing might be 
failing to work properly. TRACE level logging of the org.jboss.invocation 
category should shed light on what is going on as well.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904762


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - URL for Load balancing

2005-11-01 Thread stewchicken24
Dear *,

I have one question regarding loadblancing

I installed Apache + Mod_jk on Box A
installed one JBoss on Box B
installed another JBoss on Box C

I have two quetiones.
1)
Should I use URL  http:///project 
   or URL http://:8080/project ?

2)
I tried both ,it prompts me the error page 500.
Should I also cofigurate JBoss's port to 80 ?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904761


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Trying to get started

2005-11-01 Thread dnavas
You're doing better than I am -- the updated JBoss release didn't help me, I'm 
still
seeing a "hibernate not bound" message :(  Undoubtedly some form of mis-
configuration. I'm using hibernate "under" ejb3 and I'm trying to retrieve 
statistics so
I can tune my one-to-many collection retrieval (which is horribly slow 
irrespective of
BatchSize -- in fact, batching appears to make things worse).

partial bean
  | @Stateless
  | public class DeviceService implements DeviceFacade {
  | @PersistenceContext (unitName="DA")
  | protected EntityManager em;
  | 
  | 
  | @TransactionAttribute(TransactionAttributeType.REQUIRED)
  | public String printDvcId(long dvcId) {
  | try {
  | SessionFactory sessionFactory = (SessionFactory)new 
InitialContext().lookup("hibernate/SessionFactory");
  | 

So you see a HibernateMBeanService during startup?  I get the feeling there 
ought to be one, and I don't see it

Thanks,
-Dave


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904760


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: JNDI - StreamCorruptedException [unexpected block data]

2005-11-01 Thread geoffpowdrell
I forgot to show a sample of my jndi tree, so here it is :

+- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
  +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: 
javax.naming.LinkRef)
  +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: 
javax.naming.LinkRef)
  +- gov.qiris.service.HelloWorld (proxy: $Proxy82 implements interface 
gov.qiris.service.HelloWorld,interface org.jboss.ejb3.JBossProxy)

Please Note : I can look up other objects, for example concrete class 
UserTransaction looks and returns fine. I believe because my object is a JBoss 
Proxy that it is unable to do the lookup.
Geoff


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904758


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Stopping message re-delivery in JBoss-3.2.3

2005-11-01 Thread jaikiran
Havent tried out this option. Will try it out. Thanks a lot.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904759


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - JNDI - StreamCorruptedException [unexpected block data]

2005-11-01 Thread geoffpowdrell
Hi,
I have a standard java project which has Junit Test case in it. The Junit test 
case is setting up the JNDI environment, and then I do a lookup on my object. I 
have found that by including the jnp-client.jar and the jboss-common-client.jar 
I have eliminated a series of exceptions. I have looked at my my JNDI tree and 
have seen the object that I am looking up; so I don't get the 
NameNotFoundException, I'm passed that.
What I get is this, this is my stack trace

javax.naming.CommunicationException [Root exception is 
java.io.StreamCorruptedException: unexpected block data]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(Unknown Source)
at RegisterTest.testRegister(RegisterTest.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.io.StreamCorruptedException: unexpected block data
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at 
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
... 20 more


Here is my code .

import gov.qiris.service.HelloWorld;

import java.util.Hashtable;
import java.util.Properties;

import javax.naming.InitialContext;

import junit.framework.TestCase;

public class RegisterTest extends TestCase {

protected void setUp() throws Exception {
super.setUp();  
}  

public static Hashtable getDefaultJNDI() { 
Properties p = new Properties();
   
p.setProperty(InitialContext.PROVIDER_URL, 
"jnp://localhost:1099"); 
p.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory"); 
p.put("java.naming.factory.url.pkgs", 
"org.jboss.naming:org.jnp.interfaces");

return p;
}

// test register functionality.
public void testRegister() { 

try {  
InitialContext initialContext = new 
InitialContext(getDefaultJNDI());

String s = HelloWorld.class.getName();
Object obj = initialContext.lookup(s);
System.out.println("success");  
}
catch (Exception e) {
e.printStackTrace();
}

}

protected void tearDown() throws Exception {
super.tearDown();
}

}

HelloWorld is a Session Bean interface and lives in a middle tier project. It 
is an interface to my remote Session Bean instance.

Any ideas anyone ?
thanks Geoff 


 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904757


---
SF.Net ema

[JBoss-user] [JCA/JBoss] - Re: question on effect of various empty elements in -ds.xml

2005-11-01 Thread [EMAIL PROTECTED]
0 out of 3 - must try harder!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904748


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: question on effect of various empty elements in -ds.xml

2005-11-01 Thread [EMAIL PROTECTED]
And for the future reference of all those that don't want to do their own work.

a) BaseWrapperManagedConnectonFactory.setTrackStatements(String)

  |public void setTrackStatements(String value)
  |{
  |   if (value == null)
  |  throw new IllegalArgumentException("Null value for 
trackStatements"); 
  |   String trimmed = value.trim();
  |   if (trimmed.equalsIgnoreCase(TRACK_STATEMENTS_FALSE))
  |  trackStatements = TRACK_STATEMENTS_FALSE_INT;
  |   else if (trimmed.equalsIgnoreCase(TRACK_STATEMENTS_TRUE))
  |  trackStatements = TRACK_STATEMENTS_TRUE_INT;
  |   else
  |  trackStatements = TRACK_STATEMENTS_NOWARN_INT;
  |}
  | 
Answer: NOWARN (at least since that has been the default)

b) BaseWrapperManagedConnection.setIsolationLevel(String)

  | 
  |public void setTransactionIsolation(String transactionIsolation)
  |{
  |   if (transactionIsolation.equals("TRANSACTION_NONE"))
  |  this.transactionIsolation = Connection.TRANSACTION_NONE;
  |   else if (transactionIsolation.equals("TRANSACTION_READ_COMMITTED"))
  |  this.transactionIsolation = Connection.TRANSACTION_READ_COMMITTED;
  |   else if (transactionIsolation.equals("TRANSACTION_READ_UNCOMMITTED"))
  |  this.transactionIsolation = 
Connection.TRANSACTION_READ_UNCOMMITTED;
  |   else if (transactionIsolation.equals("TRANSACTION_REPEATABLE_READ"))
  |  this.transactionIsolation = Connection.TRANSACTION_REPEATABLE_READ;
  |   else if (transactionIsolation.equals("TRANSACTION_SERIALIZABLE"))
  |  this.transactionIsolation = Connection.TRANSACTION_SERIALIZABLE;
  |   else
  |   {
  |  try
  |  {
  | this.transactionIsolation = 
Integer.parseInt(transactionIsolation);
  |  }
  |  catch (NumberFormatException nfe)
  |  {
  | throw new IllegalArgumentException("Setting Isolation level to 
unknown state: " + transactionIsolation);
  |  }
  |   }
  |}
  | 
Answer: IllegalArgumentException
However: http://jira.jboss.com/jira/browse/JBAS-2048

c) isSameRM-override-value


  |
  |  
  |
  | 

Answer: Boolean.valueOf("") == false

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904747


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - NoSuchObjectLocalException: Entity not found: primaryKey=0

2005-11-01 Thread Bitman
I have some EJBs with relations.  The relations seem to work fine, but when I 
turn on cascade delete and remove the parent, I get the exception in the title. 
 Why is JBoss even looking for primary key zero?  JBoss designed the schema so 
that zero means no relation, so why is it now trying to look up that key?

JBoss version is 3.2.7.  The key field is of type Long, and is not nullable in 
the database.  Have I misconfigured something?  Am I using integer keys wrong?

I can post lots more code, but I'm hoping this simple question will point to 
the answer.  Thanks!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904744


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: question on effect of various empty elements in -ds.xml

2005-11-01 Thread [EMAIL PROTECTED]
Well done. Why guess when you "suck it and see" or read the code?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904743


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: Failed native method call when using JBoss 4

2005-11-01 Thread ckreps
Having same problem with  a JNI call to a C library from an MBean in jboss 
4.0.3.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904742


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


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

2005-11-01 Thread ckreps
I am having the same problem with LD_LIBRARY_PATH on linux and an MBean that 
should be able to invoke a shared library defined on that path.  Could someone 
please post a response?  Maybe a hint on where to look in the JBoss 
documentation?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904740


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - A cmr collection may be used only in the transaction in whic

2005-11-01 Thread dvohra09
When a CMR Collection is iterated over an exception gets generated:

A cmr collection may be used only in the transaction in which it was created.

Example:java.util.Collection collection=entityObject.getCMRCollection();
Iterator iterator=collection.iterator();

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904738


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - question on effect of various empty elements in -ds.xml

2005-11-01 Thread [EMAIL PROTECTED]
Could someone please tell me the effect of putting the following empty elements 
into a -ds.xml file.

a) 

b) 

c) 

My guesses

a) same as true

b) same as if no transaction-isolation element was specified, i.e. use the 
databases default txn isolation level

c) same as if no isSameRM-override-value element was specified, i.e. don't 
override isSameRM()


Thanks very much

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904736


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: How do I write my Own Portal..

2005-11-01 Thread rincewind23
Looks like quite a few people have got this working. I can't, but I think I'm 
doing it slightly differently. What I'm trying to do is add a portlet and a 
page containing that portlet to the default portal. From reading the 
documentation it looks like what I need to do is put into a war the following:

the code for my portlet (in WEB-INF/classes)

helloworld-portlet.xml, the portlet descriptor (in WEB-INF) which contains the 
portlet class name and the portlet-name, which is referenced by

jboss-portlet.xml (in WEB-INF) which contains the portlet-name defined in the 
portlet.xml

portlet-instances.xml (in WEB-INF) which contains an instance-name for 
referring to the portlet (where component-ref in this file= portlet-name in 
jboss-portlet.xml and portlet.xml)

jboss-app.xml (in WEB-INF) which contains an app-name which is referenced in 
helloworld-pages.xml

helloworld-pages.xml (in WEB-INF) which is a definition for a page, where 
portal-name is the name of an existing portal definition, and instance-ref is 
//

So basically what I would be doing is defining a new page in helloworld-pages, 
but have the portal-name set to default so it attaches the page to the existing 
(default) portal.

Can anyone see what I'm doing wrong? Or is this not the right info to diagnose 
the problem? 

Or if anyone could let me have a working HelloWorld.war I can take a look at, 
that would be much appreciated - the link in the Documentation to where the 
HelloWorld example is now takes you to portletswap.com where there is no 
HelloWorld portlet.

Cheers,
Kev.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904735


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: UsingMod_jk1.2WithJBoss (2)

2005-11-01 Thread gensen
Hi, I got exactly the same error message. Have you or anyone else found out 
what the problem is? Thanks!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904731


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Insert SQL on deploy

2005-11-01 Thread patrick_ibg
I'm seeing this problem on 4.0.3SP1 with PostgreSQL 8 and HSQL as well.

I'm not sure if it's a Hibernate issue or a JBoss classloading issue.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904728


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JBP 2.2 on 4.0.3 SP1

2005-11-01 Thread mholzner
the 


  | java.lang.SecurityException: Not allowed to access portal resource: default 
[portal:global/default.default]
  | 
org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInter
  | ceptor.java:178) 
  | 

after a redeploy is a known issue that I'm working on. Basically the Policy and 
the PolicyConfiguration are no longer in synch after a redeploy due to some 
static memeber vars in the PolicyConfigurator. 
I run the current 2.2 cvs HEAD against 4.0.3 final and see some UserTransaction 
Not Found on startup, but the portal works fine for me despite those.  There is 
a post by Julien somewhere on this forum that explains where the stach trace 
comes from (Hibernate version I believe) 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904725


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: JBoss4 Hibernate Datasource Hot deployment

2005-11-01 Thread clizarralde
If we restart hibernate's Mbean then the problem is solved ( it uses the new 
datasource) 

Shouldn't these be automatically through MBean's dependency mechanism? 

Charly

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904723


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - WebServices delays

2005-11-01 Thread auroracoh

Hi,

We are considering whether to incorporate JBOSS to into our product
to deploy WebService applications and clients.

Our applications are somewhat real time sensitive.

We wanted to measure how long would it take JBOSS to deliver a WS request to 
the application code that needs to process it.

During our first measurements, we noticed a 50ms delay before application 
specific code started to execute.  

Looking at the logs, there seemed to be some sort of timeout or otherwise
generated time delay during Class loading.

Is this to be expected?

Perhaps I have configured something improperly?

Thanks in advace,

Luz A. Colvin
Lucent Technologies

Here is a copy of the trace:

2005-10-19 22:35:11,010 DEBUG [org.apache.catalina.loader.WebappClassLoader]
 --> Resource not found, returning null
2005-10-19 22:35:11,010 DEBUG [org.apache.catalina.loader.WebappClassLoader]
elegating to parent classloader unconditionally java.net.FactoryURLClassLoader@
bedb0
2005-10-19 22:35:11,033 DEBUG [org.apache.catalina.loader.WebappClassLoader]
-> Resource not found, returning null
2005-10-19 22:35:11,034 DEBUG [org.apache.catalina.loader.WebappClassLoader] lo
dClass(org.apache.xerces.parsers.XIncludeAwareParserConfiguration, false)

.
.
.
findResource(META-INF/services/org.apache.xerces.xni.parser.XMLParserConfigurat
ion)
2005-10-19 22:35:11,044 DEBUG [org.apache.catalina.loader.WebappClassLoader]
 --> Resource not found, returning null
2005-10-19 22:35:11,044 DEBUG [org.apache.catalina.loader.WebappClassLoader]   D
elegating to parent classloader unconditionally [EMAIL PROTECTED]
bedb0
2005-10-19 22:35:11,044 DEBUG [org.apache.catalina.loader.WebappClassLoader]   -
-> Resource not found, returning null
2005-10-19 22:35:11,045 DEBUG [org.apache.catalina.loader.WebappClassLoader] loa
dClass(org.apache.xerces.parsers.XIncludeAwareParserConfiguration, false)
2005-10-19 22:35:11,064 DEBUG [org.apache.catalina.loader.WebappClassLoader] loa
dClass(org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl, false)
2005-10-19 22:35:11,065 DEBUG [org.jboss.axis.utils.DOM2Utils] createElement {ht
tp://schemas.xmlsoap.org/soap/envelope/}Body
2005-10-19 22:35:11,065 DEBUG [org.jboss.axis.message.SOAPElementAxisImpl] Addin
g child: Body


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904720


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: JBoss4 Hibernate Datasource Hot deployment

2005-11-01 Thread clizarralde
We too have the same problem. We have set a MBean dependency from Hibernate's 
MBean to DS MBean (Managed Connection Pool) but it still holds a reference to 
the old datasource. 

Charly
pd: Using JBoss 4.0.1.sp1 and Hibernate 2.1.8

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904722


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Insert SQL on deploy

2005-11-01 Thread camross
I've seen this question previously, but it has not yet been answered.  I can't 
get SQL commands stored in an import.sql file to load data into my database.

The following configuration appears to function properly:
  - jboss-4.0.3 SP1
  - jboss-EJB-3.0_RC3
  - Sun's JDK 1.5.0_05
  - Linux Fedora Core 3
  - MySQL 14.7

I have the following very simple POJO Entity:
@Entity(access = AccessType.FIELD)
public class Principle implements Serializable 
{
@Id
@Length(min=3, max=25)
private String username;
public String getUsername() { return username;  }
public void setUsername(String username) { this.username = username; }
}

and an import.sql script that looks like this:
insert into Principle (username) values ('test');

my persistence.xml file looks like this (angle brackets removed to post 
correctly):


pandoDatabase
org.hibernate.ejb.HibernatePersistence
java:/pandoDatasource
properties
property name="hibernate.dialect" 
value="org.hibernate.dialect.MySQLDialect"/
property name="hibernate.hbm2ddl.auto" value="create-drop"/
/properties


Everything gets packed into an ejb3 archive and deployed into the container.  
My log indicates that the insertion from import.sql is occurring, but the 
resulting tables are empty.  Note that I can cut and paste the import command 
into the mysql command client to load the data.

Any help is greatly appreciated.

Cheers,
Cameron.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904719


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: JCA and Legacy Systems

2005-11-01 Thread and11
Hello Jason.
Just wonder how did you solve your problem ?
I have the same question currently and trying to find out if JCA  will be
suitable thing for EPP connection management.

Regards,
Andrew


"cristo1701" wrote : Howdy,
  | 
  | Would using JCA work for accessing an external EIS. For example, lets say 
you are registrar (godaddy) that must communicate with a registry (verisign) 
using their predefined protocol (EPP).  Is it possible to use JCA and create a 
connection adapter that can use their predefined protocol to communicate with 
the registry? Am I totally going the wrong direction on this?
  | 
  | Thanks,
  | 
  | Jason
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904717


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Extending DatabaseServerLoginModule

2005-11-01 Thread ankiewsky
I changed my web.xml portion to DIGEST as the following code:



action
Aplicacao
*.do
HEAD
GET
POST
PUT
DELETE


GERENTE 


no description
NONE



DIGEST
Q2 Realm



And I changed my login-config to:


   
  
 java:/CorporativoDS
 

.



I wanna do this, but I wanna hide the password from any malicious access. So I 
am using MD5 hashing... I could to use LDAP, but my customer wants to use 
it I think it too simple, and an appropriate scenario to override login 
method in DatabaseServerLoginModule class. Am I wrong???

Thanks

Edgar 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904713


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - From Tomcat to JBoss

2005-11-01 Thread EricChile
I am trying to figure out if JBoss will work for me as a servlet container that 
is expandable to a J2EE server.

All my applications currently run on Tomcat 4.1.30.

When I place a war file in the deployment directory, it appears to create a 
directory for it in the tmp area but doen't contain any data in the war file.

If I just copy the directory over containing the root and then my jspfiles and 
web-inf folder, I just get a bunch of zip errors?

Am I don't something wrong?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904699


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Syntax for @NamedQuery using EJB3

2005-11-01 Thread oglueck
like so:

  | @NamedQueries({
  | @NamedQuery(name="night.lessRecentThan", queryString="select n from 
Night n where n.date <= :date"),
  | @NamedQuery(name="night.moreRecentThan", queryString="select n from 
Night n where n.date >= :date") 
  | })
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904690


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - jta transaction doesnt rollback hibernate update in case of

2005-11-01 Thread sh_sadrai
I am using hibernate3, EJB3.0 in jboss-4.0.3SP1. I want jta does all 
transaction. But, if my ejb cause an exception my hibernate update doesnt 
rollback.
I dont have any transaction control in my hibernate. and I get  the session 
from session = getSessionFactory().getCurrentSession();
and I dont close session.

Here is my jboss-service.xml:
-


jboss.jca:service=RARDeployer
jboss.jca:service=LocalTxCM,name=MySqlDS
java:/MySqlDS 
org.hibernate.dialect.MySQLDialect 
java:/hibernate/HibernateFactory
true
org.hibernate.cache.EhCacheProvider 
false
org.hibernate.transaction.JTATransactionFactory
org.hibernate.transaction.JBossTransactionManagerLookup
true
true
java:/UserTransaction

mappings/Users.hbm.xml,
mappings/UserTable.hbm.xml,
mappings/ZoneStates.hbm.xml  
...
 

 

And my stateless session bean is like this:

@Stateless
@Local(AdminInt.class)
public class AdminBean implements AdminInt{
...
-
and the method of ejb is like this:

@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public boolean editBedType(BedType bedtype){
BedTypeDAO dao = new BedTypeDAO();
 try {
dao.update(bedtype);
int i=100/0;//here I cause an exception. but the update doesnt 
rollback
   } catch (Exception e) {
e.printStackTrace();
}
...


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904687


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Unable to locate a login configuration

2005-11-01 Thread auferkorte
Got the server running without error message.

when I now start the client program, I get the following error:

java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.(ConfigFile.java:97)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.security.auth.login.Configuration$3.run(Configuration.java:216)
at java.security.AccessController.doPrivileged(Native Method)
at 
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
at javax.security.auth.login.LoginContext.(LoginContext.java:403)


My client program is very simple (implemented after 'Mastering EJB'), the 
contect creation fails:

public static void main(String[] args) {
try {
Properties props = 
System.getProperties();
  Context initial = new InitialContext(props);
  System.out.println("[DEBUG] Initial context created!");
Object objref = 
initial.lookup("ConverterHome");
System.out.println("[DEBUG] Look up of 
Home object successful!");
  ConverterHome home =
  (ConverterHome) PortableRemoteObject.narrow(objref,
  ConverterHome.class);
...

What do I need to do?

Thanks & regards

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904691


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: JBoss 4.0.3 message: No transaction manager lookup class

2005-11-01 Thread kbisla
i mean is there a way to lookup a transaction manager. Is the Jboss transaction 
manager available through jndi?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904688


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JCIFS authentication

2005-11-01 Thread [EMAIL PROTECTED]
the best way to implement it is to provide the UserModule and RoleModule 
implementations that provides the current portal user and role services.

if you look at those interfaces, take the most up to date versions that are in 
2.2, good work !!!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904697


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - JCIFS authentication

2005-11-01 Thread curdaddy
Is there a plan to add the agility to do auto-login for windows clients using 
JCIFS?

Is there a best practice way to implement this functionality?

thanks,
MJC

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904692


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Stopping message re-delivery in JBoss-3.2.3

2005-11-01 Thread genman

You can check if a message is redelivered in your MDB and simply drop it 
(positivite ACK it).

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904685


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated caches with each node having its own store

2005-11-01 Thread jiwils
Is your cache loader setup to be shared or unshared?  This sounds like shared 
cache loader behavior, which based on your post, you do not want.

Example the following attribute in your cache configuration file:

true

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904673


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: shutdown.bat throws exception when jboss is ssl

2005-11-01 Thread mdessure
Can someone please help me out with this.
Thanks,

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904680


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - BMT, EJBException and redelivery

2005-11-01 Thread Joster
Hi,

We are using jboss 4.0.2 and it seems that there is no redelivery with a BMT 
Message driven bean when throwing a EJBException.

I would like to know if we have a configuration issue or if it's the correct 
Jboss behaviour.

Our concern is that according to the J2EE specifications, there should be a 
redelivery. Are we wrong?

Cheers,
J.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904678


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - A real newbie having a real hard fight (initial configuratio

2005-11-01 Thread auferkorte
Hi there,

I just started working in the J2EE area (want to get an better understanding of 
it).
Want to run my first own ejb (using the converter example out of the sun 
tutorial) to get it run on JBoss, trying now for several days without success.

Started with the maximal configuration, failed because of some security 
settings, could not find anything to switch it off, anyhow had many many errors 
while booting the server, so I decided to narrow the problem from the other 
side, starting with a minimal configuration adding components

OK, now I learned that the minimal configuration does not contain the EJB stuff 
so I wanted to add it, but could not find any information what I need to add to 
add a certain service (here EJB).

I will now do it with reinstallation, but I think there must be another 
solution!

So the question:

Where can I find information what I need to do to add certain services to the 
configuration (e.g. ejb support)?

Thanks & regards


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904667


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - log4j.jar is missing

2005-11-01 Thread jnbossy
I installed the version 4.0.3 SP1 on Windows XP.
I didn't change any configuration files.
I get the following message:
2005-10-29 18:03:35,090 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
  | org.jboss.deployment.DeploymentException: url 
file:/I:/jboss4.0.3/server/default/deploy/ejb3.deployer/log4j.jar could not be 
opened, does it exist?
  | at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:191)
  |   .
  |   .
  |   .

What should I do to avoid this message ? 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904659


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Load-Balancing SLSB

2005-11-01 Thread [EMAIL PROTECTED]
http://jira.jboss.com/jira/browse/JBAS-1442


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904656


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Load-Balancing SLSB

2005-11-01 Thread craigduncan
Scott,

Thanks for the response.  I looked at the comments for JBAS-1442 but I am still 
a little confused.  I am using jboss4.0.2.  The comments by Adrian Brock on 22 
Feb 05 seem to indicate that this problem was fixed, but I am still seeing the 
incorrect behavior.  To get the correct behavior do I need to use one of the 
workarounds?

BTW, we have a support account with JBoss and when I asked this question there 
the response was that the only fix would be to disable the jboss otpimization 
altogether with the caveat that it could degrade performance.

Craig


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904671


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: A real newbie having a real hard fight (initial configur

2005-11-01 Thread darranl
Just do what everyone else does and start with the default configuration, this 
should contain everything you need.

Once you are more experienced at using JBoss then you can start reconfiguring 
the different configurations.

If you are having problems with the default configuration post your errors here 
and hopefully someone will be able to see what is wrong.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904670


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Bus errors and seg faults on startup

2005-11-01 Thread beamer908
Hey, I've been using jboss-3.2.7 for months now on Java 1.5 on Mac OS X 10.4.2. 
Recently, I've been having a problem where I will start the app server and will 
get the following message:

./run.sh: line 182:   904 Bus error   "$JAVA" $JAVA_OPTS 
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" 
org.jboss.Main "$@"

some times during the boot sequence. I have 4GB of memory so I don't believe it 
to be a lack of memory for the VM. Anyone seen something like this before on 
the Mac? Sometimes that bus error will be a segmentation fault instead. Line 
182 of the run.sh file is exactly where the VM gets invoked.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904668


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - UserTransaction timeout default

2005-11-01 Thread jonmoores

In JBOSS 3.2.2 is there a difference between the TransactionManager timeout 
value (300 secs) and the timeout a UserTransaction will use?

I have a UserTransaction outside of the AS that seems to timeout at 2 minutes .

Client side Log:

  | 2005-11-01 13:14:13,269 DEBUG - CaptureProcess  CaptureProcess.java  :: 
Begun transaction [EMAIL PROTECTED] Status: 0
  | 2005-11-01 13:16:19,902 ERROR - CaptureProcess  CaptureProcess.java  :: 
METHOD='processDocument' Strategic error while transferring the document 
[AT1D053056] [AT1D053056]

JBOSS log:

  | 13:16:14,694 WARN  [TransactionImpl] Transaction TransactionImpl:XidImpl 
[FormatId=257, GlobalId=mifts01.nl.eu.abnamro.com//10176805, BranchQual=] timed 
out. status=STATUS_ACTIVE
  | 

If so where can I reconfigure it? 
And would the UserTransaction.setTimout(int i) method override this?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904651


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Can JBOSS Portal work with PHP

2005-11-01 Thread [EMAIL PROTECTED]
I hink WS is the best integration technology you can leverage here.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904649


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Problem with JBoss 4.0.3

2005-11-01 Thread erik777
I get the just of what it's doing, but I don't understand why I can't 
call-by-value.  

I have only been able to successfully get call-by-value to work inside the same 
JBoss instance when one isolated app calls another isolated app.  I have yet to 
be able to get an unisolated app to be able to make a call by value to another 
unisolated app in the same JVM, or for an unisolated app to call an isolated 
app.  Because of the latter use case, I have a lot of unisolated apps because 
they need to call apps that need to call apps that ultimately can't be isolated 
either because they are using a hiberante 2 sar or because they contain an MDB 
which seems to have a bug preventing isolation.

In the most recent case, I'm trying to resolve a class cast exception on the 
home interface (see 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=71799).  So, I set 
true for the NamingService in 
jboss-service.xml.  That causes the invalid invocation exception.  If i'm 
asking it to use call by value for all naming lookups, then why is it throwing 
an exception caused by an attempt to pass by reference between two class 
loaders?

I read somewhere that even if you provide a URL, JBoss detects that it is an 
intra-JBoss instance call, and converts it to a call by reference.  Is there a 
way to disable this behavior?  It would be nice to be able to control when it 
passes by reference and when it passes by value, and the URL is the most 
convenient way I can think of to do this.  If you don't provide a URL, then 
clearly you want to pass by reference, or at least invoke locally.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904666


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Can JBOSS Portal work with PHP

2005-11-01 Thread [EMAIL PROTECTED]
what means cooperating for you ? method call ?

because soap is a method call (even it it is remote)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904664


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - separated jboss and tomcat

2005-11-01 Thread @ntonio
Hello everybody!

My situation:
I use two servers for my application: 
Jboss3.0.1 for EJB tier and tomcat-4.1.24 server as servlet container.

Servers have been established by different computers.
I have a firewall between computers, and jnp port (1099) is opened.
But befor my application is started i must:
 start jboss, listen tomcat machine ports from jboss, and open detected port. 
The port is deferent for any times for jboss start.

Maybe this problem will be solved by upgrating JBOSS to upper version or i must 
define some settings?

Thanks for any reply!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904663


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Can JBOSS Portal work with PHP

2005-11-01 Thread leewill
Oh... Thanks. Do it mean JBoss portal can only cooperate with Java applications?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904662


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: MBeans and Classloading

2005-11-01 Thread [EMAIL PROTECTED]
In general, yes your assumption is wrong. See:

http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904660


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Newbie Question

2005-11-01 Thread lwshannon
Never mind. The archive my company had me install had all the default files 
removed. I just deployed our project and everything is fine.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904639


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Load-Balancing SLSB

2005-11-01 Thread craigduncan
I think I am having a similar problem to you.  I have servlet that looks up the 
SLSB on HA-JNDI.  The behaviour I see is that the only SLSB that gets called is 
the one living on the same JBoss instance as the servlet.

My guess is that the reason for this is the optimization that JBoss does when 
calling EJB's in the same JVM.  Even though you attempt to do a remote call it 
sees that there is an EJB in the local environment and calls that one instead.

In my case, if I want load balancing of my SLSB I need to front my jboss 
cluster with a HTTP load balancer.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904654


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Cannot access EJB from war inside container

2005-11-01 Thread erik777
We have an instance where an independently deployed unisolated war cannot 
access the EJBs in an unisolated ear.  They are both in the same JBoss 4.0.2 
instance.  

Applications running in their own JVMs have no problem accessing the EJBs 
remotely.  The problem appears to be related to the use of the UCL, and perhaps 
Tomcat's classloading behavior.

The first exception it throws is a class cast exception when trying to cast the 
home interface.  The second time it tries, it throws 

2005-11-01 09:39:31,651 ERROR [com.nwms.emrweb.services.JNDIClientUtil] 
lookupHome(..)-NamingException: Could not create initial context for 
environment null
  | javax.naming.NoInitialContextException: Cannot instantiate class: 
org.jnp.interfaces.NamingContextFactory [Root exception is 
java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory]
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  | at javax.naming.InitialContext.init(InitialContext.java:223)
  | at javax.naming.InitialContext.(InitialContext.java:197)
  | at 
com.nwms.emrweb.services.JNDIClientUtil.lookupHome(JNDIClientUtil.java:33)
  | at 
com.nwms.emrweb.services.business.ejb.share.ProviderServiceUtil.getHome(ProviderServiceUtil.java:32)
  | at 
com.nwms.emrweb.services.business.ejb.share.ProviderServiceUtil.getHome(ProviderServiceUtil.java:37)
  | at 
com.nwms.emrweb.services.client.BusinessService.getProviderServiceHome(BusinessService.java:112)
  | at 
com.nwms.emrweb.services.client.BusinessService.getProviderService(BusinessService.java:124)
  | at 
com.nwms.emrweb.services.client.BusinessService.logout(BusinessService.java:333)
  | at com.nwms.emr.context.CPRContext.deactivateUser(CPRContext.java:316)
  | at com.nwms.emr.context.CPRContext.destroy(CPRContext.java:550)
  | at com.nwms.emr.context.CPRContext.finalize(CPRContext.java:582)
  | at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
  | at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
  | at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
  | at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
  | Caused by: java.lang.ClassNotFoundException: 
org/jnp/interfaces/NamingContextFactory
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:242)
  | at 
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
  | ... 16 more

I've never had to add jnp-client within a client app deployed in JBoss before, 
but for kicks, when I try it, it throws a socket timeout exception.  

I'm debugging in IntelliJ, and can breakpoint the app code when these 
exceptions are thrown, but have not been able to gleen any useful information, 
such as the host/port being accessed when the socket exception is thrown.

There are only two instances of the remote home interface being deployed, one 
in the ear and another in a client jar in the war.  The classes are exactly the 
same.  It's compiled once and packaged into the EJB jar and the client jar.  
Opening the archives in WinRAR reveals that they have the same CRC and 
timestamp.

Using name=Default,service=LoaderRepository from jmx-console reveals that the 
UCL is loading the class from the ear.  It does not list the instance from the 
war, and I suspect this is because it is being loaded by Tomcat.

This is a very critical bug.  Please help if you can.  I've spent two days on 
it so far and have run out of configuration permutations to try, including with 
and without the JBAS-1875 patch, with and without JAAS, etc,...  Right now I'm 
trying to get it to work with the most common configuration.  

Thanks a bunch in advance!



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904633


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: mod_jk with Jboss/Tomcat problem!!!!

2005-11-01 Thread java123
I done that. It seems like it does find the mapping :
  [Tue Nov 01 09:27:10 2005][0924:] [debug] 
  jk_uri_worker_map.c (475): Found a wildchar match loadbalancer -> /*

But never loads the worker.

Here is my configuration:

workers.properties:

worker.list=loadbalancer
worker.dev.port=10009
worker.dev.host=nycpxsv011
worker.dev.type=ajp13
worker.dev.lbfactor=1

worker.dev2.port=10009
worker.dev2.host=nycpasv001
worker.dev2.type=ajp13
worker.dev2.lbfactor=1




worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=dev,dev2




http.conf:

 # Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module /u1/mcevikce/dev/bin/mod-jk1.2.14.so

# Where to find workers.properties
JkWorkersFile /u1/dev/bin/workers.properties

# Where to put jk logs
JkLogFile /u1/temp/log/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel debug 

# Select the log format
JkLogStampFormat  "[%a %b %d %H:%M:%S %Y]"

# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"

# Mount your applications

JKMount /* loadbalancer
Jkmount /viewserver/* loadbalancer

here is the log:

[Tue Nov 01 09:27:10 2005][0924:] [debug] mod_jk.c (1828): Service finished 
with status=304 for worker=loadbalancer
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/jboss.css' from 2 maps
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/viewserver/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (475): Found 
a wildchar match loadbalancer -> /*
[Tue Nov 01 09:27:10 2005][0925:] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/logo.gif' from 2 maps
[Tue Nov 01 09:27:10 2005][0925:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/viewserver/*'
[Tue Nov 01 09:27:10 2005][0925:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/*'
[Tue Nov 01 09:27:10 2005][0925:] [debug] jk_uri_worker_map.c (475): Found 
a wildchar match loadbalancer -> /*
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/MAIN/jboss.css' from 2 maps
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/viewserver/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (475): Found 
a wildchar match loadbalancer -> /*
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/error/NotFound.html' from 2 maps
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/viewserver/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (475): Found 
a wildchar match loadbalancer -> /*
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/NotFound.html' from 2 maps
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/viewserver/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (475): Found 
a wildchar match loadbalancer -> /*
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/MAIN/error/NotFound.html' from 2 maps
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/viewserver/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/*'
[Tue Nov 01 09:27:10 2005][0924:] [debug] jk_uri_worker_map.c (475): Found 
a wildchar match loadbalancer -> /*
[Tue Nov 01 09:27:10 2005][0926:] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/jboss.css' from 2 maps
[Tue Nov 01 09:27:10 2005][0926:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/viewserver/*'
[Tue Nov 01 09:27:10 2005][0926:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/*'
[Tue Nov 01 09:27:10 2005][0926:] [debug] jk_uri_worker_map.c (475): Found 
a wildchar match loadbalancer -> /*
[Tue Nov 01 09:27:11 2005][0926:] [debug] jk_uri_worker_map.c (449): 
Attempting to map URI '/MAIN/jboss.css' from 2 maps
[Tue Nov 01 09:27:11 2005][0926:] [debug] jk_uri_worker_map.c (461): 
Attempting to map context URI '/viewserver/*'
[Tue Nov 01 09:27:11 2005][0926:] [debug] jk_uri_worker_map.c (461): 
Attempting to 

[JBoss-user] [Beginners Corner] - cmp store data only temp.. ?

2005-11-01 Thread boost
Hi, i have a cmp who stores the data in some kind of tempt database, because it 
sure as hell doesn't store it in the database(postgres) where it's suposed to. 
I am able to lookup data that i have stored earlier, but those data do not come 
from the database.  Is it some kind of setting that makes jboss store the data 
only temp and not in the database? No exceptions is thrown..

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904623


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re:

2005-11-01 Thread andreing
I have the same problem did you find any solution ?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904621


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Relationship (post-table-create)

2005-11-01 Thread dboeckli
i think this is a JBoss bug -> http://jira.jboss.com/jira/browse/JBAS-963

bug was mentioned first Thu Jun 20, 2002 00:00 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837631#3837631
now we have Nov 1, 2005

other occurence of this bug in the forum:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=55125
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=50407
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=52874




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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904619


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Stop / starting web application does not work in clustered e

2005-11-01 Thread furbern
I am not sure if this problem should be posted on this or the cluster forum...

I have successfully used twiddle to start / stop web applications using the 
default server configuration. If I try this with the "all" configuration then I 
can successfully stop the application but get JBossCacheManager error when 
trying to start the application.

This happens on a bespoke application that is marked as distributable in th 
web.xml. 

It successfully stops and starts jmx-console application which is not marked as 
distributable in the web.xml.

I originally posted this problem in the Tomcat forum.

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=71016

Any help would be appreciated.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904612


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Stopping / Starting Tomcat web applications

2005-11-01 Thread furbern
Brian,
Thanks a lot for your further investigation. I take it you have seen my related 
posting on the Jboss Cache forum.

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=71792


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904617


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Stopping / Starting Tomcat web applications

2005-11-01 Thread [EMAIL PROTECTED]
I'll have to look into this.  Seems odd that the JBossCacheManager can't find 
an MBean that twiddle can.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904614


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Relationship (post-table-create)

2005-11-01 Thread dboeckli
in fact i can even write some garbage in the  tag of the 
relationship definition, jboss doesn't care about. it is ignored and the 
 of the first bean is taken. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904611


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Where does the CMP bean store data?

2005-11-01 Thread boost
Hi. I am using jboss 4.0.2 with netbeans and postgresql. I create a simple 
database table in postgresql and create the cmp bean in netbeans. The cmp bean 
automatically creates the correct finder and set methods. I manage to insert 
new entries in the table and retrieve them. Problem is, where do they go? they 
are not in my postgresql table.

please help..

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904609


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - MBeans and Classloading

2005-11-01 Thread tolukemi
I'm encountering a problem when trying to invoke a method on an EJB via an 
MBean deployed in a webapp.
The MBeans are instantiated and registered with MBeanServerImpl using the 
registerMBean(Object, ObjectName) method.
I've noticed that classes being used by EJB appear to be loaded within the 
context of the webapp's classloader and this leads to problems as wrong 
versions of classes are being used. I would have felt that once the MBean has 
invoked the EJB classes would be loaded within the context of the EJB's 
classloader. Is my assumption wrong?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904605


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - can not load class

2005-11-01 Thread Smilidon
Hi,

I dont know where i should post it, i dont think it is a beginner question. 

I have a servlet where i call some classes from a jar that is stored in 
jboss/server/lib. This jar contains also a class that loads another class with 
Thread.currentThread().getContextClassLoader().loadClass("MyClass"). This 
always fails and i get the exception:

11:28:12,379 ERROR [[GenerateReport]] Servlet.service() for servlet 
GenerateReport threw exception
java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JRChartCustomizer
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:727)
at java.lang.ClassLoader.loadClass(ClassLoader.java:284)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)

I tried to put the class in the webapp directory, in the classpath, and many 
more! Why this class is never found? im really frustrated...

Thanks

Smilidon

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904600


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Where to store uploaded files

2005-11-01 Thread Enfire
Hi, I have an J2EE application deployed to jBoss server as .ear file. I need to 
upload to it some files. Where can I store them under jBoss? Thanx.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904599


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Having a problem in starting any application server

2005-11-01 Thread natoskiii
Hi,
I have just installed JBOSS and each time I run the run.bat it starts 
successfully but when i type http:\\localhost:8080 in the browser it asks for a 
username and password typing XDB at the top of this message window.
This is not related to JBOSS only cause I used to use tomcat before and it was 
working normally, but right now the same thing is happening when i try to 
connect to my localhost using the tomcat server
can anyone help me with that

by the way i have just installed the oracle database, does this have anything 
to do with this problem?

thanks in advance

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904593


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: Configuring XSL on JBoss4

2005-11-01 Thread samfra
what do you mean with "xsl support" ?
add your jar and do your xsl transformation.. it works fine !

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904590


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Exception in the starting stage

2005-11-01 Thread frannack
Hello,

I just installed the newest release 4.0.3SP1 on my FC4 x86_64 using jdk1.5.0_05 
and selecting ejb3 in the installation process.

when I launch sh run.sh, I get this error message:

10:32:45,373 ERROR [SocketServerInvoker] Error starting ServerSocket.  Bind 
port: 3873, bind address: /x.x.x.x
10:32:45,373 ERROR [Connector] Error starting connector.
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)

Can someone help?

MTIA

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904592


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Messages redelivered even if acked

2005-11-01 Thread anre42
Thanks for the reply, I now understand more about the different ack-modes. 
However, my problem still remains. In order to get more to get more control of 
all commits and rollbacks I tried BMT instead, with the following code structure


  | public void onMessage(Message m) {
  |   log.debug("Start onMessage()");
  |   try {
  | log.debug("Starting transaction");
  | context.getUserTransaction().begin();
  |   } catch (Exception e) { log.error("Failed to start transaction"); }
  |   try {
  |  // do something that might fail
  |   } catch (HandledException he) {
  | log.info("Caught HandledExcption, rolling back transaction")
  | try {
  |   context.getUserTransaction().rollback();
  | } catch (Exception e) { 
  |   log.error("Failed to rollback transasction " + e.toString()); 
  | }
  | return;
  |   } catch (IgnoredException ie) {
  | log.error("Caught IgnoredException, ignoring");
  |   }
  |   log.debug("Commiting transaction");
  |   try {
  | context.getUserTransaction().commit();
  |   } catch (Exception e) { 
  | log.error("Failed to commit transasction: " + e.toString()); 
  |   }
  |   log.debug("End onMessage()");
  | }
  | 

And again, in the normal case, i.e. no exception is thrown it works ok and the 
transaction is commited. But if I provoke a IgnoreException the out put would 
be the following:


  | DEBUG  Start onMessage()
  | DEBUG  Starting transaction
  | ERROR  Caught IgnoredException, ignoring
  | DEBUG  Commiting transaction
  | ERROR  Failed to commit transaction: javax.transaction.RollbackException: 
Already marked for rollback
  | 
  | 
  | Why would the transaction already be marked for rollback in this case? I'm 
thinking there might be some transaction timeout? In my case it's a quite long 
transaction, +1 min. 
  | 
  | Does anyone have any idea on what might be going on here? 
  | 
  | Tnx
  | 
  | /Andreas

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904591


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user