[JBoss-user] [EJB 3.0] - Re: ClassCastException after return entity from slsb method

2006-04-24 Thread didi
it did. THANKS ALOT!

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - catching exception after duplicate persist (Hibernate)

2006-04-24 Thread didi
Hi,

I am using EJB3.0 and the integrated EntityManager from Hibernate to persist a  
UserEntityBeans with the username as unique column. Whenever I insert the same 
username the second time, I always get an exception


  | 17:38:08,182 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 17:38:08,182 ERROR [JDBCExceptionReporter] failed batch
  | 17:38:08,183 ERROR [AbstractFlushingEventListener] Could not synchronize 
database state with session
  | org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch 
update
  | at 
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:230)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
  | at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:196)
  | at 
org.jboss.ejb3.entity.InjectedEntityManager.flush(InjectedEntityManager.java:166)
  | at 
de.uni_mannheim.informatik.swt.ejb.user.UserFacadeBean.addUser(UserFacadeBean.java:24)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
  | at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:178)
  | at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74)
  | at $Proxy90.addUser(Unknown Source)
  | at 
de.uni_mannheim.informatik.swt.struts.action.user.UserAddSaveAction.execute(UserAddSaveAction.java:27)
  | at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
  | at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
  | at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.Applicat

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Automatically Generating Keys

2006-04-12 Thread didi
if you use EJB3.0 its just as simple as putting the following annotations above 
the primary key:
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - equivalent to @Id(generate = GeneratorType.NONE)

2006-04-11 Thread didi
Hi,

I am using the EJB3.0 stuff with JBoss 4.0.4RC1. Even though I looked at the 
available migration guides, I could not find a proper answer. In the 4.0.3 
Version I used

  | @Id(generate = GeneratorType.NONE)
  | public String getUsername() {
  | return this.username;
  | }
  | 
in order to allow the user to chose its own username. It should not get 
generated automatically. Since version 4.0.4 it does not seem to work any 
longer. Now here is my question: what is the equivalent (Hibernate) annotation 
for this? I know that you need to use @GeneratedValue for this now, but none of 
its strategies (strategy=GenerationType.XYZ) fulfill my purpose.

Thanks in advance

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - ClassCastException after return entity from slsb method with

2006-03-27 Thread didi
Hi!

I am using EJB 3 quite a while and with JBoss 4.0.3SP1 everything was working 
fine. So I updated to 4.0.4RC1... well here is my question: I have an pretty 
simple stateless session bean with a method

  | public UserEntityBean findUserByUsername(String username) {
  | UserEntityBean user = em.find(UserEntityBean.class, username);
  | System.out.println(user);
  | System.out.println(user.getUsername());
  | System.out.println(user.getPassword());
  | System.out.println(user.getEmail());
  | return user;
  | }
  | 
When I call this method from within a struts action via

  | InitialContext ctx = new InitialContext();
  | UserFacadeLocal facade = (UserFacadeLocal) 
ctx.lookup("um/UserFacadeBean/local");
  |  System.out.println(facade.findUserByUsername(username));
  | 
I get the following exception

  | 10:09:44,265 ERROR [STDERR] java.lang.ClassCastException: 
neu.ejb.UserEntityBean
  | 10:09:44,266 ERROR [STDERR] at $Proxy73.findUserByUsername(Unknown 
Source)
  | 10:09:44,266 ERROR [STDERR] at 
neu.struts.action.UserAddAction.execute(UserAddAction.java:36)
  | 10:09:44,267 ERROR [STDERR] at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  | 10:09:44,267 ERROR [STDERR] at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  | 10:09:44,267 ERROR [STDERR] at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | 10:09:44,267 ERROR [STDERR] at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
  | 10:09:44,267 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  | 10:09:44,269 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 10:09:44,269 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 10:09:44,269 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 10:09:44,269 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 10:09:44,269 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 10:09:44,269 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 10:09:44,270 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 10:09:44,270 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 10:09:44,270 ERROR [STDERR] at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
  | 10:09:44,270 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
  | 10:09:44,270 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 10:09:44,270 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 10:09:44,271 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 10:09:44,271 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 10:09:44,271 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 10:09:44,271 ERROR [STDERR] at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
  | 10:09:44,271 ERROR [STDERR] at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
  | 10:09:44,271 ERROR [STDERR] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 10:09:44,272 ERROR [STDERR] at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 10:09:44,272 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
  | 
