[JBoss-user] [Messaging, JMS & JBossMQ] - Does a transacted session block other sessions?

2005-06-10 Thread drakonis
We create a transacted session with:
QueueSession session = conn.createQueueSession(true, -1);
It means all the messages created in that session are apart of an atomic unit 
and there can be none interposing in that order. However the starting of a 
transacted session doesn't take a destination as a parameter. So it couldn't be 
blocking at this time, other destinations should be able to accept whatever 
messages they please. 
So is the transaction started when we call 
QueueSender senderJMS = session.createSender(Destination);
or in fact is not really a transaction at all so other "transactions" started 
after this one but who finished before it, actualy get their group of messages 
before this transaction's group?

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Help requried for JBoss 3.2.5 behind Firewall

2005-06-10 Thread sanketdesai
Please help !!

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - 'Remember Me' functionality for JBoss-Portal

2005-06-10 Thread mike_palmer
I am a newcomer to the JBoss environment and I would like to incorporate a 
'Remember Me' feature into our JBoss-portal.

Can anyone suggest a starting point or any JBoss specific information that may 
assist?

Thanks in advance

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Help!configure problem

2005-06-10 Thread hukn
 window-->preferences-->Jboss-IDE-->Launcher-->the list of Default Server is 
empty![/img][/url]

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Hey Need Help

2005-06-10 Thread anupama
Hey JBoss gurus,

I finally able to make 2 standalone java classes to send messages to each other 
through JBoss MQ Topic,it's working fine but since when sender sends message in 
Pub/Sub client has to be online that means clients that are active when 
publisher publish message to Topic will receive message(I am using default JNDI 
name topic/testTopic).CORRECT ME IF I AM WRONG. 

I found this unreasonable for my specification so tried to use Queue instead of 
Topic that means I changefd from Pub/Sub to point to point where receiver can 
get massages even when he is offline during sender send messages to Queue. It 
worked fine for couple of times but getting weird exception if I run 
applications multiple times. I am using default JNDI name for Queue which is 
queue/testQueue.

Here is the exception log I am getting


  | Publishing message: Hello World no. 1
  | An exception occured while testing HelloPublisher: 
org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested 
throwable: (java.lang.ClassNotFoundException: com.jnetdirect.jsql.x)
  | org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - 
nested throwable: (java.lang.ClassNotFoundException: com.jnetdirect.jsql.x)
  | at org.jboss.mq.Connection.sendToServer(Connection.java:1028)
  | at org.jboss.mq.SpySession.sendMessage(SpySession.java:1005)
  | at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:265)
  | at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:204)
  | at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:59)
  | at HelloPublisher.publish(HelloPublisher.java:103)
  | at HelloPublisher.main(HelloPublisher.java:134)
  | Caused by: java.lang.ClassNotFoundException: com.jnetdirect.jsql.x
  | at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
  | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:219)
  | at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:558)
  | at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
  | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
  | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  | at org.jboss.mq.il.uil2.msgs.BaseMsg.read(BaseMsg.java:367)
  | at org.jboss.mq.il.uil2.msgs.AddMsg.read(AddMsg.java:53)
  | at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:307)
  | at java.lang.Thread.run(Thread.java:534)

Any help will be greatly appreciated. I hope will get response quick.

I am not guru in J2EE development so my problem may sound silly for gurus I 
guess.

Thanks

Hope get something soon..

bye
takecare


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Need help with newbie

2005-06-10 Thread anupama
Hi,

I developed EJBs using JBoss 3.2.6 but now I want to accomplish messaging in 
EJB in two ways.

1.from POJOs
2.using MDBs

I am not so lazy I searched on Internet for this but couldn't able get anything 
useful.  I have concepts about what to do,what classes are needed but I 
couldn't able to configure how exactly to do that.


Could anyone pls suggest tutorials for me.

Thanks


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - attributes failing for Model MBean in JBoss 3.2.7

2005-06-10 Thread stranm
I have an application I'm deploying, on startup I want to register a few JMX 
Model MBeans to monitor key parts of the application. I'm trying to implement a 
first model mbean with mixed results, the operations work (so I know that my 
call to set the managed resource is working). Everything registers with the 
server without complaint and I can see my bean in the management console but 
none of the attributes work -they're always set to null. 
I've tried about every permutation I can think of. I have a very simple set of 
counters that I'm trying to see and no matter what nothing comes up. I'm using 
Win XP, java 1.4.2_03, JBoss 3.2.7 and commons-modeler 1.1 to create the xml 
driven Model mbean.

Example attribute from my mbean that fails -from the xml file (brackets removed 
for the posting here -it is well formed and follows the DTD):
attribute name="numPersistentWorflowsInProcess" description="The number 
of persistent workflows that are in process" type="int"

I've tried specifying the getter, not specifying it, using primitives, using 
classes, as well as setting significantly more details in the attribute... 
nothing seems to make any difference and nothing gets logged it just shows the 
word null in the admin console. I've added code to try it from a unit test and 
that returns null as well. I don't think there's a security issue after all the 
commands work in it, the attributes just don't.

Does anyone know what's up here?

Is there a simple example out there using model mbean... I've worked on this 
for days and I'm stuck, the promise of JMX is fading for my project quickly.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - administration

2005-06-10 Thread Marek
I'm new in JBossPortal but I've not find this kind of question (yet),
do you think about some kind of portlet creation support ? I mean eclipse 
plugin (maybe JBoss Eclipse API feature) or administration API (WebSphere like) 
...

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - EJB3.0 Preview 5 outside the J2EE container?

2005-06-10 Thread levitator
Apparently with the new EJB3.0 apis it is possible to use the persistence 
implementations from different vendors both within and outside a J2EE container.

Is this possible with the EJB3.0 Preview 5 implementation of persistence from 
JBOSS? Can I use the jar to persistence of plain java objects outside the 
container environment? If so, is there any resource you could point me to that 
will help me do this quickly?

Thanks
levitator

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Two questions regarding 1.2.2 to 1.2.3

2005-06-10 Thread [EMAIL PROTECTED]
Locking can be used separately from a TxManager. 

If you have a TxManager *and* you started a TX, then all locks are held until 
the end of the TX.

If you didn't start a TX, or don't have a TxManager installed, the scope of the 
locks is per method call

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Can't find serializer...

2005-06-10 Thread kanno
"Scharlau" wrote : kanno,
  | 
  | you probably need to put the class files generated by wscompile from your 
WSDL file under the WEB-INF/classes directory of the war that you've deployed 
your WS in. (Or under the META-INF/classes if you've used a jar with a SLSB). 
  | 
  | Basically the error message mean the service can't find your classes, and 
you need to put them in the usual place.
  | 
  | Bruce

Bruce,

I thought that the class files generated by wscompile... aside from the 
Response/Response_Struct ones (used to wrap original classes) are artifacts 
that aren't even used.  I was under the assumption that JBoss uses its own 
internal classes such as BeanSerializerFactory, etc using introspection and the 
mapping files to map the xml data into memory, and from memory back to xml.

(I could be wrong though... still don't understand why the mapping can't be 
found in the registry when I can see it in the .wsdd file; unless of course the 
namespace is incorrect, but from what I can tell... it looks right) :)

_Ryan


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: transaction went crazy

2005-06-10 Thread PeterJ
When I asked the developers from Arjuna the same question (will it run on 
4.0.x), they indicated that at minimum it would need to be tested, and at 
maximum they might have to change some things first.  You should really talk to 
them about their qualification with JBoss 4.0.2 before attempting to use Arjuna 
with it. 

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Window decorations and controls

2005-06-10 Thread [EMAIL PROTECTED]

The portlet controls are displayed by the theme.  You can disable all content 
external to the actual portlet content by creating a custom theme.  



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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] [HTTPD, Servlets & JSP] - Context problem !

2005-06-10 Thread alex b
Hello mtigua,

Friday, June 10, 2005, 1:12:38 AM, you wrote:

