[JBoss-user] [EJB 3.0] - Re: lookup ClassCastException

2006-06-29 Thread muhviehstarr
Sorry I posted the wrong output. I also tried it with local-binding (which of 
course isn't correct).

Here the correct output, now also included your line:

  | my.test.StatefulTest
  | org.jboss.ejb3.JBossProxy
  | javax.ejb.EJBObject
  | java.lang.ClassCastException
  | at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(Unknown 
Source)
  | at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
  | at my.test.TestServlet.doGet(TestServlet.java:71)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  | 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.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:95)
  | at 
org.jboss.web.tomcat.tc5.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Unknown Source)
  | Caused by: java.lang.ClassCastException: $Proxy302
  | ... 25 more
  | 

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

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

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] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread muhviehstarr
Hello. I think you forgot the @SecurityDomain at the class.



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

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

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] [EJB 3.0] - Re: lookup ClassCastException

2006-06-29 Thread muhviehstarr
I also have this problem.

I have two ears. One with the StateFul Bean and one with the war-file and a 
Servlet. I run the following code in the Servlet:

  | Context ctx;
  | try {
  | ctx = new InitialContext();
  | Object o = ctx.lookup("StatefulTest/remote");
  | Class[] interfaces = o.getClass().getInterfaces();
  | for (Class intf : interfaces) {
  | writer.println(intf.getName());
  | }
  | StatefulTest stateFulBean = (StatefulTest) o;
  | writer.println(stateFulBean.sayHello("mike"));
  | } catch (Exception e) {
  | e.printStackTrace(writer);
  | }
  | 

The output is:

  | my.test.StatefulTest
  | org.jboss.ejb3.JBossProxy
  | javax.ejb.EJBLocalObject
  | java.lang.ClassCastException: $Proxy267
  | at my.test.TestServlet.doGet(TestServlet.java:70)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  | 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.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:95)
  | at 
org.jboss.web.tomcat.tc5.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Unknown Source)
  | 

Any hints?

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

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

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] [JBossWS] - Virtual Host for Webservice

2006-06-08 Thread muhviehstarr
Hi,

I use JBoss 4.0.4 GA and want to deploy a EJB3 (JSR-181) webserivce. Nearly 
everything is fine. The problem is that the generated servlet of the webservice 
is deployed on the default virtual host, but I want to change this to another. 
How is this possible? I tried to add an jboss-web.xml in META-INF directory of 
the jar-file containing the webservice bean and interface, but with no success. 
I hope anyone can help me.

cya muh

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

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


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: EJB3/EntityManager/Transactions and LazyInitializationEx

2006-06-07 Thread muhviehstarr
You need to open a transaction via UserTransaction in your Struts-Action, so 
that the SessionBean-call will be inside your own transaction.


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

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


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: lookup ClassCastException

2006-06-02 Thread muhviehstarr
Wouldn't it be enough to write:


  | ctx = getInitialContext();
  | AddLinkServiceRemote addLinkService = (AddLinkServiceRemote) = 
ctx.lookup("challenge/AddLinkServiceBean/remote");
  | 

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

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


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Cluster on Linux

2006-06-02 Thread muhviehstarr
The Problem is that the name of the server is mapped in /etc/hosts to 127.0.0.1 
and not the public ip. So the autodetection fails.

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

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


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Problem with Session.get

2005-11-29 Thread muhviehstarr
the problem here in detail is solved:

the current mysql-server-4.1 package of ubuntu (4.1.12) has a bug. 

More Informations about the problem can be found here: 
http://ubuntuforums.org/showthread.php?p=502593
or
http://forums.mysql.com/read.php?39,49989,49989#msg-49989


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

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


---
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] [EJB 3.0] - Re: hbm2ddl schema export seems to wipe out existing databas

2005-11-28 Thread muhviehstarr
Hi,

if you don't set some settings in persistence.xml the default values from 
jboss-4.0.3\server\all\deploy\ejb3.deployer\META-INF\persistence.properties are 
used. 
default here is: hibernate.hbm2ddl.auto=create-drop
so this should be modified by you or you have to set some specific value in 
your persistence.xml

bye


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

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


---
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