In jira I found something similiar 
http://jira.jboss.com/jira/browse/EJBTHREE-174 but there no solution is posted 
there. And as posted there using 

  | public Collection getAllUser() {
  | return em.createQuery("from UserEntityBean u").getResultList();
  | }
  | 
works fine.

I hope someone can help me. Thanks!

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding 

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Struts Exception

2006-02-23 Thread didi
the field names in the html form have to much the attribute names in the Struts 
form

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


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

2006-02-22 Thread didi
or use screen as a quick (&dirty) solution

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: How do you turn off clustering?

2006-02-22 Thread didi
in tc5-cluster-service.xml you can change the broadcasting attribute to false


http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925597#3925597

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - members shown even with DicoveryDisable set to true

2006-01-02 Thread didi
Hi,

I want to disable all caching and all clustering functionality of JBoss 
4.0.3SP1 (ran the installer and chose ejb3), to be able to run different JBoss 
servers and to develop software locally. Therefore, I changed in 
cluster-service.xml

  
  true

and in ejb3-entity-cache-service.xml, ejb3-clustered-sfsbcache-service.xml, and 
tc5-cluster-service.xml the CacheMode attribute to LOCAL. Unfortunatelly, after 
a re-start neither change seemed to work. I also get the following message

14:00:49,767 INFO  [DefaultPartition] New cluster view for partition 
DefaultPartition: 115 ([192.168.88.89:1099, 192.168.92.13:1099, 
192.168.88.81:1099, 192.168.87.231:1099] delta: -1)
14:00:49,773 INFO  [DefaultPartition] I am (192.168.87.231:1099) received 
membershipChanged event:
14:00:49,774 INFO  [DefaultPartition] Dead members: 1 ([192.168.88.74:1099])
14:00:49,774 INFO  [DefaultPartition] New Members : 0 ([])
14:00:49,774 INFO  [DefaultPartition] All Members : 4 ([192.168.88.89:1099, 
192.168.92.13:1099, 192.168.88.81:1099, 192.168.87.231:1099])
14:01:31,117 INFO  [DefaultPartition] New cluster view for partition 
DefaultPartition: 116 ([192.168.88.89:1099, 192.168.92.13:1099, 
192.168.88.81:1099, 192.168.87.231:1099, 192.168.88.74:1099] delta: 1)
14:01:31,117 INFO  [DefaultPartition] I am (192.168.87.231:1099) received 
membershipChanged event:
14:01:31,118 INFO  [DefaultPartition] Dead members: 0 ([])
14:01:31,118 INFO  [DefaultPartition] New Members : 1 ([192.168.88.74:1099])
14:01:31,118 INFO  [DefaultPartition] All Members : 5 ([192.168.88.89:1099, 
192.168.92.13:1099, 192.168.88.81:1099, 192.168.87.231:1099, 
192.168.88.74:1099])

which - as I interpret it - shows that I am (192.168.87.231) still in the 
cluster.

What did I miss? (or were my changes useless?) 

Thanks in advance!

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: question to bug fix to

2005-06-16 Thread didi
"[EMAIL PROTECTED]" wrote : 
  | Now that said, wscompile has issues with document/literal and will always 
wrap parameters (even if there is only one parameter). So, don't rerun 
wscompile because it will attempt to rewrap your wrapper object.
  | 

that is the behaviour that I expected to happen :-/

What do you suggest to do? Can provide a step by step explanaion?