> Hi everyone !
> I have this problem with JBOSS 4:

> I have two context:

> deploy/
> /context1.war
> index.jsp
> META-INF
> WEB-INF
>  - classes/com/cees/edu/Class1.class

> /context2.war 
> index.jsp
> META-INF
> WEB-INF
>  - classes/com/cees/edu/Class1.class

> where index.jsp is same for two contexts, but Class1 is different. 
> index.jsp creates a new object Class1.

>  When browser loads /context1/index.jsp all is OK. But when it
> loads /context2/index.jsp , this page calls
> /context1/classes/com/cees/edu/Class1.class. 

> Is there some problem of configuration?

> Thanks , 
> Mario Tigua - Ecuador.


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

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


> ---
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> ___
> JBoss-user mailing list
> JBoss-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jboss-user

Hi
Read about class loading in jboss in general.
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration

For this particilar case add following lines into

deploy/context1.war/WEB-INF/jboss-web.xml


   
  dot.com:loader=context1
   
   


deploy/context2.war/WEB-INF/jboss-web.xml


   
  dot.com:loader=context2
   
   





-- 
Best regards,
 alexmailto:[EMAIL PROTECTED]




---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: problems logging into JBoss **URGENT**

2005-06-10 Thread metalgreu
22:13:14,374 ERROR [Engine] - Root Cause -
java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:954)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:670)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at 
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
at 
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:44)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
22:13:14,389 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for 
servlet jsp threw exception
java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at 
org.apache.catalina.core.StandardWrapper.loadSe

[JBoss-user] [Nukes User] - Migrating from postnuke to nukes

2005-06-10 Thread eperry
I was wondering if nukes was directly compatable with the pn database,
or if there is a migration process.  I run small website and would hate to 
recreate and repost everything.

thanks

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Two questions regarding 1.2.2 to 1.2.3

2005-06-10 Thread soeren
Hi Bela,

"[EMAIL PROTECTED]" wrote : In 1.2.3, running *without* transactions, we 
acquire the locks during a method call, and release them after the call returns.

Sorry to ask you for this detail: Default mode (as the zip from sourceforge 
comes) means "REPEATABLE_READ". This just means a locking strategy but not a 
transaction manager involved? Or does this involve some JBossCache-built-in 
t.m.? I'm a little confused as it looks like for me if the use of a transcation 
manager and the node locking level are not linked together in any way? Coming 
from a database background I know there's always a transaction manager 
somewhere, otherwise locking is quite not possible. I need to be clear with 
this as to reproduce a matching case eventually for this:

"[EMAIL PROTECTED]" wrote : If your locks are not released, then this is a bug, 
or you're not committing your transactions. Create a reproducable unit test and 
a JIRA case and attach it to the JIRA case.

To commit a transaction I must use a transaction manager, correct? So I assume 
that the use of "REPEATABLE_READ" in fact involves a JBossCache provided 
transaction manager BUT THEN I should use something like " tx.begin()" and 
"tx.end()" around each "cache.put(node)" call? This is somewhat surprising me 
as in 1.2.2 I just coded a "cache.put(node)" without any transaction code. So 
probably I've missed something so far in our coding? E.g. the very short demo 
code in chapter 4 of http://docs.jboss.org/jbcache/current/TreeCache/html/ also 
doesn't involve any transactional code.

Currently we're using the - default setting - DummyTransactionManagerLookup as 
Transaction manager. Rereading the docs now it's not clear to me if this is 
suitable for an standalone (outside JBoss) application. We're planning to have 
some 6-10 clients here on different physical hosts and having REPEATABLE_READ 
would be nice but not necessary at all.


Thanks,
Soeren Gerlach


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Custom Login Module Config

2005-06-10 Thread tcherel

I see.
For sure, if you do your own JAAS login within the servlet code, the 
request.getCallerPrincipal will definitely not return your custom principal as 
you authentication is done too late in the process.
You need to look at the tomcat documentation to create your own realm or 
something like that in order for you authentication to be performed by the web 
container (tomcat) prior to handling your request.
Or may be doing it within a Valve or Filter (I think Valve is the way to go) is 
the way to go, I am not certain.
Another possible option is to look for the possibility of a custom FORM login 
(not sure if this is possible or not).

In any cases, if your servlets are calling some backend EJBs, you will need to 
write some "advanced" JBoss code to pass the web container security context 
down to the EJB container (unless a hook to a custom FORM authentication can 
take care of this for you, I do not know).
There quite a few posts in the forum suggesting to use the ClientLoginModule at 
the end of your JAAS stack configuration, but this imply that authentication 
(or at least going through all the JAAS modules) is performed at each request 
(which is, I think, not that great).

Sorry for not being able to help more than that but this is where my JBoss 
knowledge stops.

Thomas


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Custom Login Module Config

2005-06-10 Thread luiz.santanna
I understand what you say, however, this application needs a custom login, 
because its not just a username/password. The user also needs to inform another 
piece of information, so I cant just use BASIC or FORM-based authentication.

So in order for me achieve this type of authentication and still be able to use 
the security features that J2EE offers me, I need to use JAAS and create a 
custom login module and a custom callback handler to do that job. Am I right so 
far?

Thats what I've been working on, but I cant get it to work. I did everything 
like the Wiki page tells (and the article on the sticky note in this forum). I 
can get the LoginContext to call my login-module, but I cant integrate my 
authentication info with the container. Is there a way to do this or am I 
really off?

Thanks for your help, and I would appreciate it if someone could point me in 
the right direction.

Luiz.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: java.sql.SQLException: socket creation error (table cre

2005-06-10 Thread aelnattar
I have the same problem and it seems that when I modified the hsqldb-ds.xml 
according to the guide the problem arises.

JBoss comes up just fine when I'm using localDB but when I try to use the TCP 
connection option and uncomment the  section and the mbean that 
follows, that's when JBoss is unhappy.

My log all of a sudden shows the java.sql.SQLException: socket creation error 
message all over the place.

The guide is missing something. What could it be?

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - How to specify or redirect URL to subdirectory

2005-06-10 Thread neeleshz
Hi,

I am using JBoss 3.2.5 with Tomcat 5.0.
My site has foll. directory structure
 -Mysite
   -Portal
 -images

I am accessing index.jsp located at Portal directory as-
http://localhost:8080/Mysite/Portal/index.jsp

Now I want to access image files from images directory as-
http://localhost:8080/Portal/xyz.jpeg

Basically I want to redirect /Portal/ request to /Mysite/Portal/ 

Can anybody please help me in doing this?

Neelesh


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Roles don't make it into Tomcat when using Windows

2005-06-10 Thread amissine
Thanks. It appears I am having the same issue on WXP, haven't tried it on Linux 
yet:

2005-06-10 13:59:00,488 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] User 'alec' 
authenticated, loginOk=true
2005-06-10 13:59:00,488 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] commit, loginOk=true
2005-06-10 13:59:00,488 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Assign user to role 
admin
2005-06-10 13:59:00,504 TRACE 
[org.jboss.security.plugins.JaasSecurityManager.asg] updateCache, 
subject=Subject:
Principal: alec
Principal: admins(members:admin)

2005-06-10 13:59:00,504 TRACE 
[org.jboss.security.plugins.JaasSecurityManager.asg] Inserted cache info: 
[EMAIL PROTECTED](9463139).principals=[alec, admins(members:admin)],[EMAIL 
PROTECTED],expirationTime=1118428140473]
2005-06-10 13:59:00,504 TRACE 
[org.jboss.security.plugins.JaasSecurityManager.asg] End isValid, true
2005-06-10 13:59:00,504 TRACE [org.jboss.security.SecurityAssociation] 
pushSubjectContext, subject=Subject:
Principal: alec
Principal: admins(members:admin)
, principal=alec
2005-06-10 13:59:00,504 TRACE 
[org.jboss.security.plugins.JaasSecurityManager.asg] getPrincipal, cache info: 
[EMAIL PROTECTED](9463139).principals=[alec, admins(members:admin)],[EMAIL 
PROTECTED],expirationTime=1118428140473]
2005-06-10 13:59:00,504 TRACE 
[org.jboss.security.plugins.JaasSecurityManager.asg] getUserRoles, subject: 
Subject:
Principal: alec
Principal: admins(members:admin)

