[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Can custom APIs be bound in the RMI Registry started by

2008-04-27 Thread venkatramanan1
In the same forum 
(http://www.jboss.com/index.html?module=bb&op=viewtopic&t=133006) Ron has 
pointed that some other process was occupying the port. "Ron" wrote : The 
message you're seeing suggests that something other than an RMI registry is 
listening on port 1099. Or, alternatively, you could have a mismatched 
RMIClientSocketFactory / RMIServerSocketFactory pair.
I checked with my setup and am confident that no other process is using the 
1099 port. The only application being deployed is WebNMS 
(http://www.adventnet.com/products/webnms/index.html) & that doesn't occupy 
1099 port

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Can custom APIs be bound in the RMI Registry started by JBos

2008-04-27 Thread venkatramanan1
Team

This is Venkatramanan, a developer from AdventNet WebNMS 
(http://www.adventnet.com/products/webnms/index.html).
When we used JBoss 5Beta 4 to deploy, we found the below issue.

We started the default JBoss & ensured that RMI registry was running (Port 1099 
& 1098 was listening). But when we tried to bind our APIs using Naming.Bind , 
it threw the following exception:
FileServer: non-JRMP server at remote endpoint
  | java.rmi.ConnectIOException: non-JRMP server at remote endpoint
  | at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)
  | at 
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
  | at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
  | at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
  | at java.rmi.Naming.rebind(Naming.java:160)
  | at FileServer.main(FileServer.java:11)
Code we used is a simple one & a sample implementation from SUN's RMI code - 
http://java.sun.com/developer/technicalArticles/RMI/rmi_corba - File transfer 
using RMI
FileInterface fi = new FileImpl("FileServer");
  | Naming.bind("//127.0.0.1/FileServer", fi);
Even variations "like /FileServer" or "localhost/FileServer" did 
not work.
When we searched with the stack trace, we found from an 
http://mail-archive.objectweb.org/proactive/2005-01/msg9.html that:

"Romain" wrote : You can have a look at 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=27490 or go to JBOSS 
web site at search in the forums for rmi registry.
  | Unless I misunderstood everything, you cannot use JBOSS as RMI Registry(i.e 
by just starting the server). Of course I am pretty sure that it is possible to 
start it in a separate process: in a Servlet for instance, or maybe to start it 
as a service, but for sure with the default configuration, when starting the 
server, there is no RMI Registry running by default
But I found that in JMXConnectorServerService.java, 
LocateRegistry.createRegistry is called. (But I doubt whether this source is 
called at all)
He has also referred a JBoss Forum 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=27490
Now can we understood this as "The registry started with JBoss cannot be used 
for binding Custom APIs. Atleast does it means that we have to do some more 
special configuration or source change to bind custom APIs in JBoss' RMI 
registry?"

Kindly clarify

Thanks & regards
Venkatramanan
P.S. Mistakenly posted it on 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=133006 & now posting 
it here as per Ron's request.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: running EJB pplication in jboss giving NoClassDefFoundEr

2008-04-27 Thread Shiveeta
thanks a lot for this clue.
That exception got resolved after setting jbossall-client.jar n ant's 
build.xml. 

Now facing another error :- 
[java] javax.naming.NameNotFoundException: interest not bound

any help again??
Thanks in advance..

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

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


[jboss-user] [EJB 3.0] - Re: serialVersionUID mismatch using remote client and jboss-

2008-04-27 Thread jwenting
that's one option.
Far more convenient is to just use jbossall-client.jar which contains 
everything you need in one handy little (in comparison) package.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: running EJB pplication in jboss giving NoClassDefFoundEr

2008-04-27 Thread Shiveeta
the exception is being thrown by :-
Object ref  = jndiContext.lookup("interest/Interest");

in the client code.

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

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


[jboss-user] [JBoss Tools (users)] - Re: RichFaces 3.2 - Manual installation

2008-04-27 Thread OChikvina
Hi,

find out it here 
http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html_single/index.html#Installation

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

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


[jboss-user] [JBoss Messaging] - ConnectionNotifier: java.lang.NullPointerException

2008-04-27 Thread slogger
"timfox" wrote : The stack trace shows this is in jboss remoting. Have you 
tried asking in the jboss remoting forum?

Hello Tom! 
No, I hadn't. Do you thing that I must to post this problem to remoting forum?

Really, I have thought that Jboss Messaging is using Remoting API, you have 
possibility to help me.

Thanks my English.

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

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


[jboss-user] [JBossWS] - Re: Cannot expose EJB 3 as WS

2008-04-27 Thread [EMAIL PROTECTED]
Strange, it works for me.

Here's my EJB3 archive content:

  | jar -tvf jaxws.jar 
  |  0 Mon Apr 28 08:17:42 CEST 2008 META-INF/
  |106 Mon Apr 28 08:17:40 CEST 2008 META-INF/MANIFEST.MF
  |  0 Mon Apr 28 08:20:04 CEST 2008 org/
  |  0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/
  |  0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/
  |  0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/
  |290 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/Hello.class
  |834 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/HelloBean.class

Here's my server console output:

  | 08:22:02,562 INFO  [JmxKernelAbstraction] creating wrapper delegate for: 
org.jboss.ejb3.stateless.StatelessContainer
  | 08:22:02,577 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:jar=jaxws.jar,name=HelloBean,service=EJB3 with dependencies:
  | 08:22:02,854 INFO  [EJBContainer] STARTED EJB: org.jboss.ws.hello.HelloBean 
ejbName: HelloBean
  | 08:22:02,982 INFO  [EJB3Deployer] Deployed: 
file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/deploy/jaxws.jar
  | 08:22:03,161 INFO  [DefaultEndpointRegistry] register: 
jboss.ws:context=jaxws,endpoint=HelloBean
  | 08:22:06,156 INFO  [WSDLFilePublisher] WSDL published to: 
file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/data/wsdl/jaxws.jar/HelloBeanService9073.wsdl
  | 08:22:06,504 INFO  [TomcatDeployer] deploy, ctxPath=/jaxws, 
warUrl=.../tmp/deploy/jaxws.jar9072.war/

and I'm able to access WSDL here:

http://127.0.0.1:8080/jaxws/HelloBean?wsdl


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

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


[jboss-user] [JNDI/Naming/Network] - Re: UnknownHostException after successful connection to port

2008-04-27 Thread kahzoo
anonymous wrote : The ejb3 connector component of JBoss seems to have a bug of 
ignoring the '-b 0.0.0.0' option. Instead of '0.0.0.0', it tries to choose one 
(maybe the primary one?) from the IP addresses bound to the machine's network 
interfaces. And if it cannot find any valid IP address, it uses 127.0.0.1 (and 
its default port 3873).
  | 

Just FYI, I found this in JIRA.

http://jira.jboss.org/jira/browse/EJBTHREE-1191

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: Creating New Connection Factory

2008-04-27 Thread kahzoo
anonymous wrote : Can one tell me where i can define new connection factory in 
JBOSS 4.2.2 GA and how. 

This depends on where your client code runs. If it runs in the same JVM as the 
JBoss server, you need to modiy

deploy/jms/jvm-il-service.xml

Otherwise (when your client runs remotely from the JBoss server),

deploy/jms/uil2-service.xml

Either way, if all you want to do is to change the name of the connection 
factory. you simply change the value of '(XA)ConnectionFactoryJNDIRef' 
attributes.

If you want to add a new name to an existing connecion factory, you may want to 
use NamingAlias bean. You can find an example of this in 
deploy/jms/uil2-service.xml as below.

   
  |   UILConnectionFactory
  |   ConnectionFactory
  |   jboss:service=Naming
  |
  | 
  | 

Hope this helps.


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

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


[jboss-user] [JBoss Portal] - Re: Jboss Portal Search

2008-04-27 Thread vpire
Search all the files in the portal and files uploaded.

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

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


[jboss-user] [Beginners Corner] - Re: Config Value ${jboss.bind.address}. Where is it set?

2008-04-27 Thread schmicky
and how do you do that?

i`m really new with jbos... i need it to run compiere

thanks

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

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


[jboss-user] [EJB 3.0] - Re: Hypersonic data are all erased after jboss is restarted

2008-04-27 Thread peiguo
Thank you very much and your response is really quick! I changed it to 
"update", and it worked.

Thanks again!

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - NoClassDefFound error

2008-04-27 Thread leeprior
Hi all. I keep getting a bizarre NoClassDefFound error when trying to deploy a 
war (Adobe LivecycleDataServices to be exact) which contains a class 
referencing an Entity bean in a separate EAR, under the same JBoss instance. 
The offending bean sits in a package containing many other entities which can 
be referenced fine.

I've been through the faq checklist available here: 
http://wiki.jboss.org/wiki/en/GetClassNotFoundExceptionOrNoClassDefFoundError?action=e&windowstate=normal&mode=view
 but still cannot work out what the problem is.

Any other advice would be greatly appreciated.
Thanks in advance - Lee.

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

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


[jboss-user] [EJB 3.0] - Re: Hypersonic data are all erased after jboss is restarted

2008-04-27 Thread ALRubinger
"peiguo" wrote : 

Look up the property "hbm2ddl.auto" :)

S,
ALR

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

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


[jboss-user] [EJB 3.0] - Hypersonic data are all erased after jboss is restarted

2008-04-27 Thread peiguo
The following code does persist data (orders and order lines) to database, and 
I did see that. The problem is that the data were all erased once jboss is 
restarted. How can I change that?

I have a persistencein META-INF directory: 

  | http://java.sun.com/xml/ns/persistence";
  |xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
  |version="1.0">
  |
  |   java:/DefaultDS
  |   
  |  
  |  
  |   
  |
  | 
  |  

in my stateful bean I have this code, and checkout was called from outside: 
 
  | 
  | package org.jboss.tutorial.entity.bean;
  | 
  | import javax.ejb.Remote;
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | import javax.persistence.PersistenceContext;
  | 
  | 
  | @Stateful
  | @Remote(ShoppingCart.class)
  | public class ShoppingCartBean implements ShoppingCart, java.io.Serializable
  | {
  |@PersistenceContext(unitName="sample")
  |private EntityManager manager;
  |private Order order;
  | 
  |public void buy(String product, int quantity, double price)
  |{
  |   if (order == null) order = new Order();
  |   order.addPurchase(product, quantity, price);
  |}
  | 
  |public Order getOrder()
  |{
  |   return order;
  |}
  | 
  |@Remove
  |public void checkout()
  |{
  |   manager.persist(order);
  |}
  | }
  |  


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

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


[jboss-user] [EJB 3.0] - Why is Remote Interface not installed

2008-04-27 Thread baumar
Hi,

I created a remote interface:

  | @Remote
  | public interface PersonHandlerRemote {
  | 
  | public abstract void addPerson(Person person);
  | public abstract void printAllPerson(String message);
  | public abstract void deletePerson(Person person);
  | 

Then I created a stateful session bean using it:

...
  | @Stateful
  | 
@Remote(com.informationcontrol.forumorganizer.person.PersonHandlerRemote.class)
  | public class PersonHandlerBean implements PersonHandlerRemote {
  | @PersistenceUnit(unitName="gw03")
  | ...
  | 

and added a META-INF with persistence.xml 

...

java:DefaultDS 

...
(created with eclipse 3.2)

Then I export it through a jar to JBoss 404. I checked the jar in /deploy, it 
contains the session bean, the remote interface and META-INF/persistence.xml  
but the Remote Interface cannot be found through the lookup. I checked in the 
JMX-console, it is not there:


+- PersonHandlerBean (class: org.jnp.interfaces.NamingContext)
  |   +- remote (class: java.lang.Object)
  |   +- remoteStatefulProxyFactory (proxy: $Proxy82 implements interface 
org.jboss.ejb3.ProxyFactory)

Can anybody tell me what could be wrong?

Thanks

Markus 

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

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


[jboss-user] [Javassist user questions] - Re: How to get a method defined in the superclass

2008-04-27 Thread jmauricio
Problem solved.  I have  two method´s with  same name.
Thanks

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS & JBossMQ] - Creating New Connection Factory

2008-04-27 Thread nitinmandolkar
Hi All

The default connection factory name  in jbos is ConnectionFactoty, 
java:/ConnectionFactory, XAConnectionFactory and java:/XAConnectionFactory. 

So when ever i need to connect JBOSS JMS Server my client code need to look for 
above name in JNDI. Sample code below...

InitialContext iniCtx = new InitialContext();
Object tmp = iniCtx.lookup("java:/ConnectionFactory");
QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;

With above code block my example is working fine with out any problem.

Due to old code base i can not use default Connection factory name provided by 
JBOSS. I am intrest to give my name to connection factory. So in search of that 
i did some change in jms-ds.xml as below.

java:/MyConnectionFactory

java:/MyConnectionFactory

java:/MyConnectionFactory

  
-->
After doing this change in jms-ds.xml file i change the above code block like 
this. Now i am looking for  "MYConnectionFactory" rather than 
"ConnectionFactory".

InitialContext iniCtx = new InitialContext();
Object tmp = iniCtx.lookup("java:/MyConnectionFactory");
QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;

Doing this change i am excepting it shoud work. but i am getting following 
error. Can one tell me where i can define new connection factory in JBOSS 4.2.2 
GA and how. 

Exception i am getting :

run-example1p2p:
 [java] [INFO,SendRecvClient] Begin SendRecvClient, now=1209322015968
 [java] [INFO,SendRecvClient] Begin sendRecvAsync
 [java] Exception in thread "main" javax.naming.NameNotFoundException: MyCon
nectionFactory not bound
 [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)

 [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)

 [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
 [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
 [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:585)
 [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
a:294)
 [java] at sun.rmi.transport.Transport$1.run(Transport.java:153)
 [java] at java.security.AccessController.doPrivileged(Native Method)
 [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
 [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
t.java:466)
 [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
ransport.java:707)
 [java] at java.lang.Thread.run(Thread.java:595)
 [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(StreamRemoteCall.java:247)
 [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
ll.java:223)
 [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
 [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
 [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:66
7)
 [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62
7)
 [java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
 [java] at org.jboss.book.jms.ex1.SendRecvClient.setupPTP(SendRecvClient
.java:56)
 [java] at org.jboss.book.jms.ex1.SendRecvClient.sendRecvAsync(SendRecvC
lient.java:72)
 [java] at org.jboss.book.jms.ex1.SendRecvClient.main(SendRecvClient.jav
a:104)
 [java] Java Result: 1



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

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


[jboss-user] [Beginners Corner] - Jboss 4.0.5 seems to hang up if not accessed for a while

2008-04-27 Thread cjensen
I am a newbie. I am trying to deploy a Jboss application into production on a 
Linux server. It seems to be working OK on a Windows box. If we deploy the 
application, we can access it just fine. If it 'sits' for a while (an hour or 
so; sometimes longer, sometimes less), it seems to go into a comma.  By that, I 
mean when we try to access the home page, we get an error such as "The website 
address you entered could not be found".  When I do a netstat -d -p on the 
linux box, I can see that Jboss is listening on the http and https ports, but 
it is like it is not answering.  If I logon to the linux box and telnet to the 
the box on port 80, I get a 'connection refused', but then, the website can be 
accessed again. It is like the telnet wakes it up, or otherwise clears the 
problem.  Any suggestions would be appreciated.  Thanks.

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

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


[jboss-user] [EJB 3.0] - Re: failed to deploy entity when persistence.xml is there

2008-04-27 Thread peiguo
figured out, the persistence.xml was not put under META-INF in the jar file.

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

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


[jboss-user] [JBoss Portal] - Re: Injecting of required services into the portlet context

2008-04-27 Thread [EMAIL PROTECTED]
the "UserModule" attribute.

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

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


[jboss-user] [JBoss Portal] - Re: Jboss Portal Search

2008-04-27 Thread [EMAIL PROTECTED]
what do you want to search ?

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

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


[jboss-user] [JBoss Portal] - Re: configure jboss-portal.sar\portal-server.war to use JSF

2008-04-27 Thread [EMAIL PROTECTED]
no it is not possible, unless you create a theme that does not use a JSP but 
rather uses a portlet defined as a special region.

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

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


[jboss-user] [JBoss Messaging] - org.jboss.jms.message.JBossMessage produced null jmsMessageI

2008-04-27 Thread kadlecp
Hello,

I have checked out JBossMessaging_1_4_0_SP3_CP02 from SVN and I encounter 
following exception when processing a lot of messages.


  | 2008-04-24 13:43:49,168 ERROR 
[org.jboss.messaging.core.impl.ChannelSupport] Failed to handle message
  | java.lang.NullPointerException
  | at 
java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:846)
  | at 
org.jboss.messaging.core.impl.JDBCPersistenceManager.cacheID(JDBCPersistenceManager.java:1632)
  | at 
org.jboss.messaging.core.impl.JDBCPersistenceManager$1AddReferenceRunner.doTransaction(JDBCPersistenceManager.java:1358)
  | at 
org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.execute(JDBCSupport.java:474)
  | at 
org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.executeWithRetry(JDBCSupport.java:512)
  | at 
org.jboss.messaging.core.impl.JDBCPersistenceManager.addReference(JDBCPersistenceManager.java:1396)
  | at 
org.jboss.messaging.core.impl.ChannelSupport.handle(ChannelSupport.java:226)
  | at 
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.routeInternal(MessagingPostOffice.java:2208)
  | at 
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.route(MessagingPostOffice.java:494)
  | at 
org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:755)
  | at 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:391)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
  | at 
org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)
  | at sun.reflect.GeneratedMethodAccessor481.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
  | at 
org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)
  | at 
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:572)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
  | 2008-04-24 13:43:49,168 ERROR [org.jboss.messaging.util.ExceptionUtil] 
SessionEndpoint[991-j03c9fff-1-inpu7fff-x6f9dw-g10o4c5] send 
[bp5-gw2o9fff-1-inpu7fff-x6f9dw-g10o4c5]
  | javax.jms.JMSException: Failed to route 
Reference[19808869090865061]:RELIABLE to DataCollectorQueue
  | at 
org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:757)
  | at 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:391)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
  | at 
org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)
  | at sun.reflect.GeneratedMethodAccessor481.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
  | at 
org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)
  | at 
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:572)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166) 
  | 

I have looked at

[jboss-user] [JBoss jBPM] - Re: problem with jbpm3.2 and jboss SA 4.2.1GA

2008-04-27 Thread salaboy21
you have a strange problem.. 
You can scroll up your log.. to look for exceptions in the deployment?

send the server.log after you deployment...


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

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


[jboss-user] [EJB 3.0] - failed to deploy entity when persistence.xml is there

2008-04-27 Thread peiguo
I am trying out persistence and EJB 3, but I got this error when the jar is 
deployed:

  | 10:06:55,887 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: jboss.j2ee:jar=order.jar,name=ShoppingCartBean,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | persistence.units:unitName=sample
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:unitName=sample
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | jboss.j2ee:jar=order.jar,name=ShoppingCartBean,service=EJB3
  | 
I do have a persistencein META-INF directory:

  | http://java.sun.com/xml/ns/persistence";
  |xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
  |version="1.0">
  |
  |   java:/DefaultDS
  |   
  |  
  |  
  |   
  |
  | 
  | 
in my stateful bean I have this code:

  | package org.jboss.tutorial.entity.bean;
  | 
  | import javax.ejb.Remote;
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | import javax.persistence.PersistenceContext;
  | 
  | 
  | @Stateful
  | @Remote(ShoppingCart.class)
  | public class ShoppingCartBean implements ShoppingCart, java.io.Serializable
  | {
  |@PersistenceContext(unitName="sample")
  |private EntityManager manager;
  |private Order order;
  | 
  |public void buy(String product, int quantity, double price)
  |{
  |   if (order == null) order = new Order();
  |   order.addPurchase(product, quantity, price);
  |}
  | 
  |public Order getOrder()
  |{
  |   return order;
  |}
  | 
  |@Remove
  |public void checkout()
  |{
  |   manager.persist(order);
  |}
  | }
  | 

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

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


[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB

2008-04-27 Thread peiguo
Thank you very much and you are right, once ejb-jar.xml is removed things 
worked.

Thank you very much!

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

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


[jboss-user] [JBoss jBPM] - Re: problem with jbpm3.2 and jboss SA 4.2.1GA

2008-04-27 Thread nqtung
anonymous wrote : 
  | 1. I put jar packages (follow wiki)
  | 2. modified hirbernate.cfg.xml
  | 3. modified login-config.xml
  | 4. copy ojdbc14.jar package into default\lib
  | 

sorry, I might not find out java trace , and when I run AS again, I dont see 
any exception beyond that quote I posted before.
(I'm on the YM and skype, if you online now, plz help me.
YM :nqtung1311, skype: nqtung
)
thanks

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

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


[jboss-user] [JBoss jBPM] - Re: problem with jbpm3.2 and jboss SA 4.2.1GA

2008-04-27 Thread salaboy21
Can you show to us the begining of the java trace? not the AS trace...
look for some Java Exception in your as log...

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

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


[jboss-user] [Security & JAAS/JBoss] - Can i get all users in the system?

2008-04-27 Thread avihaimar
Hey,

I need to get all user that login to the system.
I am working with Jboss4.2.

Thank you

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

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


[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB

2008-04-27 Thread jaikiran
Let's stick to JBoss-4.2.2 GA. Did you try removing the ejb-jar.xml from your 
packaging? 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Sending default (welcome) page through Faces Servlet

2008-04-27 Thread jaikiran
In your web.xml, you can add a welcome page, like this:

  | 
  | 
  | 
  |   EJB3 Persistence
  |   
  | 
  |  FacesServlet
  |  blah.blah.blah
  |  
  |  
  | 
  | 
  | 
  |  FacesServlet
  |  *.faces
  |  
  |  
  |  
  |  
  | index.jsp
  | 
  |  
  | 

And then in the index.jsp (which will be at the root of the war), you can have 
this redirection:


  | 
  | <%
  | 
  | request.getRequestDispatcher("/dummy.faces").forward(request,response);
  | 
  | %>
  | 
  | 
  | 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Jboss 4.2.2 installation

2008-04-27 Thread jaikiran
Use the -b option to start JBoss. See this for more details 
http://wiki.jboss.org/wiki/JBoss42FAQ

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

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


[jboss-user] [JBoss jBPM] - Re: problem with jbpm3.2 and jboss SA 4.2.1GA

2008-04-27 Thread nqtung
thanks for your reply,
 I had a oracle-ds.xml before, and jndi-name: JbpmDS, and in the 
hibernate.cfg.xml under jbpm-console.war, I had datasource: java:/JbpmDS.
I configured correct url, driver_class,... But it cannot deploy.
PS: I followed http://wiki.jboss.org/wiki/en/DeployJbpm3.2WebAppUnderJBoss4.2.x

who may help me about this problem, plz?
Thanks so much !


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

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


[jboss-user] [JBoss jBPM] - Strange problem calling TaskInstance.end [could not initiali

2008-04-27 Thread bloreguy
I am using Jbpm + Hibernate  on MSSQL Server and see this error frequently. 
Sometimes, I am able to run without any problems. Any help in understanding and 
fixing this issue will be deeply appreciated.


10:29:29,947 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: 
HYT00
10:29:29,951 ERROR [JDBCExceptionReporter] The query has timed out.
10:29:29,956 ERROR [BatchSearchAction] Error in assigning all docs 
message:could not initialize a collection: 
[org.jbpm.taskmgmt.exe.TaskInstance.variableInstances#767]
10:29:29,970 INFO  [BatchSearchAction] Exception:
org.hibernate.exception.GenericJDBCException: could not initialize a collection:
 [org.jbpm.taskmgmt.exe.TaskInstance.variableInstances#767]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException
(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
er.java:43)
at org.hibernate.loader.Loader.loadCollection(Loader.java:2001)
at org.hibernate.loader.collection.CollectionLoader.initialize(Collectio
nLoader.java:36)
at org.hibernate.persister.collection.AbstractCollectionPersister.initia
lize(AbstractCollectionPersister.java:565)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onIn
itializeCollection(DefaultInitializeCollectionEventListener.java:60)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:
1716)
at org.hibernate.collection.AbstractPersistentCollection.initialize(Abst
ractPersistentCollection.java:344)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPe
rsistentCollection.java:86)
at org.hibernate.collection.PersistentMap.values(PersistentMap.java:234)

at org.jbpm.taskmgmt.exe.TaskInstance.submitVariables(TaskInstance.java:
135)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:458)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:418)

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

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


[jboss-user] [EJB 3.0] - Re: LazyInitializationException in many-to-many relation tha

2008-04-27 Thread JuliaF
Hello,  jaikiran

Many thanks for posting the tip. I fixed the LazyInitialisationException 
problem in this instance. However, I think I am facing a much more general EJB 
design problem, which I will try to explain further down.
With regards to the earlier posting, in addition to using merge() before 
persist(), as you helpfully suggested, I also had to add this:
@TransactionAttribute(TransactionAttributeType.REQUIRED) 
  | public void addPublicSubject(Subject s, User u) { 
  | 
  | User u = entityManager.merge(user);
  | Subject s = entityManager.merge(subject);
  | 
  | u.getSubjectsThisUserSubscribedTo().add(s);
  | s.getUsersThatSubscribedToMe().add(u);
  | 
  | entityManager.persist(u);
  | entityManager.persist(s);
  | 
  | }
  | 
Thus, it updates the relationship table (shared_subject in this case)

In addition I modified findSubject(int subjectId) of session bean SubjectBean 
as follows

  | @TransactionAttribute(TransactionAttributeType.REQUIRED)
  | public Subject findSubject(int subjectId) {
  | Subject s = (Subject)entityManager.find(Subject.class, subjectId);
  | 
  | s.getOwner();
  | s.getUpdater();
  | Collection temp_topics= s.getMyTopics();
  | if(!temp_topics.isEmpty()) temp_topics.size();
  | Set temp_users = s.getUsersThatSubscribedToMe();
  | if(!temp_users.isEmpty()) temp_users.size();
  | return s;
  | }
  | 
because I read in one of the tutorials that all relationships must be managed 
explicitly in the transactional code. 
That is if we want the client to have access to the cmr fields of the Subject 
they must be pre-fetched within the transaction by executing seemingly useless 
statements like collectionXXX.size() or s.getOwner() even though we 
don™t assign the result of such statements to anything and 
don™t use it within the transaction. 

EJB design problem:
So, to avoid LasyInitialisationException CMR Fields first have to be accessed 
in the transactional context of a session bean in order to be loaded into the 
Entity Bean 
Suppose, I have a bean User with the following CMR fields:


  | Set mySubjects;
  | Set topicsThisUserCreated;
  | Set entriesThisUserAuthored;
  | Set topicsThisUserUpdated;
  | Set entriesThisUserUpdated;
  | Set subjectsThisUserSubscribedTo;
  | 
Respectively each object in each collection has CMR fields

  | 
  | Subject:
  |User owner;
  | User updater;
  | Collection myTopics;
  | Set usersThatSubscribedToMe;
  | Topic:
  | User creator;
  | User updater;
  | Subject subject;
  | Topic parentTopic;
  | private Collection nestedTopics;
  | private Set entries;
  | 
  | Entry:
  | private Topic topic;
  | private User author;
  | private User updater;
  | Plus entry has a field:
  | private String entryBody; which is @Lob
  | 

When User is accessed in the detached context (somewhere in the client) 
technically speaking it is possible that the client will call something like:

  | public void buildOutput(User user, Output out){
  |   User u = user;
  |   Set ss = u.getSubjectsUserSubscribedTo();
  |   for(subject:ss) {
  |   Set tt = subject.getMyTopics();
  |   for(topic:tt) {
  | outputTopic(topic, u, out);
  | 
  | }
  | }
  | public void outputTopic(Topic topic, User u, out) {
  | 
  |if(topic.getParent()!=null) outputTopic(topic.getParent(), u, out);
  |out.setElemet(Topic.class.getName());
  | out.add(topic.getName);
  | out.add(topic.getCreator().getUserName());
  | out.add(topic.getUpdater().getUserName();
  | out.add(topic.getCreator().getTopicsThisUserUpdated().size());
  | Set ee = topic.getEntries();
  | for(entry:ee){
  |  out.setElement(Entry.class.getName());
  |  out.add(entry.getName();
  |  out.add(entry.getAuthor().getUserName());
  |  out.add(entry.getBody());
  | }
  | }
  | 
  | 
I don™t think it will work because LazyInitializationException can be 
thrown in the dozens of places in this snippet of code. 
This poses a design issue: 
The getters and setters of CMR fields must be public so that the EJB container 
could manage them.
If they are public the client has access to them in the detached context, but 
to avoid Lazy Loading Exception they have to be set and accessed in the 
transactional context of a session bean.
My understanding is that EJB3 disposed of the Data Transfer and Data Access 
objects in order to simplify the EJB model and instead introduced the notion of 
the detached context in which Data Access objects (User, Subject, Topic, Entry 
in this case) act as Data Transfer Objects as far as client is concerned. 
However, LazyInitializationException will always be on the way in this model.
So, the questio

[jboss-user] [JBoss Tools (users)] - RichFaces 3.2 - Manual installation

2008-04-27 Thread rsarto
Hi,

  does anybody know how to manual install RichFaces 3.2 in a 3.3 Eclipse/JBoss 
Tools 2.0.1GA/JBoss 4.2.2GA ?

Tks.

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

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


[jboss-user] [JBoss/Spring Integration] - Unable to lookup datasource in jboss 4.2.2 with spring 2.0.8

2008-04-27 Thread suneetshah
ello,

I have trying to use the datasource in my JBoss 4.2.2 server, but I am getting 
the error below. I have tried a number of permutations on the jndi name in the 
applicationcontext.xml file, but none seem to work.

Any suggestions would be greatly appreciated.

My jboss xxxDS.xml file look like:


  | oracleDS

My applicationcontext.xml has the following value:


  | 
  | oracleDS
  | 
  | 
  | 

I have also tried:
java:OracleDS
java:/oracleDS

All of them result in the following exception:

org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in ServletContext resource 
[/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested 
exception is javax.naming.NameNotFoundException: oracleDS not bound
  | Caused by:
  | javax.naming.NameNotFoundException: oracleDS not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
  | at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
  | at javax.naming.InitialContext.lookup(InitialContext.java:351)
  | at 
org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java

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

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


Re: [jboss-user] [JBossWS] - Re: Cannot expose EJB 3 as WS

2008-04-27 Thread Alexander Lvov
Hi, just wanted to say i was able to expose my class as a webservice with no
xml files with jboss 4.2.2 though i think i had a default ejb3 xml file.
Why dont u post here information about whats in your jar file u are
exposing, and i'll try to help u.
/Alexander


2008/4/26, peiguo <[EMAIL PROTECTED]>:
>
> Checked out the specification for @WebService, it says that wsdlLocation
> points to a predefined wsdl, obviously does not work for my purpose here.
>
> I still wonder whether I can avoid the config.xml file. Is it not true
> that EJB 3 suppose to remove the need of those xml files.
>
> View the original post :
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147028#4147028
>
> Reply to the post :
> http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147028
> ___
> jboss-user mailing list
> jboss-user@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-user
>
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: JDNI Lookup - Naming Not Found with JBOSS 4.2.2

2008-04-27 Thread senthilrajan.nitt
Thanks for your reply.

I also wondering why it didnt work. 

To start the jboss server i am just running run.bat & not using any -b option.

Yep, the servlet is deployed on server as DS.

Let me try once again. 

Thanks,
Senthil


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

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


[jboss-user] [JBoss Portal] - Re: Injecting of required services into the portlet context

2008-04-27 Thread erezharari
thanks,
so i need to lookup which attribute?

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

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


[jboss-user] [JBoss Portal] - Re: configure jboss-portal.sar\portal-server.war to use JSF

2008-04-27 Thread erezharari
can't i use some JSF / RichFaces components in my tabs.jsp, for instance to 
draw the pages navigation tab?
say i place tabs.jsp in my own WAR and configure the portal to use it from 
there. would it them be possible?

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

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


[jboss-user] [JBossWS] - Why is wsconsume stopping whole batch script ?

2008-04-27 Thread thoste
>From a batch script under WinXP I called "wsconsume.bat".
Much to my surprise wsconsume terminates (after successful execution also th 
calling bacth script. 

Why?

The calling batch script looks (simplified) like:
-
...
Echo Before call
D:\java\JBoss\wsconsume.bar -k htp://127.0.0.1:8080/MyService?WSDL
Echo This text should be written. But is NOT because wsconsume terminates
...

Can I somehow tell wsconsume NOT to terminate its wrapping batch script?

Thomas


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Jboss 4.2.2 installation

2008-04-27 Thread aneesh62003
NDOWS;C:\windows\system32;C:\Program Files\Java\jdk1.5.0_03\bin
12:28:35,000 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.
.1-8080
12:28:35,000 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8
09
12:28:35,000 INFO  [Catalina] Initialization processed in 228 ms
12:28:35,000 INFO  [StandardService] Starting service jboss.web
12:28:35,000 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
12:28:35,046 INFO  [Catalina] Server startup in 48 ms
12:28:35,156 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-
eb.deployer/ROOT.war/
12:28:35,781 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy
httpha-invoker.sar/invoker.war/
12:28:35,953 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy
jbossws.sar/jbossws-context.war/
12:28:36,093 INFO  [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=.../deploy/j
ddi-service.sar/juddi.war/
12:28:36,187 INFO  [RegistryServlet] Loading jUDDI configuration.
12:28:36,187 INFO  [RegistryServlet] Resources loaded from: /WEB-INF/juddi.prop
rties
12:28:36,187 INFO  [RegistryServlet] Initializing jUDDI components.
12:28:36,859 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../de
loy/management/console-mgr.sar/web-console.war/
12:28:37,484 INFO  [MailService] Mail Service bound to java:/Mail
12:28:37,718 INFO  [RARDeployment] Required license terms exist, view META-INF/
a.xml in .../deploy/jboss-ha-local-jdbc.rar
12:28:37,750 INFO  [RARDeployment] Required license terms exist, view META-INF/
a.xml in .../deploy/jboss-ha-xa-jdbc.rar
12:28:37,781 INFO  [RARDeployment] Required license terms exist, view META-INF/
a.xml in .../deploy/jboss-local-jdbc.rar
12:28:37,796 INFO  [RARDeployment] Required license terms exist, view META-INF/
a.xml in .../deploy/jboss-xa-jdbc.rar
12:28:37,843 INFO  [RARDeployment] Required license terms exist, view META-INF/
a.xml in .../deploy/jms/jms-ra.rar
12:28:37,875 INFO  [RARDeployment] Required license terms exist, view META-INF/
a.xml in .../deploy/mail-ra.rar
12:28:37,906 INFO  [RARDeployment] Required license terms exist, view META-INF/
a.xml in .../deploy/quartz-ra.rar
12:28:37,921 INFO  [QuartzResourceAdapter] start quartz!!!
12:28:37,984 INFO  [SimpleThreadPool] Job execution threads will use class load
r of thread: main
12:28:38,015 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
12:28:38,015 INFO  [RAMJobStore] RAMJobStore initialized.
12:28:38,015 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedul
r' initialized from default resource file in Quartz package: 'quartz.properties

12:28:38,015 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
12:28:38,015 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLU
TERED started.
12:28:38,156 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'j
oss.jca:service=DataSourceBinding,name=evosDataSource' to JNDI name 'java:evosD
taSource'
12:28:38,609 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'j
oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
12:28:38,843 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'j
oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
12:28:39,140 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'j
oss.jca:service=DataSourceBinding,name=jdbc/ngaaORAJDBC' to JNDI name 'java:jdb
/ngaaORAJDBC'
12:28:39,156 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'j
oss.jca:service=DataSourceBinding,name=SmsCpJDBC' to JNDI name 'java:SmsCpJDBC'
12:28:39,156 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'j
oss.jca:service=DataSourceBinding,name=iLoyaltyDataSource' to JNDI name 'java:i
oyaltyDataSource'
12:28:39,171 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'j
oss.jca:service=DataSourceBinding,name=UPNDS' to JNDI name 'java:UPNDS'
12:28:39,187 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'j
oss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'
12:28:39,203 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../de
loy/jmx-console.war/
12:28:39,500 INFO  [TomcatDeployer] deploy, ctxPath=/testEpps, warUrl=.../tmp/d
ploy/tmp55231testEpps-exp.war/
12:28:39,640 INFO  [TomcatDeployer] deploy, ctxPath=/testSms, warUrl=.../tmp/de
loy/tmp55232testSms-exp.war/
12:28:39,750 INFO  [EARDeployer] Init J2EE application: file:/C:/Documents and
ettings/testuser/Desktop/jboss-4.2.2.GA/server/all/farm/ngaa.ear
12:28:40,421 INFO  [EjbModule] Deploying CommonEJB
12:28:40,468 INFO  [EjbModule] Deploying SystemAdministratorEJB
12:28:40,812 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'CommonEJB' to j
di 'local/[EMAIL PROTECTED]'
12:28:40,812 INFO  [ProxyFactory] Bound EJB Home 'CommonEJB' to jndi 'CommonEJB

12:28:40,828 INFO  [ProxyFactory] Bound EJB Home 'SystemAdministratorEJB' to jn
i 'SystemAdministratorEJB'
12:28:40,843 INFO  [EJBDep

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Jboss 4.2.2 installation

2008-04-27 Thread aneesh62003
I've downloaded a jboss4.2.2 ga server and configured it to run in the all 
configuration.

===

  JBoss Bootstrap Environment

  JBOSS_HOME: C:\Documents and Settings\testuser\Desktop\jboss-4.2.2.GA

  JAVA: C:\Program Files\Java\jdk1.5.0_03\bin\java

  JAVA_OPTS:  -Djboss.partition.name=TestPartition-Djboss.partition.name=Te
tPartition  -Djboss.partition.name=TestPartition  -Djboss.partition.name=TestPa
tition  -Djboss.partition.name=TestPartition  -Dprogram.name=run.bat -server -X
s128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcI
terval=360

  CLASSPATH: C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar;C:\Documents and S
ttings\testuser\Desktop\jboss-4.2.2.GA\bin\run.jar

===

12:28:12,312 INFO  [Server] Starting JBoss (MX MicroKernel)...
12:28:12,312 INFO  [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag
JBoss_4_2_2_GA date=200710221139)
12:28:12,312 INFO  [Server] Home Dir: C:\Documents and Settings\testuser\Deskto
\jboss-4.2.2.GA
12:28:12,312 INFO  [Server] Home URL: file:/C:/Documents and Settings/testuser/
esktop/jboss-4.2.2.GA/
12:28:12,312 INFO  [Server] Patch URL: null
12:28:12,312 INFO  [Server] Server Name: all
12:28:12,312 INFO  [Server] Server Home Dir: C:\Documents and Settings\testuser
Desktop\jboss-4.2.2.GA\server\all
12:28:12,312 INFO  [Server] Server Home URL: file:/C:/Documents and Settings/te
tuser/Desktop/jboss-4.2.2.GA/server/all/
12:28:12,312 INFO  [Server] Server Log Dir: C:\Documents and Settings\testuser\
esktop\jboss-4.2.2.GA\server\all\log
12:28:12,328 INFO  [Server] Server Temp Dir: C:\Documents and Settings\testuser
Desktop\jboss-4.2.2.GA\server\all\tmp
12:28:12,328 INFO  [Server] Root Deployment Filename: jboss-service.xml
12:28:12,562 INFO  [ServerInfo] Java version: 1.5.0_03,Sun Microsystems Inc.
12:28:12,562 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_03-b0
,Sun Microsystems Inc.
12:28:12,578 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
12:28:13,093 INFO  [Server] Core system initialized
12:28:15,734 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:808
/
12:28:15,734 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resou
ce:jboss-log4j.xml
12:28:16,125 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA
version) - JBoss Inc.
12:28:16,125 INFO  [TransactionManagerService] Setting up property manager MBea
 and JMX layer
12:28:16,312 INFO  [TransactionManagerService] Starting recovery manager
12:28:16,421 INFO  [TransactionManagerService] Recovery manager started
12:28:16,421 INFO  [TransactionManagerService] Binding TransactionManager JNDI
eference
12:28:19,390 INFO  [EJB3Deployer] Starting java:comp multiplexer
12:28:20,562 INFO  [STDOUT]
---
GMS: address is 10.100.45.36:2531
---
12:28:22,656 INFO  [TreeCache] viewAccepted(): [10.100.45.40:2309|1] [10.100.45
40:2309, 10.100.45.36:2531]
12:28:22,671 INFO  [TreeCache] TreeCache local address is 10.100.45.36:2531
12:28:22,687 INFO  [TreeCache] received the state (size=1024 bytes)
12:28:22,703 INFO  [TreeCache] state was retrieved successfully (in 32 millisec
nds)
12:28:22,703 INFO  [TreeCache] parseConfig(): PojoCacheConfig is empty
12:28:22,812 INFO  [STDOUT] no object for null
12:28:22,828 INFO  [STDOUT] no object for null
12:28:22,843 INFO  [STDOUT] no object for null
12:28:22,859 INFO  [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
12:28:22,875 INFO  [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
12:28:24,609 INFO  [NativeServerConfig] JBoss Web Services - Native
12:28:24,609 INFO  [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=2007102
0837)
12:28:25,265 INFO  [SnmpAgentService] SNMP agent going active
12:28:25,796 INFO  [TestPartition] Initializing
12:28:25,859 INFO  [STDOUT]
---
GMS: address is 10.100.45.36:2537
---
12:28:27,921 INFO  [TestPartition] Number of cluster members: 2
12:28:27,921 INFO  [TestPartition] Other members: 1
12:28:27,937 INFO  [TestPartition] Fetching state (will wait for 3 millisec
nds):
12:28:29,250 INFO  [TestPartition] state was retrieved successfully (in 1313 mi
liseconds)
12:28:29,312 INFO  [HANamingService] Started ha-jndi bootstrap jnpPort=1100, ba
klog=50, bindAddress=/127.0.0.1
12:28:29,312 INFO  [DetachedHANamingService$AutomaticDiscovery] Listening on /1
7.0.0.1:1102, group=230.0.0.4, HA-JNDI address=127.0.0.1:1100
12:28:29,484 INFO  [TreeCache] No transaction manager lookup class has been def
ned. Transactions cannot be used
12:28:29,609 INFO  [STDOUT]
---
GMS: address is 10.100.45.36:2544

[jboss-user] [EJB 3.0] - regarding @PrePersist and ID assignment

2008-04-27 Thread mnrz
Hi all
I have an entity in which I need to assign my own ID to its primary key, 
I put the code to extract the id and set it to the field in a PrePersist 
method, however, the ejb validates the entity before calling that callback 
method so the exception will be thrown 

my question is where should I put this code or how can I say the EJB not to 
validate before persisting!

any comment would be of great help

thanks

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

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