1. create regular interface without wrapper object
2. run wscompile on the interface (from 1)
3.  create interface with the wrapper objects
4. ??? (how do you get an adjusted .wsdl file according to the used wrapper 
objects?

Am I wrong or missing something?

Thanks!

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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - question to bug fix to

2005-06-15 Thread didi
Hi everybody,

I follow the step under 
http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDOCServiceStepByStep
wrote the code, compiled everything and deployed it. I get the "The operation 
desciption was not synchronized" message as written in the tutorial.

The bug fix states to re-write the interface to prevent to appeared problem. 
But since the interface changed do I have to run wscompile again pointing to 
the new interface? As far as I understood the whole thing, the classes used in 
the changed interface came from the wscompile run on the old/first unchanged 
interface. 

Thans in advance

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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Exception: The OperationDesc for myMethod was not synchr

2005-06-15 Thread didi
the bug and its fix are described in
http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDOCServiceStepByStep


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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: JBossWS and C# Interoperability

2005-03-23 Thread didi
thanks a lot md5georg, I got my webservice working ... well at least the 
namespace error message is not coming up anymore. But: I tried 
http://www.soapclient.com/soapTest.html to interact with my webservice and 
another error is coming up. Even though I followed the jboss tutorial and the 
JAXRPC- as well as the DII client are working I am not sure if it works with 
other programming languages. Does someone know an online-soap client (like the 
one mentioned above) or does someone know a soap client which I can just 
download, install and use? It should not be a java client and preferebly should 
be for Windows. Thanks in advance!

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

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


---
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: JBossWS and C# Interoperability

2005-03-22 Thread didi
I am experiencing the same problem ("Namespace URI cannot be null") and I tried 
to create a webservice using the jboss documentation 
(http://docs.jboss.org/jbossas/jboss4guide/r2/html/ch12.html). I also used the 
recommended wscompile over AXIS Java2WSDL... 

I am using JDK1.5.0_01 with jboss-4.0.1sp1 on a SuSE 9.2 linux. If it helps you 
I could post the exception shown in the jboss log.

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

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


---
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Getting the logged on user info

2005-01-08 Thread didi
I am having the same problem: request.getUserPrincipal() is null in my jsp even 
when I am authenticated sucessfully. I am using a simple jsp to understand the 
whole JAAS stuff but where do I have to change the "security-constraint" you 
mentioned?

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

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


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Using hypersonic for PKGen when it should be using Postg

2005-01-07 Thread didi
the problem with "table not found" happened for me too but I am using 
hypersonic sql (defaultDS).
I try to setup JAAS and I am already fail with the database itself :-(

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

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


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: how to add/remove data from many-to-many CMR?

2004-07-11 Thread didi
can you give me a paragraph number please? 

10.3.4 explains removing from a relationship. As far as I understood it you just have 
to entityBean2.remove() and entityBean2 gets removed from the relationship of 
entityBean1 (suggest there was a relationship between entityBean1 and entityBean2). Is 
that right?

adding should be done with entityBean1.getEntityBean2s().add(entityBean2); But what do 
I actually add: the ValueObject or the (Local)Interface?

tnx anyway

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

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


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - how to add/remove data from many-to-many CMR?

2004-07-09 Thread didi
Hi,

I set up a m-n bi-directional CMR relationship with XDoclet (with some little help 
from http://www.jboss.org/index.html?module=bb&op=viewtopic&t=41050). 


So, my UserEntityBean looks like: 

/**
 * @ejb.interface-method
 *
 * @ejb.relation
 *   name = "user-role"
 *   role-name = "user-has-roles"
 *
 * @jboss.relation-table
 *   table-name="UserRoleRelation"
 *
 * @jboss.relation
 *   fk-column = "fk_rolename"
 *   related-pk-field = "rolename"
 *
 * @jboss.relation-mapping
 *   style = "relation-table"
 */
public abstract Collection getRoles();
public abstract void setRoles(Collection roles);



and my RoleEntityBean looks like:
/**
 * @ejb.interface-method
 *
 * @ejb.relation
 *   name="user-role"
 *   role-name="role-has-users"
 *
 * @jboss.relation-table
 *   table-name="UserRoleRelation"
 *
 * @jboss.relation
 *   fk-column="fk_username"
 *   related-pk-field="username"
 *
 * @jboss.relation-mapping
 *   style="relation-table"
 */
public abstract Collection getUsers();
public abstract void setUsers(Collection users);



I think it is working... ok, at least JBoss does not complain while deploying.

But how do I actually add a Role to a User? And how do I again remove it? 
Can someone provide me with some kind of code example?




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

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


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Problem deploying CMR (2)

2004-05-31 Thread didi
what would be the equivalent XDoclet tags for that?

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

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



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Possible JBoss Bug. Please suggest.

2004-05-31 Thread didi
can someone provide a correct, working XDoclet example for a 1-N CMR?
That would be great. tnx

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

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



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: adding record to CMR field

2004-05-30 Thread didi
may I send you an email with the LectureEntityBean.java? I am not getting it (I bet it 
is just a little, small thing..) even though I did everything you said

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

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



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: adding record to CMR field

2004-05-29 Thread didi
I am using j2sdk1.4.2_03/ and xdoclet-1.2.1/ but I am bound to 
jboss-3.0.7_jakarta-tomcat-4.1.24/

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

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



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: adding record to CMR field

2004-05-29 Thread didi
Here is ejb-jar.xml:


http://java.sun.com/dtd/ejb-jar_2_0.dtd";>



   
   Generated by XDoclet

   

  

 

  
  
 
 Question Entity Bean

 QuestionEntity

 de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntityHome
 de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntity
 
de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntityLocalHome
 de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntityLocal

 
de.unimannheim.wifo3.cobana.ejb.prototype.entity.QuestionEntityCMP
 Container
 
de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.QuestionEntityPK
 False
 2.x
 QuestionEntity
 

id
 
 

headline
 
 

description
 
 

answertype
 
 

answers
 

 

   findAll
   
   


 
 

   findByAttributes
   
  java.lang.String
  java.lang.String
  int
  java.lang.Object
   


 
  
  

  
 
 Lecture Entity Bean

 LectureEntity

 de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntityHome
 de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntity
 
de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntityLocalHome
 de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntityLocal

 
de.unimannheim.wifo3.cobana.ejb.prototype.entity.LectureEntityCMP
 Container
 
de.unimannheim.wifo3.cobana.ejb.prototype.interfaces.LectureEntityPK
 False
 2.x
 LectureEntity
 

id
 
 

headline
 
 

description
 
 

questions
 

 

   findAll
   
   


 
 

   findByAttributes
   
  java.lang.String
  java.lang.String
  java.util.Collection
   


 
  
  



 

  
 

   

   
   
  
 idLectureQuestion

 

each-lecture-has-a-lot-of-questions
One

   LectureEntity


   questions
   java.util.Collection

 

 

a-lot-of-questions-belong-to-one-lecture
Many

   QuestionEntity

 

  
 
   

   
   
 

   

   
   
  
 QuestionEntity
  *
   
   Required

   
  
 LectureEntity
  *
   
   Required


   
   




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

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



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: adding record to CMR field

2004-05-29 Thread didi
everything is generated by xdoclet. 

Here is jbosscmp-jdbc.xml:



http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>


   
 java:/DefaultDS
 Hypersonic SQL
   

   

 

  
 QuestionEntity
 true
 true

 QuestionTable

 
id
id


 
headline
headline


 
description
description


 
answertype
answertype


 
answers
answers



  

  
 LectureEntity
 true
 true

 LectureTable

 
id
id


 
headline
headline


 
description
description


 
questions
questions



  

   

  


  idLectureQuestion

  

  
  
each-lecture-has-a-lot-of-questions
  
 
   id
   questions
 
  

  
  
  
a-lot-of-questions-belong-to-one-lecture
  

  

  
  




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

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



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: adding record to CMR field

2004-05-29 Thread didi
which method should have "both" interfaces: addQuestion or getQuestions?

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

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



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - adding record to CMR field

2004-05-29 Thread didi
Hi everybody,

I have to EJB with 1-N CMR field (properly configured with xdoclet). 

/**
 * @ejb:persistent-field
 *
 * @ejb:relation name="idLectureQuestion"
 *   role-name="each-lecture-has-a-lot-of-questions"
 *   target-ejb="QuestionEntity"
 *   target-role-name="a-lot-of-questions-belong-to-one-lecture"
 *   target-multiple="no"
 *
 * @jboss:target-relation related-pk-field="id"
 *fk-column="questions"
 *
 * @jboss:column-name name="questions"
 */
public abstract Collection getQuestions();

public abstract void setQuestions(Collection questions);



now I tried to add a new Question to this field. So I created a new method in this EJB 
file which looks like that

/**
 * @ejb:interface-method view-type="remote"
 */
public void addQuestion(QuestionEntity question) {
this.getQuestions().add(question);
}

But it is not working. I have the feeling that the new record is added to the 
Collection but it is somehow not written back to the bean.
I remeber that I read something about just working with LocalInterfaces but I can not 
find the text again.

What am I missing? Whats the point?

thanks in advance

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

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



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - CMR with xdoclet for jboss

2004-05-11 Thread didi
Hi everybody!

I thought I would never use hypersonic sql as db but now I have to :-/

A short description of my situation:
I have a QuestionEntityBean and a AnswerEntityBean. It is obvious the ONE Question can 
have MANY Answers. So I defined  

/**
 * @ejb:persistent-field
 * @ejb:pk-field
 *
 * @jboss:column-name name="id"
 */
public abstract int getId();

public abstract void setId(int id);

 /**
 * @ejb:persistent-field
 *
 * @ejb:relation name="idAnswerQuestion"
 *   role-name="each-question-has-a-lot-of-answers"
 *   target-multiple="no"
 *
 * @jboss:target-relation related-pk-field="id"
 *fk-column="answers"
 * 
 * @jboss:column-name name="answers"
 */
public abstract Collection getAnswers();

public abstract void setAnswers(Collection answers);



with xdoclet in the QuestionEntityBean. My AnswerEntityBean looks like this: 

   /**
 * @ejb:persistent-field
 * @ejb:pk-field
 *
 * @ejb:relation name="idAnswerQuestion"
 *   role-name="a-lot-of-answers-belong-to-one-question"
 *   target-multiple="yes"
 * 
 *
 * @jboss:column-name name="id"
 */
public abstract int getId();

public abstract void setId(int id);

(ok at the moment they are still stupid but it is just to get the CMR running).
Everything compiles but JBoss comlains

22:19:44,676 WARN  [ServiceController] Problem starting service 
jboss.j2ee:jndiName=ejb/cobana/AnswerEntity,service=EJB
org.jboss.deployment.DeploymentException: Atleast one role of a foreign-key mapped 
relationship must have key fields (or  is missing from ejb-jar.xml): 
ejb-relation-name=idAnswerQuestion

I see the point that the mapping is missing in my ejb-jar.xml

   
   
  
 idAnswerQuestion

 

a-lot-of-answers-belong-to-one-question
Many

   AnswerEntity


   id

 

 

each-question-has-a-lot-of-answers
One

   QuestionEntity


   answers
   java.util.Collection

 

  
   

but I have no clue how to configure it with xdoclet (or is it another bug?). 

Does someone had the same problem? Can someone help me? 

THANKS IN ADVANCE

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

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


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JMS: Late cleanup of threads with UIL2ConnectionFactory

2003-12-19 Thread Didi Posselt
Hi folks,

If I create QueueConnections with a UIL2ConnectionFactory, a new thread
seems to be generated for this QueueConnection. However, if I close this 
QueueConnection, the thread seems to live for another minute or so.

I'm running a linux box with JDK-1.4.2 and JBoss-3.2.3RC1.

I guess this is due to the PingPeriod of 6 in uil2-service.xml, however,
since I close the QueueConnection I expect the thread to disappear
immediately.

I wrote a stand alone graphical tool to manage our jms queues and messages
on the server. I got OutOfMemory-failures on the server pretty often and I 
quess this is bound to the extra threads since sometimes I create 
QueueConnections for any message in the queue (e.g. to resend messages 
from the  DLQ to the original destination, which might be different for the
messages).

I wrote a small example application which easily shows the bug (or is this a
feature?).

posselt in pingu (164) [0] > cat UIL2Bug.java
import java.util.Properties;

import javax.naming.InitialContext;

import javax.jms.QueueConnection;
import javax.jms.QueueConnectionFactory;

public class UIL2Bug {


public static void main(String args[]) {
Properties properties;
InitialContext jndiContext;
QueueConnectionFactory queueFactory;
QueueConnection queueConnection;
int i;

queueConnection = null;

if (args.length!=1) {
System.out.println("USAGE: java UIL2Bug ");
System.exit(-1);
}

properties = new Properties();
properties.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
properties.setProperty("java.naming.provider.url", args[0]);

try {
jndiContext = new InitialContext(properties);

queueFactory = (QueueConnectionFactory)
jndiContext.lookup("UIL2ConnectionFactory");

for (i=0; i<500; i++) {
queueConnection = queueFactory.createQueueConnection();
queueConnection.close();
queueConnection = null;
}

} catch (Exception ex) {
System.out.println("Exception while browsing the queue: " +
ex.getMessage());
}

if (queueConnection!=null) {
try {
queueConnection.close();
} catch (Exception ex) {
System.out.println("Warning: Exception while closing
queueConnection: " + ex.getMessage());
}
}
}


}
posselt in pingu (165) [0] > setenv CLASSPATH
${HOME}/jboss/jboss-src/jboss-3.2.3RC1-src/build/output/jboss-3.2.3RC1/client/jbossall-client.jar:.
posselt in pingu (166) [0] > javac UIL2Bug.java
posselt in pingu (167) [0] > echo -n "TIME: `date +'%H:%M:%S'`  THREADS: " ;
ps -ef | grep org.jboss | wc -l
TIME: 09:54:51  THREADS: 100
posselt in pingu (168) [0] > java UIL2Bug localhost:1099
posselt in pingu (169) [0] > echo -n "TIME: `date +'%H:%M:%S'`  THREADS: " ;
ps -ef | grep org.jboss | wc -l
TIME: 09:55:04  THREADS: 673
posselt in pingu (170) [0] > echo -n "TIME: `date +'%H:%M:%S'`  THREADS: " ;
ps -ef | grep org.jboss | wc -l
TIME: 09:55:50  THREADS: 674
posselt in pingu (171) [0] > echo -n "TIME: `date +'%H:%M:%S'`  THREADS: " ;
ps -ef | grep org.jboss | wc -l
TIME: 09:56:04  THREADS: 100
posselt in pingu (172) [0] > 


Grtngs,
Dietmar

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net




---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JMS implementation question

2003-12-05 Thread Didi Posselt
Hi,

>From the behaviour of the JMS implementation of JBoss 3.2.x I assume, that
JBoss
holds an in memory index of all JMS messages in all queues, no matter
whether
they are persistet in files or an RDBMS. Is this true?

Even with setting the MessageCache to low values we encounter OutOfMemory
errors if we have too many messages in the JBoss queues. Also the time for
starting up JBoss increases with the number of messages in the queues.

Since we work with several hundred thousand messages a day, a system failure
during the weekend might fill the queues and causes OutOfMemories in JBoss.
The worst thing is, that JBoss won't start until the size of the queues is
reduced (e.g. by moving messages in the file system).

Thanks, Dietmar

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net




---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] (no subject)

2003-12-05 Thread Didi Posselt
Hi folks,

I tried the new JBoss-3.2.3 and found a problem with a non standard
partition name.
For our project we use XXXPartition as partition name. After searching
the code
for the undocumented switches I added the attributes PartitionName to the
new
MBeans 
code="org.jboss.mq.il.ha.HAILSharedState"
name="jboss.mq:service=HAILSharedState"
code="org.jboss.ha.singleton.HASingletonController"
name="jboss.mq:service=HAILSingletonController"

Now I get a NullPointerException. Any idea? Did I miss any other switches?

Thanks for your help,

Dietmar

server.log:
===

2003-12-05 16:04:21,100 INFO 
[org.jboss.ha.framework.server.ClusterPartition] Starting channel
2003-12-05 16:04:21,101 INFO 
[org.jboss.ha.framework.interfaces.HAPartition.XXXPartition] Number of cluster 
members: 3
2003-12-05 16:04:21,101 INFO 
[org.jboss.ha.framework.interfaces.HAPartition.XXXPartition] Other members: 2
2003-12-05 16:04:21,162 INFO 
[org.jboss.ha.framework.server.ClusterPartition] Started ClusterPartition: 
XXXPartition
2003-12-05 16:04:21,162 INFO 
[org.jboss.ha.framework.server.ClusterPartition] Started jboss:service=XXXPartition
2003-12-05 16:04:21,238 INFO  [org.jboss.ejb.plugins.EntityInstancePool]
Started jboss.j2ee:jndiName=clustering/HTTPSession,plugin=pool,service=EJB
2003-12-05 16:04:21,238 INFO  [org.jboss.ejb.EntityContainer] Started
jboss.j2ee:jndiName=clustering/HTTPSession,service=EJB
2003-12-05 16:04:21,251 INFO 
[org.jboss.ha.httpsession.server.ClusteredHTTPSessionService] Started 
jboss:service=ClusteredHttpSession
2003-12-05 16:04:21,293 ERROR [org.jboss.mq.il.ha.HAILSharedState] Starting
failed
java.lang.NullPointerException
at
org.jboss.ha.jmx.HAServiceMBeanSupport.registerRPCHandler(HAServiceMBeanSupport.java:173)
at
org.jboss.ha.jmx.HAServiceMBeanSupport.startService(HAServiceMBeanSupport.java:142)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy14.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:394)
at
org.jboss.system.ServiceController.start(ServiceController.java:411)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.system.ServiceController$

Re: [JBoss-user] BindAddress and Remote JMS (was JMS to remote hosts doesn't work any more)

2003-11-24 Thread Didi Posselt
Hi,

I'm running SUSE-Linux 8.2 (kernel 2.4.20), so I
think this is on all systems.

I tried
InetAddress.getByName("0.0.0.0")
which returns
/0.0.0.0

PS: 
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)


> Its a bug then. Is this only on win32 or all platforms?
> 
> -- 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> 
> Didi Posselt wrote:
> 
> > Hi,
> >
> > Since the option --host=yourhost causes lots of problems in applications
> > that don't specify a host to connect to, I cannot use it for my
JMS-problem.
> >
> > I figured, that everything works fine, if I drop the Attribute
BindAddress
> > in the deployment descriptor for the UIL2 Invocation Layer (the code
> > didn't change from 3.2.2RC4).
> >
> > After checking the code I found out, that the socketAddress in
UILServerILService.java:188 is 0.0.0.0/0.0.0.0 when no attribute
> > BindAddress is specified, however, if I specify the BindAddress
> > without changes, I get /0.0.0.0 as socketAddress.
> >
> > I tried to change the if-statement (line 188) to endsWith("/0.0.0.0")
and everything works fine. The same thing might apply to
> > other InvocationLayers.
> >
> > I feel happy just dropping the attribute BindAddress, however, it took
> > me some time to figure this out. Maybe changing the if-statement makes
> > things easier for other users?
> >
> > Thanks again and Greetings,
> >  Dietmar

-- 
GMX Weihnachts-Special: Seychellen-Traumreise zu gewinnen!

Rentier entlaufen. Finden Sie Rudolph! Als Belohnung winken
tolle Preise. http://www.gmx.net/de/cgi/specialmail/

+++ GMX - die erste Adresse für Mail, Message, More! +++



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] BindAddress and Remote JMS (was JMS to remote hosts doesn't work any more)

2003-11-19 Thread Didi Posselt
Hi,

Since the option --host=yourhost causes lots of problems in applications
that don't specify a host to connect to, I cannot use it for my JMS-problem.

I figured, that everything works fine, if I drop the Attribute BindAddress
in the deployment descriptor for the UIL2 Invocation Layer (the code
didn't change from 3.2.2RC4).

After checking the code I found out, that the socketAddress in 
UILServerILService.java:188 is 0.0.0.0/0.0.0.0 when no attribute
BindAddress is specified, however, if I specify the BindAddress
without changes, I get /0.0.0.0 as socketAddress.

I tried to change the if-statement (line 188) to endsWith("/0.0.0.0") 
and everything works fine. The same thing might apply to
other InvocationLayers.

I feel happy just dropping the attribute BindAddress, however, it took
me some time to figure this out. Maybe changing the if-statement makes
things easier for other users?

Thanks again and Greetings,
 Dietmar

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JMS to remote hosts doesn't work any more

2003-11-18 Thread Didi Posselt
Hi folks,

The '--host=yourhost' option solved my problem (Thanks to Bjoern)

Any idea why it worked in 3.2.2RC4 without this option?

@Markus: I read your message right when you posted it and tried
it with no success. Thanks anyway.

Greetings,
   Dietmar

-- 
GMX Weihnachts-Special: Seychellen-Traumreise zu gewinnen!

Rentier entlaufen. Finden Sie Rudolph! Als Belohnung winken
tolle Preise. http://www.gmx.net/de/cgi/specialmail/

+++ GMX - die erste Adresse für Mail, Message, More! +++



---
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JMS to remote hosts doesn't work any more

2003-11-18 Thread Didi Posselt
Hi everybody,

I have a problem with access to queues from remote hosts. We use JMS
a lot and had no problems up until 3.2.2RC4. With 3.2.2final and
3.2.3RC1 the remote access to JMS queues doesn't work anymore.

I already posted this problem on the developer list after we tried
3.2.2final and got no response.

Is anyone out there with similar experiences?

Because of the backported axis bugfix we would like to use 3.2.3RC1,
however we need the remote access to JMS queues also.

The exception occurs in the call to createQueueConnection.

org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable:
(java.net.ConnectException: Connection refused)
at org.jboss.mq.Connection.authenticate(Connection.java:883)
at org.jboss.mq.Connection.(Connection.java:238)
at org.jboss.mq.SpyConnection.(SpyConnection.java:49)
at
org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:135)
at
de.schlund.j2ee.jms.tinyclient.sender.Client.setUp(Client.java:83)
at de.schlund.j2ee.jms.tinyclient.sender.Client.run(Client.java:135)
at
de.schlund.j2ee.jms.tinyclient.sender.Client.main(Client.java:161)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:169)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at javax.net.DefaultSocketFactory.createSocket(DashoA6275)
at
org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:579)
at
org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:500)
at
org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:302)
at org.jboss.mq.Connection.authenticate(Connection.java:876)
... 6 more

Some more informations:

- 3.2.2RC4 works with exactly the same configuration, 3.2.2final and
3.2.3RC1 don't
- Access to queue from the local host works fine
- Remote message driven beans also stopped working
- JNDI and session beans work perfectly fine

My code is as follows:
String url = "node:1099";
String connectionFactory = "UIL2ConnectionFactory";

Properties properties = new Properties();
properties.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
properties.setProperty("java.naming.provider.url", url);

InitialContext jndiContext = new InitialContext(properties);

QueueConnectionFactory queueFactory = (QueueConnectionFactory)
PortableRemoteObject.narrow(jndiContext.lookup(connectionFactory),
QueueConnectionFactory.class);
QueueConnection queueConnection =
queueFactory.createQueueConnection("foo", "bar");

PS: I'm running linux kernel 2.4.20.

Thanks,
Dietmar

-- 
Dr.-Ing. Dipl.-Inform. Dietmar Posselt, M.S.
Unix Development, Schlund + Partner AG, Brauerstr. 48, 76135 Karlsruhe
Phone: +49 721 91374-518, Fax: +49 721 91374-256

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++



---
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user