2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.FormAuthenticator] Authentication of 'alec' 
was successful
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.FormAuthenticator] Redirecting to original 
'/TradingDemo/details.html'
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Failed authenticate() 
test ??/TradingDemo/j_security_check
2005-06-10 13:59:00,519 DEBUG [org.apache.catalina.connector.CoyoteAdapter]  
Requested cookie session id is C0E46E89922DDAD58D406744F5144901
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase] Security checking request 
GET /TradingDemo/details.html
2005-06-10 13:59:00,519 DEBUG [org.apache.catalina.realm.RealmBase]   Checking 
constraint 'SecurityConstraint[All resources]' against GET /details.html --> 
true
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling 
hasUserDataPermission()
2005-06-10 13:59:00,519 DEBUG [org.apache.catalina.realm.RealmBase]   User data 
constraint has no restrictions
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling authenticate()
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.FormAuthenticator] Restore request from 
session 'C0E46E89922DDAD58D406744F5144901'
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase] Authenticated 'alec' with 
type 'FORM'
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.FormAuthenticator] Proceed to restored 
request
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling accessControl()
2005-06-10 13:59:00,519 DEBUG [org.apache.catalina.realm.RealmBase]   Checking 
roles GenericPrincipal[alec()]
2005-06-10 13:59:00,519 DEBUG [org.apache.catalina.realm.RealmBase] Username 
alec does NOT have role admin
2005-06-10 13:59:00,519 DEBUG [org.apache.catalina.realm.RealmBase] No role 
found:  admin
2005-06-10 13:59:00,519 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Failed accessControl() 
test


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Configuring XAOracleDS

2005-06-10 Thread HareshPatel
I have fixed problem by
1. Reinstalling JBOSS.
2. Follow step by step from Start guide section 8.3

I have one problem as shown below. But it is not related to Oracle database.
 
2005-06-10 13:35:19,781 ERROR [org.jboss.deployment.MainDeployer] could not 
create deployment: 
file:/C:/jboss/jboss-4.0.1sp1/server/default/deploy/ejb3-clustered-sfsbcache-service.xml
org.jboss.deployment.DeploymentException: Unexpected error during load of: 
org.jboss.ejb3.cache.tree.PassivationTreeCache, msg=org/jboss/cache/TreeCache; 
- nested throwable: (java.lang.ClassNotFoundException: Unexpected error during 
load of: org.jboss.ejb3.cache.tree.PassivationTreeCache, 
msg=org/jboss/cache/TreeCache)




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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Two questions regarding 1.2.2 to 1.2.3

2005-06-10 Thread [EMAIL PROTECTED]
In 1.2.3, running *without* transactions, we acquire the locks during a method 
call, and release them after the call returns.
If your locks are not released, then this is a bug, or you're not committing 
your transactions. Create a reproducable unit test and a JIRA case and attach 
it to the JIRA case.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Roles don't make it into Tomcat when using Windows

2005-06-10 Thread javajedi
   
  |
  |

Add those lines to /usr/local/jboss/server/default/conf/log4j.xml.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Roles don't make it into Tomcat when using Windows

2005-06-10 Thread amissine
Seems like I'm having the same issue with 4.0.2... Question: HOW DO I TURN ON 
TRACE AND DEBUG?

"javajedi" wrote : JBoss 4.0.1
  | This is really bizarre.  We've been using JAAS authentication with a 
variety of login modules for quite a while.  Everything works fine under Linux. 
 We have a new web app that needs to run on Windows.  When we deploy the app on 
JBoss under Windows, the users can authenticate fine in Tomcat, but Tomcat 
loses all of the user's roles.  I've tried this with a variety of login modules 
and a variety of web authentication methods (form, basic, etc.)  Nothing works 
under Windows.  It all works great under Linux.  Any idea what's going on??  I 
turned on trace and debug and here's the relevant snippets of log messages when 
using the UsersRolesLoginModule and form-based authentication:
  | 
  | Linux:
  | 2005-06-09 12:03:55,997 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling 
hasUserDataPermission()
  | 2005-06-09 12:03:55,997 DEBUG [org.apache.catalina.realm.RealmBase]   User 
data constraint has no restrictions
  | 2005-06-09 12:03:55,997 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling authenticate()
  | 2005-06-09 12:03:55,997 DEBUG 
[org.apache.catalina.authenticator.FormAuthenticator] Restore request from 
session 'DFB505752D102F5142A3FA3F1E31425A'
  | 2005-06-09 12:03:55,997 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase] Authenticated 'blah' with 
type 'FORM'
  | 2005-06-09 12:03:55,997 DEBUG 
[org.apache.catalina.authenticator.FormAuthenticator] Proceed to restored 
request
  | 2005-06-09 12:03:55,997 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling accessControl()
  | 2005-06-09 12:03:55,997 DEBUG [org.apache.catalina.realm.RealmBase]   
Checking roles GenericPrincipal[blah(user,)]
  | 2005-06-09 12:03:55,997 DEBUG [org.apache.catalina.realm.RealmBase] 
Username blah has role user
  | 2005-06-09 12:03:55,997 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Successfully passed all 
security constraints
  | 
  | 
  | Windows:
  | 2005-06-09 11:34:26,433 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling 
hasUserDataPermission()^M
  | 2005-06-09 11:34:26,433 DEBUG [org.apache.catalina.realm.RealmBase]   User 
data constraint has no restrictions^M
  | 2005-06-09 11:34:26,433 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling authenticate()^M
  | 2005-06-09 11:34:26,433 DEBUG 
[org.apache.catalina.authenticator.FormAuthenticator] Restore request from 
session 'DA6B324054950D0C421CBAFC48061A1D'^M
  | 2005-06-09 11:34:26,433 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase] Authenticated 'blah' with 
type 'FORM'^M
  | 2005-06-09 11:34:26,433 DEBUG 
[org.apache.catalina.authenticator.FormAuthenticator] Proceed to restored 
request^M
  | 2005-06-09 11:34:26,433 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling accessControl()^M
  | 2005-06-09 11:34:26,433 DEBUG [org.apache.catalina.realm.RealmBase]   
Checking roles GenericPrincipal[blah()]^M
  | 2005-06-09 11:34:26,433 DEBUG [org.apache.catalina.realm.RealmBase] 
Username blah does NOT have role user^M
  | 2005-06-09 11:34:26,433 DEBUG [org.apache.catalina.realm.RealmBase] No role 
found:  user^M
  | 2005-06-09 11:34:26,433 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Failed accessControl() 
test^M
  | 
  | 
  | Notice that the GenericPrincipal that the RealmBase is checking on Linux 
looks like blah(user,) and the one on Windows looks like blah().  The "user" 
role is just vanishing on Windows.
  | 
  | These 2 systems are using the EXACT same JBoss installation, server config, 
and war file.  The only difference is the OS.  I'm about to start digging into 
the source code but thought I'd post a plea for help here first.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - JWS files for Instant Deployment

2005-06-10 Thread dheissner
I've been looking for JWS file support in Jboss 402 and can't find any examples 
in any of the docs or on the web. 

Does anyone know if jboss supports this in a similar way to what Axis currently 
does 
(http://ws.apache.org/axis/java/user-guide.html#JWSJavaWebServiceFilesInstantDeployment)
 and where the specifics on this in the JBoss documentation is? thanks!

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: UserTransaction Started, but JMS Session is sending mess

2005-06-10 Thread vummarao
After looking through the forums I have found my mistake:


QueueConnectionFactory jobsQCF = 
(QueueConnectionFactory)ctx.lookup("java:/JmsXA") 

fixed my problem.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: ClassCastException with LocalHome casting

2005-06-10 Thread erinol0
Thanks Scott.

I just wanted to rephrase what you said to clarify.  It is imperative that you 
do not include classes in both a war and jar in the same ear as they will be 
loaded by two different class loaders, thus causing the ClassCastException.  If 
they are present only once in the ear, they will be loaded and available in the 
unified loader repository and the war will grab the loaded references when an 
attempt to load them from the war fails.  You do not need to modify the 
jboss-service.xml file.  

Now that I understand how JBoss class loading works, I find it preferrable to 
the Sun implementation, which required you to put the file in both the jar and 
war in order for it to work.

Thanks for the help and the great product.

Raj






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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Window decorations and controls

2005-06-10 Thread martingi
Is it possible not to show the decorations and controls (portlet title, window 
states, ...) of a window by specifying this simply with a descriptor/ not in 
the portlet code? Or maybe to override these settings with some custom values 
in the descriptor, regardless if the values are coded into the portlet? 

Thanks

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Two questions regarding 1.2.2 to 1.2.3

2005-06-10 Thread soeren
Hi,

i just downloaded the new 1.2.3 version, replacing a 1.2.2 version for a 
project still in development. This project uses JBossCache in a standalone 
configuration the replicate data between a couple of clients, alias using it as 
a classical distributed shared memory system.

Without changing anything at configuration or code I notice two major 
differences.

1. With the old version I always got an error message like this: "ERROR 
org.jboss.cache.TreeCache - failed binding to JNDI as 
{locatorURI=socket://:, name=DefaultCache}, exception=Need to specify class 
name in environment or system property, or as an applet parameter, or in an 
application resource file:  java.naming.factory.initial"

This disappeared just in 1.2.3. As I just started with JBossCache this is 
something I wanted to ask anyway ,-)) But I don't know if the problem has 
really disappeared with 1.2.3 or just doesn't show up as an error message as I 
don't know what the original problem was.

The configurtation directive (default from the jboss-archive) looks like this:


  | name=DefaultCache
  | locatorURI=socket://:
  | 

2. I noticed a change in the locking strategy? Currently the cache uses 
REPEATABLE_READ (default) as IsolationLevel. I noticed that a thread, reading 
or writing to a node did not release locks automatically after reading/writing, 
leading to a fast death of the application caused by hundreds of locks. I tried 
to insert releaseAllLocks(node)-statements after each write but this didn't 
help as nothing happend at all: I just saw my processes now consuming 100% CPU 
(probably doing some spin-locking).

It should be added that we don't use the transactional features using any 
external transaction manager of the JBossCache but want to rely completely on 
the built features of J.

I finally changed the IsolationLevel to NONE and now everything works fine - 
although I expect some problems later on in production when we'll see heavy 
concurrent modifications happen.


Best regards,
Soeren Gerlach

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - one-to-many relationship for 2 cmp entity beans not working

2005-06-10 Thread jaybee
I have 2 cmp entity beans, ResourceBean and RentalBean that I want to have in a 
one-to-many whereby one Resource has many Rentals, each Rental is for one 
Resource. The RentalBean constructor requires an instance of the Local int. of 
Resource which I then use in a call to Rental.setResource. I was expecting this 
to update both sides of the rel'ship, ie add an element to Resource.rentals but 
this doesn't happen. There is binary content in the RENTALBEAN.RESOURCE column 
in hypersonic but RESOURCEBEAN.RENTALS remains null. When the tables are 
created an extra column is added to the RENTALBEAN table called 
RESOURCEBEAN_RENTALS which is always null and there is no extra column added to 
the RESOURCEBEAN table. This is my ejb-jar.xml:


  | 
  | http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd";>
  | 
  | 
  | 
  |swm22
  | 
  |
  | 
  | 
  |
  |   
  |  Resource component
  |  ResourceBean
  |  ResourceBean
  |  swm22.ejb.LocalResourceHome
  |  swm22.ejb.LocalResource
  |  swm22.ejb.ResourceBean
  |  Container
  |  2.x
  |  ResourceBean
  |  swm22.ejb.ResourcePK
  |  False
  |  resourceId
  |  name
  |  description
  |  rentals
  |  category
  |  active
  |  
  |  Get whole collection of Resources
  |  
  |  findAll
  |   
  |  
  |  Select OBJECT(r) From ResourceBean r
  |  
  |  
  |  Get a resource by name
  |  
  |  findByName
  | 
  | java.lang.String
  | 
  |  
  |  Select OBJECT(r) From ResourceBean r where r.name = 
?1
  |  
  |   
  |   
  |   
  |  Rental component
  |  RentalBean
  |  RentalBean
  |  swm22.ejb.LocalRentalHome
  |  swm22.ejb.LocalRental
  |  swm22.ejb.RentalBean
  |  Container
  |  2.x
  |  RentalBean
  |  swm22.ejb.RentalPK
  |  False
  |  rentalId
  |  startDate
  |  endDate
  |  returnDate
  |  resource
  |  
  |  Get whole collection of Rental
  |  
  |  findAll
  |   
  |  
  |  Select OBJECT(r) From RentalBean r
  |  
  |   
  | 
  |   
  | ResourceRentalMgrBean
  | swm22.ejb.ResourceRentalMgrHome
  | swm22.ejb.ResourceRentalMgr
  | swm22.ejb.ResourceRentalMgrBean
  | Stateless
  | Container
  | 
  | ejb/ResourceBean
  | Entity
  | swm22.ejb.LocalResourceHome
  | swm22.ejb.LocalResource
  | ResourceBean
  | 
  | 
  | ejb/RentalBean
  | Entity
  | swm22.ejb.LocalRentalHome
  | swm22.ejb.LocalRental
  | RentalBean
  | 
  | 
  | 
  | 
  | 
  |   
  |
  | 
  |
  |
  | 
  | ResourceRental
  | 
  | 
ResourceHasRentals
  | One
  | 
  | ResourceBean
  | 
  | 
  | rentals
  | java.util.Collection
  | 
  | 
  | 
  |   
RentalForResource
  | Many
  | 
  | RentalBean
  | 
  | 
  | resource
  | swm22.ejb.LocalResource
  | 
  | 
  | 
  | 
  | 
  | 
  |
  |   
  |  
  | ResourceBean
  | *
  |  
  |  Supports
  |   
  |   
  |  
  | RentalBean
  | *
  |  
  |  Supports
  |   
  |   
  |  
  | ResourceRentalMgrBean
  | *
  |  
  |  Supports
  |   
  |   
  |  users
  |   
  |
  | 
  | 
  |  

and in jbosscmp-jdbc.xml I have

  |  
  | 
  | 
  | RentalBean
  | ...
  | 
  | resource
  | RESOURCE
  | 
  | 
  | 
  | 
  | ResourceBean
  | ...
  | 
  | rentals
  | RENTALS
  |  
  | ...
  | 
  | 
  | 
  | 

where am I goin wrong?

Thanks in advance

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

Reply to the post : 
http://www.j

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJB Relationsship for remote and local interfaces

2005-06-10 Thread schmidts
CMR can only be used with local interfaces.


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Delaying the delivery of message from the Queue to an MD

2005-06-10 Thread pixel
I've replicated this using the all the default settings, changing the 
TimeToLive to unlimited(0) and to 2+ hours in the future, with the same 
results. I am using JBoss 3.2.7 if it makes any difference. I'll fill in a 
bug-report and see what happens, and have a dig around the source.

It's not the end of the world, I can implement something to deal with the 
problem easily enough, but if I don't have to then obviously I don't want to.

Thanks for your help with this anyway

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Re: Tomcat 5.5.9 Case-Sensitivity

2005-06-10 Thread panuv
Interesting ... 
Could you or someone else provide us with a link to documentation where this is 
explained.

Thanks 
-panuv

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Problem with typeMapping when turning an EJB into a WebS

2005-06-10 Thread maherhome
I currently see this error when I run Java 1.5, but not Java 1.4.  So if you're 
runing 1.5, try 1.4.

I had problems in another project with 1.4->1.5 and axis.jar.  I solved it by 
getting a 1.5 axis.jar.

But now I'm looking for a 1.5 version of this JBoss fork(?) of axis.jar 
(axis-ws4ee.jar) and haven't had any luck.

Steve

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Reduce frequency of calls to BoundedBuffer.size() in Reg

2005-06-10 Thread [EMAIL PROTECTED]
Brian,

Looks like a good suggestion. But I will make a minor correction to your patch 
by subtracting the THRESHOLD for another 100 to guard against the overflow, 
just in case.

BTW, it seems you have some profiling information. Would you mind to share it 
with us. If you prefer, my email address is ben.wang at jboss dot com.

Thanks,

-Ben

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - how to write a JSP only portlet

2005-06-10 Thread natbox
Hi,
I would like to write a JSP only portlet for simplicity and ease of 
maintenance.  I am wondering what class should put in the 
 in portlet.xml to make this work.  I am using 
jboss AS 4.0.2 and jboss portal 2.0RC2.  Thanks!

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: JBoss SAAJ implementation does not add soapAction header

2005-06-10 Thread stevechang
Hi, 

I understand that this bug has been fixed by Jboss and will be in the 4.0.3 
version.   Is any patch we can download to resolve this problem ?

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Reduce frequency of calls to BoundedBuffer.size() in Region.

2005-06-10 Thread bdueck
Hi;

I've opened up an issue in Jira to request a change to reduce the freqency of 
calls to BoundedBuffer.size() in Region.putNodeEvent().

http://jira.jboss.com/jira/browse/JBCACHE-190

The problem is that BoundedBuffer.size() is not a cheap call - requires a lock 
acquisition - and since there is high contention for this object across 
threads, this leads to concurrency problems.

I've attached an enhanced Region.java file that makes the call only once every 
100 calls. 

Brian.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: java.lang.lassCastException during RMI call to ejb

2005-06-10 Thread innerspace
Hello and thanks. I indeed missed some class files in the client. In my project 
layout the classes that the client uses are packaged into the client jar and 
have to be given in a different place than the jars for linking.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: logs on screen

2005-06-10 Thread ufa
never mind

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: Dike's Bank example - build failed

2005-06-10 Thread [EMAIL PROTECTED]
It is there:


  | [gettingstarted]$ jar tvf jbossj2ee-src.zip | grep jboss-build.properties
  |293 Wed Nov 24 11:16:42 CST 2004 jboss-build.properties
  | 

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Porting Axis/Tomcat Web Services Across to JBoss 4

2005-06-10 Thread philmcc
I managed to do it.  It really is simple and although I know a fair bit about 
web services, I guess the fact I had to ask a question with such a simple 
answer highlights how little I know about JBoss!!!

Anyway, for those of you who are interested:

Take your axis directory from Tomcat (along with all its subdirectories 
including all of your deployed and registered services) and copy it to the 
deploy directory of the JBoss server you are running but rename it to axis.war 
in the process.

That?s it!
You can access your services at: http://localhost:8080/axis/

PS: The axis directory in Tomcat is obviously the one under: TOMCAT_HOME\webapps

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Can't find serializer...

2005-06-10 Thread Scharlau
kanno,

you probably need to put the class files generated by wscompile from your WSDL 
file under the WEB-INF/classes directory of the war that you've deployed your 
WS in. (Or under the META-INF/classes if you've used a jar with a SLSB). 

Basically the error message mean the service can't find your classes, and you 
need to put them in the usual place.

Bruce

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - UnmarshalException with Boolean type ( PostgreSQL 8.0 , JBos

2005-06-10 Thread winblade
UnmarshalException with Boolean type
 ( PostgreSQL 8.0 , JBoss 4.02 )

I resolve this probleme with this changement :


   java.lang.Boolean
   BOOLEAN
   BOOLEAN


to this :


   java.lang.Boolean
   BIT
   BOOLEAN


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JBoss 4, Sybase ASA 9: datasource getConnection throwing ex

2005-06-10 Thread lmasters
I'm setting up JBoss 4 with Sybase ASA 9 and jconnect 5.  I created a 
sybase-ds.xml file and deployed it.  JBoss boots and connects to the Sybase DB 
(I can see the initial 10 connections), but when I try to log into my app, I 
get an exception coming from my datasource.getConnection() call.  The exception 
stack is:

2005-06-10 07:57:36,322 INFO  
[org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a 
connection for you.  Please close them yourself: [EMAIL PROTECTED]
java.lang.Exception: STACKTRACE
at 
org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:321)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:467)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:874)
at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:103)
at 
com.lognet.interfaces.DatabaseInterface.getDatabaseConnection(DatabaseInterface.java:127)
at 
com.lognet.interfaces.DatabaseInterface.getDatabaseConnection(DatabaseInterface.java:33)
at 
com.lognet.ejb.dispatcher.DispatcherBean.dispatch(DispatcherBean.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...


My ds xml file follows:


  | 
  |   sybasePool
  |   
jdbc:sybase:Tds:1.1.1.1:2638?ServiceName=DBNAME;CON=JBOSS
  |   com.sybase.jdbc2.jdbc.SybDriver
  |   xxx
  |   xxx
  |   40
  |   
org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
  | 
  |   
  |  Sybase
  |   
  | 
  | 

My java code is:

InitialContext ctx = new InitialContext();
  | DataSource ds = (DataSource) ctx.lookup("java:"+pool);
  | conn = ds.getConnection();  //EXCEPTION HERE


Please tell me I configured something wrong. 
Thanks.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Recieving message from queue when server and client both

2005-06-10 Thread miri
sorry guys, forget this...I've tried running client and server on different 
network and nodes and it works therebut I still dont know why it does not 
on my stuff:-)

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - logs on screen

2005-06-10 Thread ufa
Hi All
when i manually start JBoss, it gives me the log on screen in realtime. But 
when it is in service mode (deamon), the realtime log does not appear, just in 
the server.log. I wanted to have a screen with that realtime log even if the 
service is started automatically...
does someone know how can i do that for windows, or unix, or even better, for 
both? :D

Ufa

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: ClassCastException with EJBs

2005-06-10 Thread darranl
Have any of you read the links posted by Scott earlier in this thread?  

They may help you understand the problem without needing to roll back to 
earlier releases.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss Installation Problem

2005-06-10 Thread darranl
Have you installed an appropriate JDK and set the JAVA_HOME environment 
variable to point to the installed JDK?

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: #Entity Beans on Jboss 4.0.2#

2005-06-10 Thread feroz_ps
hye sve i thank u for giving ur precious help thank u a lot's .

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: ClassCastException with EJBs

2005-06-10 Thread DickP
I experienced the same problem on 4.0.2.  I rolled back to 4.0.1 (SP1) and it 
worked.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


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

2005-06-10 Thread soussou
Hi;

How to protect effectively the password (access to the database) into the Jboss 
config files (xml) ? 
For the moment I use a simple login module for encrypting a datasource password 
: http://www.jboss.org/wiki/Wiki.jsp?page=EncryptingDataSourcePasswords ?

I search another solution much more powerful !

Regards;

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - JBoss Installation Problem

2005-06-10 Thread IsmailFadal
Hi Friend

I have just download JBoss ' jboss-4.0.2.zip ' file. Then upzipped it into my C 
drive, ie C:\JBoss\jboss-4.0.2.

Then I tried to run bat file ' run.bat '  in bin directory.

I am getting following error :
the filename, directory name, or volume label syntax is incorrect.

Please could you help me to solve this problem.


Many thank
 


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Delaying the delivery of message from the Queue to an MD

2005-06-10 Thread schrouf
As there is no standard for scheduled message delivery, there is no real 
expected behaviour. 

Nevertheless your observed behaviour (scheduled messages get dropped if server 
restarts after schedule time) does not make sense to me unless you set 
(explicitly or implicitly) a message expiration time (which i guess you don't 
do).

Therefore I would consider this behaviour - if it's reproducible - as a bug, 
but having a quick view at the source code of BasisQueue.restoreMessage() I do 
not see one :-) 

Regards
Ulf

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Delaying the delivery of message from the Queue to an MD

2005-06-10 Thread schrouf
As there is no standard for scheduled message delivery, there is no real 
expected behaviour. 

Nevertheless your observed behaviour (scheduled messages get dropped if server 
restarts after schedule time) does not make sense to me unless you set 
(explicitly or implicitly) a message expiration time (which i guess you don't 
do).

Therefore I would consider this behaviour - if it's reproducible - as a bug, 
but having a quick view at the source code of BasisQueue.restoreMessage() I do 
not see one :-) 

Regards
Ulf

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - DuplicateKeyExecption and primary key generation

2005-06-10 Thread tomerbd2
Hi

I have 2 Jboss3.2.5 applications servers working in a cluster.
I'm using for primary key generation The pattern "sequence blocks" taken from 
the book ejb design patterns.
However when i have something like 5 threads that are trying to create new 
entities then i get DuplikateKeyException on the primary key.  (with only 1 
jboss server not in a cluster everything is fine).
I was wondering if anybody could help me pin out the problem, following is my 
code:

I estimated it might be an Isolation level problem, however i have updated the 
isolation level to be serializable in that way in mysql ds  and the problem 
still happend...

root
  | 
  | TRANSACTION_SERIALIZABLE
  | 


Sequence entity bean


  | package messaging_as.domain.util;
  | 
  | import javax.ejb.*;
  | 
  | import messaging_as.util.jmx.ConfigContainer;
  | 
  | abstract public class SequenceBean implements EntityBean {
  |   EntityContext entityContext;
  |   public java.lang.String ejbCreate(java.lang.String name) throws 
CreateException {
  | setName(name);
  | return null;
  |   }
  |   public void ejbPostCreate(java.lang.String name) throws CreateException {
  | 
setSIndex(ConfigContainer.getJMXPropertiesFacade().getSequenceSessionBeanStartIndex());
  |   }
  | 
  |   public void ejbRemove() throws RemoveException {
  |   }
  | 
  |   public abstract void setName(java.lang.String name);
  |   public abstract void setSIndex(int sIndex);
  |   public abstract java.lang.String getName();
  |   public abstract int getSIndex();
  |   public void ejbLoad() {
  |   }
  | 
  |   public void ejbStore() {
  |   }
  | 
  |   public void ejbActivate() {
  |   }
  | 
  |   public void ejbPassivate() {
  |   }
  | 
  |   public void unsetEntityContext() {
  | this.entityContext = null;
  |   }
  |   public void setEntityContext(EntityContext entityContext) {
  | this.entityContext = entityContext;
  |   }
  |   public int getValueAfterIncrementingBy(int blockSize) {
  | this.setSIndex(this.getSIndex()+ blockSize);
  | return this.getSIndex();
  |   }
  | }
  | 

sequence session bean


  | package messaging_as.domain.util;
  | 
  | import java.sql.Connection;
  | import java.sql.ResultSet;
  | import java.sql.SQLException;
  | import java.sql.Statement;
  | 
  | import javax.ejb.CreateException;
  | import javax.ejb.FinderException;
  | import javax.ejb.SessionBean;
  | import javax.ejb.SessionContext;
  | import javax.naming.Context;
  | import javax.naming.NamingException;
  | 
  | import messaging_as.domain.AlbumElementHome;
  | import messaging_as.domain.AlbumElementShareHome;
  | import messaging_as.domain.UserHome;
  | import messaging_as.service.exceptions.InternalException;
  | import messaging_as.util.jmx.JMXPropertiesFacade;
  | import messaging_as.util.sql.MASConnectionManager;
  | 
  | import org.apache.log4j.Category;
  | 
  | public class SequenceSessionBean implements SessionBean {
  |   SessionContext sessionContext;
  |   private Category _log;
  |   private class Entry {
  | Sequence sequence;
  | int last;
  |   };
  | 
  |   private java.util.HashMap _entries = new java.util.HashMap();
  |   private int _blockSize;
  |   private int _retryCount;
  |   private SequenceHome _sequenceHome;
  | 
  |   public void ejbCreate() throws CreateException {
  | _log = Category.getInstance(getClass());
  |   }
  | 
  |   public void ejbRemove() {
  | 
  |   }
  |   public void ejbActivate() {
  | 
  |   }
  |   public void ejbPassivate() {
  | 
  |   }
  | 
  |   public void setSessionContext(SessionContext sessionContext) {
  | this.sessionContext = sessionContext;
  | Context namingContext = null;
  | try {
  |   namingContext = new javax.naming.InitialContext();
  |   _blockSize = 
JMXPropertiesFacade.getInstance().getSequenceSessionBeanBlockSize();
  |   _retryCount = 
JMXPropertiesFacade.getInstance().getSequenceSessionBeanRetryCount();
  | 
  |   _sequenceHome = (SequenceHome) 
namingContext.lookup("SequenceLocalHome");
  | }
  | catch (NamingException e) {
  |   _log.error(e.getMessage(), e);
  | }
  |   }
  |   
  |   public void synch() throws InternalException {
  | Connection connection = null;
  | ResultSet resultSet = null;
  | Statement statement = null;
  | int maxObjectID = 0, maxUID = 0, maxShareID = 0;
  | try {
  |   connection = MASConnectionManager.getInstance().createConnection();
  |   
  |   String sql = "select max(" + AlbumElementHome.FIELD_NAME_OBJECT_ID + 
") maxObjectID from " + AlbumElementHome.TABLE_NAME;
  |   statement = connection.createStatement();
  |   _log.debug("SQL : " + sql);
  |   statement.execute(sql);
  |   resultSet = statement.getResultSet();
  |   if (resultSet.next()) {
  | maxObjectID = resultSet.getInt("maxObjectID");
  | _log.debug(String.valueOf(maxObjectID));
  |   }
  |   resultSet.close();
  |   statement.close();

[JBoss-user] [JBoss Portal] - Re: JBoss Portal RC2

2005-06-10 Thread [EMAIL PROTECTED]
these files are no longer needed because the portal create the tables on the 
fly when you install it and then it populates the tables.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: Dike's Bank example - build failed

2005-06-10 Thread bpcrao
Exactly  same problem, help :)

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - problem errorhandling

2005-06-10 Thread elmtheolm
hi,

I have to implement a doc/lit-webservice (B2B) for our order-system. Our 
order-system is based on servlets, ejb-components 
and jboss4. On basis of this application-environment we decided to implement 
the webservice as an ejb service endpoint.


To learn more about jbossws I created a little test-order-application (doing: 
xsd -> wsdl -> wscompile -> sessionbean -> delpoy).
Everything works fine, but I have problems with the errorhandling of the 
webservice! How should I propagate errors 
(e.g. runtimeexceptions, businessruleexceptions) to the ws-client? 

Here are my tries:

1. Try: Encapsulate all errors in the response message.

Here's the code-fragment for the orderresponse:
...
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | ...

Problem: wscompile throws an error: xsd:choice not supported???


2. Try: define one custom exception for the webservice: e.g. ServiceException 
and send these errors in a fault-message

Problem: I never saw fault-elements in a commercial webservice-wsdl like from 
amazon (http://soap.amazon.com/schemas3/AmazonWebServices.wsdl)? How do such 
webservice propagate their exceptions (e.g. businessruleexceptions like "wrong 
bank account number format") to the user?

 
How should I implement errorhandling for all exceptions for my "doc/lit-EJB 
Service Endpoint"? 

thanx elm

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Delaying the delivery of message from the Queue to an MD

2005-06-10 Thread pixel
Hi, could you confirm something for me please. 

When I put a message on the queue with a 30 min delay, and restart the server 
during that period, the messages still get delivered. I am using persistent 
messages for all tests.

When I put another message on the queue with a 30 min delay, and restart the 
server so that it only comes back up after the 30 mins the messages do not get 
delivered.  

This seems to make sense, the server is not delivering messages that have 
passed their delivery date, but I just want to confirm that this is the 
expected results, and if there is any way to prevent this. I don't want 
messages getting lost if the server is down when they are due to be delivered. 
I would rather they get sent late than not at all. 

Thanks

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - No rollback at shutdown

2005-06-10 Thread hartler
Hi!

I am using jboss-4.0.2 finalRelease.
I am calling a stateless session bean from a message-driven-bean (I tried the 
method in the stateless session bean with Required and RequiresNew as 
transaction type). The purpose of the stateless session bean is mainly putting 
data into the database.

When I try to shutdown the server while the stateless session bean is 
transferring data into the database, the session bean still tries to commit the 
data to the database but not the whole data is committed into the DB and no 
rollback is performed. The message driven bean seems to to think that it has 
finished because it does not restart after the restart of the server.

If I am calling the stateless session bean directly from an Struts-Action-Class 
and I perform the shutdown during the transaction the transaction is properly 
rolled back.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Problem creating standalone client

2005-06-10 Thread jaeger
Hi,

I am trying to create a standalone client, which accesses a JBoss server using 
a Session bean. In my simple example, I would basically try to use a Session 
bean's network-capabilities to call some method on the server and get the 
result back to the client.

I started with the Fibonacci tutorial found at JBossIDE. After some fiddling 
around, I got a working servlet example. So I tried to create a simple 
standalone client, which does the same as the servlet: connect to the Session 
bean, call a method and display the result. All this from the commandline, so I 
can use System.out.writeln() for output.

This standalone client works great when I start it on the same machine where 
also the JBoss server is running.

Starting it on a different machine, however, does not work. It seems the 
program always tries to connect to localhost (127.0.0.1), but of course there 
is no JBoss server answering.

Using tcpdump, I found that the program is in fact connecting to the remote 
JBoss server first, and some data is exchanged, but afterwards it tries to 
connect to localhost.

Maybe I have a conceptual problem here: can I lookup a Session bean on a remote 
server and use it, without having a JBoss server also running on the local 
machine?

I would be glad for any hint, as I spent more that a day now trying to find 
what's wrong here, and I am sure it is only a very small detail I am missing.

Thanks,

Christoph Jäger

P.S.: Just for completeness, I am using JBoss 4.0.1sp1 on a Fedora Linux 
machine, Java5.0, and the machine I am trying to run my client from is a 
Windows machine, also Java5.0.

Here is the source code of my client program:


  | package tutorial.text;
  | 
  | import java.io.IOException;
  | 
  | import javax.naming.Context;
  | import javax.naming.InitialContext;
  | import javax.rmi.PortableRemoteObject;
  | 
  | import tutorial.interfaces.Fibo;
  | import tutorial.interfaces.FiboHome;
  | 
  | public class ComputeMain {
  | 
  | private FiboHome home;
  | 
  | public static void main(String[] args) throws IOException {
  | 
  | ComputeMain main = new ComputeMain();
  | main.run(50);
  | }
  | 
  | public ComputeMain() {
  | try {
  | Context context = new InitialContext();
  | Object ref = context.lookup("ejb/Fibo");
  | home = (FiboHome) PortableRemoteObject.narrow(ref, 
FiboHome.class);
  | } catch (Exception e) {
  | System.err.println("Lookup of java:/comp/env/ failed");
  | e.printStackTrace();
  | }
  | }
  | 
  | protected void run(int limit) {
  | 
  | double[] result=null;
  | 
  | 
  | try {
  | Fibo bean = home.create();
  | result = bean.compute(limit);
  | bean.remove();
  | } catch (Exception e) {
  | System.err.println("Call of bean.compute() failed");
  | e.printStackTrace();
  | return;
  | }
  | 
  | System.out.println("got result:");
  | for (int i=0;ihttp://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881053#3881053

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss4.0.2 + Oracle9i configration problem (Any successf

2005-06-10 Thread ourai
I will share my configration below, if anybody know some information about the 
error messages, plese response me. 

1. remove the default hsqldb.
$ cd JBOSS_HOME/server/default/deploy
$ rm hsqldb-ds.xml
$ cd ./jms
$ rm hsqldb-jdbc*
$ cd ../../lib
$ rm hsqldb-plugin.jar hsqldb.jar

2. add the oracle9i datasource.
$ cd default/deploy
$ cp JBOSS_HOME/docs/examples/jca/oracle-ds.xml ./
$ emacs oracle-ds.xml

  | 
  |   
  | DefaultDS
  | 
jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:ORCL9i
  | oracle.jdbc.driver.OracleDriver
  | testid
  | testpassword
  | .
  | 
$ cd ./jms
$ cp JBOSS_HOME/docs/examples/jms/oracle-jdbc2-service.xml ./

3. copy the oracle9i jdbc driver
$ cd JBOSS_HOME/server/default/lib
$ cp xxx/classes12.zip ./

4. change the data type mapping
$ cd JBOSS_HOME/server/default/conf
$ emacs standardjaws.xml

  | 
  |java:/DefaultDS
  |Oracle8
  |false
  | ...
  | 
$ emacs standardjbosscmp-jdbc.xml

  | 
  |
  |   java:/DefaultDS
  |   Oracle9i
  | .. 
  | 

5. other setting for j2ee(maybe it is not necessary.)
$ cd JBOSS_HOME/server/default/conf
$ emacs jboss-service.xml

  | .
  | 
  |
  |   
  |   true
  | 
  | .
  | 
  |
  |
  |   true
  |
  | 
  | .
  | 
$ cd ../deploy
$ emacs ear-deployer.xml

  | 
  |
  |
  |   
  |   true
  |   
  |   true
  |
  | 
  | 


This is all of my configrations. waitting for your response.


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Delaying the delivery of message from the Queue to an MD

2005-06-10 Thread schrouf
A queue is not an active comsumer, it's just a passiv data storage. Message 
consumation is always initiated by a JMS client via receive call.

The fact that there are unconsumed messages in the file store that do not get 
properly forwarded to your MDB (this is the active JMS receiver) might indicate 
a message restore to queue problem on server restart.

You should turn on log4j debug/trace output for the JBoss MQ subsystem 
(org.jboss.mq) and have a look into your server.log file on server startup. 
Check the log output for your queue deployment. There you should find some 
information - hopefully - about the actual count of restored messages. 

BTW: Have your tried to use a JMS JDBC persistence manager configuration. This 
is much more reliable than usage of the file based JMS persistence manager.

Regards
Ulf

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: ClassCastException with EJBs

2005-06-10 Thread ccalvo
Hi all,

I have the same problem. It's works with JBoss 3.2.7, but fails when I deploy 
in JBoss 4.0.2. 

What is the problem? I'm new in this environment.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


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

2005-06-10 Thread Alexandre Gacon
Hi,

Our client want us to try to use JBoss 4.0.2 instead of JBoss 3.2.3 for our 
application server.

Our main application on the server delegates some of the operations to C++ libs 
with the use of the JNI. The whole things work well with JBoss 3.2.3.

I tried to use the default server of JBoss 4.0.2 with our application. The 
server can be deployed without problem, our EAR application is also deployed 
and can find our C++ lib. But when executing some commands on the server, the 
application can not found the native methods.

Can you help me ?

Alexandre Gacon
www.masagroup.net

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - JBoss4.0.2 + Oracle9i configration problem (Any successful p

2005-06-10 Thread ourai
I am challenging to build a  JBoss4.0.2 + Oracle9i Application server, all of 
my *.war and *.ear files can be deployed in my configration and everything 
LOOKS like running well but,,, some error message of MBeans comes everytime 
when I start the JBoss server. Here is my server starting log :


  | ==
  | JBoss Bootstrap Environment
  | JBOSS_HOME: /export/home/jdev/develop/MASS/jboss
  | JAVA: /usr/java/bin/java
  | JAVA_OPTS: -server -Xms256M -Xmx512M -Dprogram.name=run.sh 
-Dmegabatch.home=/export/home/jdev/develop/MASS/projects/Mega
  | CLASSPATH: 
/export/home/jdev/develop/MASS/jboss/bin/run.jar:/usr/java/lib/tools.jar
  | ==
  | 16:52:32,845 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 16:52:32,852 INFO  [Server] Release ID: JBoss [Zion] 4.0.2 (build: 
CVSTag=JBoss_4_0_2 date=200505022023)
  | 16:52:32,854 INFO  [Server] Home Dir: /space/jdev/app-3/jboss-4.0.2
  | 16:52:32,855 INFO  [Server] Home URL: file:/space/jdev/app-3/jboss-4.0.2/
  | 16:52:32,856 INFO  [Server] Library URL: 
file:/space/jdev/app-3/jboss-4.0.2/lib/
  | 16:52:32,861 INFO  [Server] Patch URL: null
  | 16:52:32,862 INFO  [Server] Server Name: default
  | 16:52:32,863 INFO  [Server] Server Home Dir: 
/space/jdev/app-3/jboss-4.0.2/server/default
  | 16:52:32,865 INFO  [Server] Server Home URL: 
file:/space/jdev/app-3/jboss-4.0.2/server/default/
  | 16:52:32,866 INFO  [Server] Server Data Dir: 
/space/jdev/app-3/jboss-4.0.2/server/default/data
  | 16:52:32,867 INFO  [Server] Server Temp Dir: 
/space/jdev/app-3/jboss-4.0.2/server/default/tmp
  | 16:52:32,868 INFO  [Server] Server Config URL: 
file:/space/jdev/app-3/jboss-4.0.2/server/default/conf/
  | 16:52:32,869 INFO  [Server] Server Library URL: 
file:/space/jdev/app-3/jboss-4.0.2/server/default/lib/
  | 16:52:32,870 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 16:52:32,885 INFO  [Server] Starting General Purpose Architecture (GPA)...
  | 16:52:35,629 INFO  [ServerInfo] Java version: 1.5.0_03,Sun Microsystems Inc.
  | 16:52:35,630 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
1.5.0_03-b07,Sun Microsystems Inc.
  | 16:52:35,632 INFO  [ServerInfo] OS-System: SunOS 5.8,sparc
  | 16:52:41,153 INFO  [Server] Core system initialized
  | 16:53:01,304 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:log4j.xml
  | 16:53:02,201 INFO  [WebService] Using RMI server codebase: 
http://jakky:8083/
  | 16:53:03,760 INFO  [NamingService] Started jndi bootstrap jnpPort=1099, 
rmiPort=1098, backlog=50, bindAddress=/0.0.0.0
  | , Client SocketFactory=null, Server [EMAIL PROTECTED]
  | 16:53:48,379 INFO  [Embedded] Catalina naming disabled
  | 16:53:53,795 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on 
http-0.0.0.0-8080
  | 16:53:53,807 INFO  [Catalina] Initialization processed in 4327 ms
  | 16:53:53,898 INFO  [StandardService] Starting service jboss.web
  | 16:53:53,920 INFO  [StandardEngine] Starting Servlet Engine: Apache 
Tomcat/5.5.9
  | 16:53:54,254 INFO  [StandardHost] XML validation disabled
  | 16:53:54,815 INFO  [Catalina] Server startup in 1007 ms
  | 16:53:56,228 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, 
warUrl=file:/space/jdev/app-3/jboss-4.0.2/server/default
  | /deploy/http-invoker.sar/invoker.war/
  | 16:53:58,762 INFO  [WebappLoader] Dual registration of jndi stream handler: 
factory already defined
  | 16:54:04,407 INFO  [TomcatDeployer] deploy, ctxPath=/ws4ee, 
warUrl=file:/space/jdev/app-3/jboss-4.0.2/server/default/t
  | mp/deploy/tmp35308jboss-ws4ee.war/
  | 16:54:07,249 INFO  [TomcatDeployer] deploy, ctxPath=/, 
warUrl=file:/space/jdev/app-3/jboss-4.0.2/server/default/deploy
  | /jbossweb-tomcat55.sar/ROOT.war/
  | 16:54:13,128 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, 
warUrl=file:/space/jdev/app-3/jboss-4.0.2/server/
  | default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
  | 16:54:45,304 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, 
warUrl=file:/space/jdev/app-3/jboss-4.0.2/server/def
  | ault/deploy/management/console-mgr.sar/web-console.war/
  | 16:54:52,773 INFO  [MailService] Mail Service bound to java:/Mail
  | 16:54:58,893 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/space/jdev/app-3/jboss
  | -4.0.2/server/default/deploy/jboss-ha-local-jdbc.rar
  | 16:55:01,263 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/space/jdev/app-3/jboss
  | -4.0.2/server/default/deploy/jboss-ha-xa-jdbc.rar
  | 16:55:03,484 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/space/jdev/app-3/jboss
  | -4.0.2/server/default/deploy/jboss-local-jdbc.rar
  | 16:55:05,654 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/space/jdev/app-3/jboss
  | -4.0.2/server/default/deploy/jboss-xa-jdbc.rar
  | 16:55:08,192 INFO  [RARDeployment] Required license terms exist view the

[JBoss-user] [JBoss Portal] - Re: JBoss Portal RC2

2005-06-10 Thread denevito
Hi,

I tried to install teh JBoss Portal, but I did not manage to do it, because I 
could not download the setup.ddl for MySQL and cms-content.xml files. Is there 
anyone, who knows how I can get these files?

Thanks a lot!
Andras

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Server flag of the VM

2005-06-10 Thread Olli_Ger
Hello,

I have a question regarding to the server-flag of the VM. (-server)
Why is this flag not set by default in the run-Startscripts?
I thought that this flag would optimize the VM for long-running tasks. (e.g. in 
an Application-Server)

Any answers would be appreciated.

Thanks,

Oliver


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - How to create dependency on a WEB-Module (WAR)

2005-06-10 Thread thl-mot
Hi,
I'd like to create a MBeanService (packaged in a sar module) that depends on a 
web-module.
As described in http://www.jboss.org/index.html?module=bb&op=viewtopic&t=38976 
I added the dependecy. 
Under JBoss 4.0.2 this does not work.  I always get a message similar to:
MBean waiting for other MBean ...

When looking into jmx-console the appropriate (web-module) mbean is registered, 
but its state never changes to started, although the web-module can be accessed 
by the web browser. 
Will the state ever change to started by jboss? 
When manually starting this WEB-MBean my service gets startet.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: Client should not connect to the Remote JBoss server on

2005-06-10 Thread veerala_in
Well , I got the solution.

we need to add 

env.put("jnp.disableDiscovery","true");

at the time of looking up for InitialContext  where env is the parameter in 
context = new InitialContext(env);



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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Changing database structure

2005-06-10 Thread jim168
OS: Windows 2000
JBoss:4.0.2
EJB3.0:Preview 5
hibernate.hbm2ddl.auto=update

no matter alter-table is set or not:
when there is a property added in entity bean, there is a field added. :)
when there is a property deleted in entity bean, nothing changed in db table. :(

Is that a issue not implemented yet and called EJBTHREE-176?

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Receiving error message : Node not found

2005-06-10 Thread [EMAIL PROTECTED]
This is just a warning, nothing to worry about.
Okay, I'll change the WARN --> TRACE...

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user