[jboss-user] [EJB 3.0] - @Column Annotation doesn't seem to work...
It seems the @Column annotation doesn't work for some reason? using jboss-4.0.5.GA EJB 3.0 | | @Entity | @NamedQueries({ | @NamedQuery(name = SdsDataLoadPat.findAll, query = select o from SdsDataLoadPat o), | @NamedQuery(name = SdsDataLoadPat.findAllbyId, query = select o from SdsDataLoadPat as o WHERE o.loadSeqNo = :loadSeqNo AND o.setId = :setId) | }) | @Table(name = SDS_DATA_LOAD_PAT) | @IdClass(SdsDataLoadPatPK.class) | public class SdsDataLoadPat implements Serializable { | @Column(name=ADDRESS_CITY) | private String addressCity; | | . | | @Id | @Column(name=LOAD_SEQ_NO, nullable = false) | private Long loadSeqNo; | | @Id | @Column(name=SET_ID, nullable = false) | private Long setId; | | private String ssn; | @Column(name=STATUS_CODE) | private String statusCode; | private String suffix; | | } | | | This is the sql shown from the DEBUG | | 2007-03-26 08:16:05,643 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not execute query [select sdsdataloa0_.loadSeqNo as loadSeqNo24_, | . | sdsdataloa0_.USIIS_ID as USIIS67_24_ from SDS_DATA_LOAD_PAT sdsdataloa0_ where sdsdataloa0_.loadSeqNo=? and sdsdataloa0_.setId=?] | | The sql is being translated using the field name, not the @column name. (sdsdataloa0_.loadSeqNo=? and sdsdataloa0_.setId=?) Anyone have a clue why? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031605#4031605 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031605 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Where is Hibernate Config?
Little lost.. is it done via the persistence.xml in the ear? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031300#4031300 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031300 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Can't access session facade bean
I don't understand why I am getting a classcastexception... From the rmx console | +- SDS_DATA (class: org.jnp.interfaces.NamingContext) | | +- SessionEJB (class: org.jnp.interfaces.NamingContext) | | | +- local (proxy: $Proxy97 implements interface org.usiis.model.SessionEJBLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | | +- remote (proxy: $Proxy96 implements interface org.usiis.model.SessionEJB,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | My java code | import javax.naming.Context; | import javax.naming.InitialContext; | | import org.usiis.model.SessionEJB; | import org.usiis.model.SessionEJBLocal; | | public class ContextManager { | | private final String oc4jRemote = SessionEJB; | private final String bossRemote = SDS_DATA/SessionEJB/remote; | private final String bossLocal = SDS_DATA/SessionEJB/local; | | public ContextManager() { | } | | | public SessionEJB getRemoteContext ()throws Exception { | final Context context = new InitialContext(); | //SessionEJB b = (SessionEJB) context.lookup(oc4jRemote); | SessionEJB b = (SessionEJB) context.lookup(bossRemote); | | return b; | } | | | public SessionEJBLocal getLocalContext() throws Exception { | final Context context = new InitialContext(); | SessionEJBLocal b = (SessionEJBLocal) context.lookup(bossLocal); | | return b; | } | The error | | 2:35:36,674 ERROR [STDERR] java.lang.ClassCastException: $Proxy97 | 2:35:36,674 ERROR [STDERR] at org.usiis.view.backing.ContextManager.getLoca | Context(ContextManager.java:30) | | Can anyone explain why the cast is not working? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031168#4031168 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031168 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Can't access session facade bean
Also I did make sure that the jar file that contains my SessionEJBBean, SessionEJB, SessionEJBLocal is not in the WEB-INF/lib directory of my webapp.war (it was at one time) so as not to have problems with the classloader. It is only in the ear file. But I am still having the same problem. I am casting the interface and not the implementing class which I believe is the right thing to do. Can't get past this. Can anyone help? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031180#4031180 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031180 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Can't access session facade bean
Problem solved. Even though it wasn't in the jar... it was in WEB-INF/classes Took it out of there and problem solved. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031181#4031181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031181 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Where is Hibernate Config?
I am setting up the latest version of JBoss and trying to enable show_sql=true but I don't seem to see hibernate.cfg.xml? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031207#4031207 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: Documentation for EJB 3
Bump with a good question.. Are there any plans for automatic generation of Enity EJB 3.0's? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3999104#3999104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3999104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Classic what ide do you use?
I have been looking for a good IDE to develop EJB 3.0's and JSF for use with JBoss 4.0x JBoss IDE (eclipse) doesn't seem to handle automatic generation of Enity Beans right? and lacks visual jsf development. Oracle's JDeveloper seems to do quite well at both visual JSF development, and automatic code generation for enity beans. But doesn't play well with JBoss. Does anyone have any documentation on how to setup JDeveloper with JBoss for debuging etc? What do you use? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3999109#3999109 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3999109 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: Use of EJB 3.0
Good question. I see there is a trailblazer for EJB 3.0 for jboss. But nothing really for Jboss IDE. Is there a way to create entity beans 3.0 from tables? Some kind of wizard? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3993108#3993108 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3993108 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: EJB3 on Jboss 4.0.3 SP1+ Jboss IDE 1.5 - NameNotFoundExc
This is an old post but your problem lies in with the default jndi location of EJBs. Usualy goes Jarfile/Helloworldbean/remote if your using jboss View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3993104#3993104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3993104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problem with named query...
Bump? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3991697#3991697 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Problem with named query...
I am getting the following error when deploying because of a named query. It seems that hibernate is not following the mapping correctly? org.hibernate.QueryException: could not resolve property: serviceCode of: org.usiis.model.ProviderUsers [select o from org.usiis.model.Users o Where o.providerUsersList.providerId = :providerId AND o.providerUsersList.providerUserServicesList.serviceCode = :serviceCode AND (o.providerUsersList.providerUserServicesList. | dateEnd = :endDate OR o.providerUsersList.providerUserServicesList.dateStarted is null)order by o.username ] | BEANs Users | | @Entity | @NamedQueries({ | | | @NamedQuery(name = Users.findAllInactiveByProviderIdServiceCodeDate, | query = select o from Users o Where o.providerUsersList.providerId = :providerId + | AND o.providerUsersList.providerUserServicesList.serviceCode = :serviceCode + | AND (o.providerUsersList.providerUserServicesList.dateEnd = :endDate + | OR o.providerUsersList.providerUserServicesList.dateStarted is null) + | order by o.username ) | | | @Id | @Column(name=USER_ID, nullable = false) | private Long userId; | @OneToMany(mappedBy = users) | private ListProviderUsers providerUsersList; | | | ProviderUsers | @Id | @Column(name=PROVIDER_USER_ID, nullable = false) | private Long providerUserId; | @Column(name=PROVIDER_ID) | private String providerId; | @OneToMany(mappedBy = providerUsers) | private ListProviderUserServices providerUserServicesList; | | ProviderUserServices | @Column(name=DATE_END) | private Timestamp dateEnd; | @Column(name=DATE_REQUESTED, nullable = false) | private Timestamp dateRequested; | @Column(name=DATE_STARTED) | private Timestamp dateStarted; | @Column(name=SERVICE_CODE, nullable = false) | private Long serviceCode; | @Id | @Column(name=USER_SERVICES_ID, nullable = false) | private Long userServicesId; | Why does hibernate want to associate serviceCode with ProviderUsers when it is in ProviderUserServices in the query? Is this a bug with hibernate? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3991065#3991065 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991065 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problem with named query...
Anyone? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3991101#3991101 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991101 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: javax.ejb.EJBAccessException: Authentication failure wit
Ok I added the code from the EJB 3.0 trailblazer from jboss website and I am still getting the same problem. | javax.ejb.EJBAccessException: Authentication failure | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSe | curityException(Ejb3AuthenticationInterceptor.java:99) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic | ationInterceptor.java:70) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth | enticationInterceptor.java:131) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. | java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce | ptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. | java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(Asynchrono | usInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. | java:101) | at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessCont | ainer.java:211) | at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalPro | xy.java:79) | at $Proxy128.getFunds(Unknown Source) | at org.apache.jsp.Calculator_jsp._jspService(Calculator_jsp.java:89) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper | | Notice the authentication error when trying to add funds. Exactly the same thing that the trailblazer is doing? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3990457#3990457 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3990457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: javax.ejb.EJBAccessException: Authentication failure wit
Ok I added the code from the EJB 3.0 trailblazer from jboss website and I am still getting the same problem. | javax.ejb.EJBAccessException: Authentication failure | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSe | curityException(Ejb3AuthenticationInterceptor.java:99) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic | ationInterceptor.java:70) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth | enticationInterceptor.java:131) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. | java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce | ptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. | java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(Asynchrono | usInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. | java:101) | at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessCont | ainer.java:211) | at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalPro | xy.java:79) | at $Proxy128.getFunds(Unknown Source) | at org.apache.jsp.Calculator_jsp._jspService(Calculator_jsp.java:89) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper | | Notice the authentication error when trying to add funds. Exactly the same thing that the trailblazer is doing? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3990458#3990458 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3990458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: javax.ejb.EJBAccessException: Authentication failure wit
Looks like no one else has had this problem... I think it might be my compiler in JDeveloper. When I deploy using it I get these errors. But when I add my sources to the source project of the TrailBlazer EJB from jboss.org, and compile using the ant build script. It works fine. Hm View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3990469#3990469 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3990469 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: javax.ejb.EJBAccessException: Authentication failure wit
Bump? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3990144#3990144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3990144 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: javax.ejb.EJBAccessException: Authentication failure wit
What I don't understand is I haven't setup any secruity domains.. When I tried to access the EJB I got an error stating it could not find user.properties or roles.properties. So I added those. But all I am trying to do is access the sesssion facade from the war side. Does every EJB need security for it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989810#3989810 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Confused abotu how to get context...
Thank you for your reply... I will test it out! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989364#3989364 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989364 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Confused abotu how to get context...
If you have a remote client, how do you specifiy which server to connet to? Ie if I am running jboss and OC4J, how does it know to lookup jboss beans and not OC4J? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989374#3989374 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989374 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - java.lang.ClassCastException: $Proxy79 getting conext
Can't seem to get the stateless facade from within my webapp. I hava the webapp and the jar (bean) in the same ear. It appears the the context for the bean is correct. I also made sure there were no references to that bean in my WEB-INF/classes or lib. Anyone have a clue as to what is going on here? | final Context context = new InitialContext(); | WebkidsFacade = | (webkidsFacade) context.lookup(WebkidsAdminLite/webkidsFacade/local); | | | Global JNDI Namespace | | +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) | +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair) | +- WebkidsAdminLite (class: org.jnp.interfaces.NamingContext) | | +- webkidsFacade (class: org.jnp.interfaces.NamingContext) | | | +- local (proxy: $Proxy79 implements interface org.usiis.model.webkidsFacadeLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | | +- remote (proxy: $Proxy77 implements interface org.usiis.model.webkidsFacade,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | +- UserTransactionSessionFactory (proxy: $Proxy46 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory) | +- UIL2ConnectionFactory[link - ConnectionFactory] (class: javax.naming.LinkRef) | +- UIL2XAConnectionFactory[link - XAConnectionFactory] (class: javax.naming.LinkRef) | +- console (class: org.jnp.interfaces.NamingContext) | | +- PluginManager (proxy: $Proxy40 implements interface org.jboss.console.manager.PluginManagerMBean) | +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair) | +- topic (class: org.jnp.interfaces.NamingContext) | | +- testDurableTopic (class: org.jboss.mq.SpyTopic) | | +- testTopic (class: org.jboss.mq.SpyTopic) | | +- securedTopic (class: org.jboss.mq.SpyTopic) | +- queue (class: org.jnp.interfaces.NamingContext) | | +- A (class: org.jboss.mq.SpyQueue) | | +- testQueue (class: org.jboss.mq.SpyQueue) | | +- ex (class: org.jboss.mq.SpyQueue) | | +- DLQ (class: org.jboss.mq.SpyQueue) | | +- D (class: org.jboss.mq.SpyQueue) | | +- C (class: org.jboss.mq.SpyQueue) | | +- B (class: org.jboss.mq.SpyQueue) | +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) | +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction) | +- jmx (class: org.jnp.interfaces.NamingContext) | | +- invoker (class: org.jnp.interfaces.NamingContext) | | | +- RMIAdaptor (proxy: $Proxy39 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt) | | +- rmi (class: org.jnp.interfaces.NamingContext) | | | +- RMIAdaptor[link - jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef) | +- UILXAConnectionFactory[link - XAConnectionFactory] (class: javax.naming.LinkRef) | +- UILConnectionFactory[link - ConnectionFactory] (class: javax.naming.LinkRef) | | 13:45:37,245 ERROR [STDERR] java.lang.ClassCastException: $Proxy79 | 13:45:37,245 ERROR [STDERR] at org.usiis.view.backing.Login.init(Login.jav | a:43) | 13:45:37,245 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.new | Instance0(Native Method) | 13:45:37,245 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.new | Instance(NativeConstructorAccessorImpl.java:39) | 13:45:37,245 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl | .newInstance(DelegatingConstructorAccessorImpl.java:27) | 13:45:37,245 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Con | structor.java:494) | 13:45:37,245 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:350) | 13:45:37,245 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:303) | 13:45:37,245 ERROR [STDERR] at org.apache.myfaces.shared_impl.util.ClassUtil | s.newInstance(ClassUtils.java:274) | 13:45:37,245 ERROR [STDERR] at org.apache.myfaces.shared_impl.util.ClassUtil | s.newInstance(ClassUtils.java:265) | 13:45:37,245 ERROR [STDERR] at org.apache.myfaces.config.ManagedBeanBuilder. | buildManagedBean(ManagedBeanBuilder.java:50) | 13:45:37,245 ERROR [STDERR] at org.apache.myfaces.el.VariableResolverImpl.re | solveVariable(VariableResolverImpl.java:311) | 13:45:37,245 ERROR [STDERR] at org.apache.myfaces.config.LastVariableResolve | rInChain.resolveVariable(LastVariableResolverInChain.java:42) | 13:45:37,245 ERROR [STDERR] at org.apache.myfaces.el.ValueBindingImpl$ELVari | ableResolver.resolveVariable(ValueBindingImpl.java:574) | 13:45:37,245 ERROR [STDERR] at org.apache.commons.el.NamedValue.evaluate(Nam | edValue.java:124) | 13:45:37,245 ERROR [STDERR] at org.apache.commons.el.ComplexValue.evaluate(C | omplexValue.java:140) | 13:45:37,245 ERROR
[jboss-user] [EJB 3.0] - Re: java.lang.ClassCastException: $Proxy79 getting conext
| Global JNDI Namespace | | +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) | +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair) | +- WebkidsAdminLite (class: org.jnp.interfaces.NamingContext) | | +- webkidsFacade (class: org.jnp.interfaces.NamingContext) | | | +- local (proxy: $Proxy79 implements interface org.usiis.model.webkidsFacadeLocal,interfac | e org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | | +- remote (proxy: $Proxy77 implements interface org.usiis.model.webkidsFacade,interface or | g.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | There is an interface for both local and remote View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989492#3989492 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: java.lang.ClassCastException: $Proxy79 getting conext
Awesome that was it now Im getting a different error [Code] java.io.IOException: No properties file: users.properties or defaults: defaultUs ers.properties found at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315) at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRole sLoginModule.java:186) at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRo View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989500#3989500 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989500 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - javax.ejb.EJBAccessException: Authentication failure with no
I am trying to build a simple webapp / EJB 3.0 project. But running into some difficulty. After getting the session context bean, while trying to run a procedure that returns rows from a the DB, I get javax.ejb.EJBAccessException: Authentication failure Anyone know why? I don't even have @Security set. webkidsFacadeLocal.java | package org.usiis.model; | | import java.util.List; | | import javax.ejb.Local; | | | @Local | public interface webkidsFacadeLocal { | Object mergeEntity(Object entity); | | Object persistEntity(Object entity); | | ListUsers queryUsersFindAll(); | | void removeUsers(Users users); | | ListUsersGlobal queryUsersGlobalFindAll(); | | void removeUsersGlobal(UsersGlobal usersGlobal); | | ListProviders queryProvidersFindAll(); | | void removeProviders(Providers providers); | | ListProviderUsers queryProviderUsersFindAll(); | | void removeProviderUsers(ProviderUsers providerUsers); | | ListProviderUserContactInfo queryProviderUserContactInfoFindAll(); | | void removeProviderUserContactInfo(ProviderUserContactInfo providerUserContactInfo); | | ListProviderUserFuncs queryProviderUserFuncsFindAll(); | | void removeProviderUserFuncs(ProviderUserFuncs providerUserFuncs); | | ListProviderUserRoles queryProviderUserRolesFindAll(); | | void removeProviderUserRoles(ProviderUserRoles providerUserRoles); | | ListProviderUserServices queryProviderUserServicesFindAll(); | | void removeProviderUserServices(ProviderUserServices providerUserServices); | | ListUsers queryUsersFindAll(Object username, Object password, | Object providerId); | } | webkidsFacadeBean | | package org.usiis.model; | | import java.util.List; | | import javax.ejb.Stateless; | | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | @Stateless(name=webkidsFacade) | public class webkidsFacadeBean implements webkidsFacade, webkidsFacadeLocal { | @PersistenceContext(unitName=usiisUsts) | private EntityManager em; | | public webkidsFacadeBean() { | } | | public Object mergeEntity(Object entity) { | return em.merge(entity); | } | | public Object persistEntity(Object entity) { | em.persist(entity); | return entity; | } | | /** codeselect o from Users o/code */ | public ListUsers queryUsersFindAll() { | return em.createNamedQuery(Users.findAll).getResultList(); | } | | public void removeUsers(Users users) { | users = em.find(Users.class, users.getUserId()); | em.remove(users); | } | | /** codeselect o from UsersGlobal o/code */ | public ListUsersGlobal queryUsersGlobalFindAll() { | return em.createNamedQuery(UsersGlobal.findAll).getResultList(); | } | | public void removeUsersGlobal(UsersGlobal usersGlobal) { | usersGlobal = em.find(UsersGlobal.class, usersGlobal.getUsersGlobalId()); | em.remove(usersGlobal); | } | | /** codeselect o from Providers o/code */ | public ListProviders queryProvidersFindAll() { | return em.createNamedQuery(Providers.findAll).getResultList(); | } | | public void removeProviders(Providers providers) { | providers = em.find(Providers.class, providers.getProviderId()); | em.remove(providers); | } | | /** codeselect o from ProviderUsers o/code */ | public ListProviderUsers queryProviderUsersFindAll() { | return em.createNamedQuery(ProviderUsers.findAll).getResultList(); | } | | public void removeProviderUsers(ProviderUsers providerUsers) { | providerUsers = em.find(ProviderUsers.class, providerUsers.getProviderUserId()); | em.remove(providerUsers); | } | | /** codeselect o from ProviderUserContactInfo o/code */ | public ListProviderUserContactInfo queryProviderUserContactInfoFindAll() { | return em.createNamedQuery(ProviderUserContactInfo.findAll).getResultList(); | } | | public void removeProviderUserContactInfo(ProviderUserContactInfo providerUserContactInfo) { | providerUserContactInfo = em.find(ProviderUserContactInfo.class, providerUserContactInfo.getContactInfoId()); | em.remove(providerUserContactInfo); | } | | /** codeselect o from ProviderUserFuncs o/code */ | public ListProviderUserFuncs queryProviderUserFuncsFindAll() { | return em.createNamedQuery(ProviderUserFuncs.findAll).getResultList(); | } | | public void removeProviderUserFuncs(ProviderUserFuncs providerUserFuncs) { | providerUserFuncs = em.find(ProviderUserFuncs.class,
[jboss-user] [Beginners Corner] - Can't deploy war with faces, works fine in Tomcat Standalone
I have a small faces app that I am trying to deploy to Jboss.. It works fine in Tomcat but for some reason when I deploy to JBoss I get | java.lang.NullPointerException | at javax.faces.webapp.FacesServlet.init(FacesServlet.java:165) | at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. | java:1105) | at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:93 | 2) | at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex | t.java:3951) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 | Here is my web.xml | | ?xml version = '1.0' encoding = 'windows-1252'? | web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; | descriptionEmpty web.xml file for Web Application/description | filter | filter-nameadfFaces/filter-name | filter-classoracle.adf.view.faces.webapp.AdfFacesFilter/filter-class | /filter | filter-mapping | filter-nameadfFaces/filter-name | servlet-nameFaces Servlet/servlet-name | /filter-mapping | servlet | servlet-nameFaces Servlet/servlet-name | servlet-classjavax.faces.webapp.FacesServlet/servlet-class | load-on-startup1/load-on-startup | /servlet | servlet | servlet-nameresources/servlet-name | servlet-classoracle.adf.view.faces.webapp.ResourceServlet/servlet-class | /servlet | servlet-mapping | servlet-nameFaces Servlet/servlet-name | url-pattern/faces/*/url-pattern | /servlet-mapping | servlet-mapping | servlet-nameresources/servlet-name | url-pattern/adf/*/url-pattern | /servlet-mapping | session-config | session-timeout35/session-timeout | /session-config | mime-mapping | extensionhtml/extension | mime-typetext/html/mime-type | /mime-mapping | mime-mapping | extensiontxt/extension | mime-typetext/plain/mime-type | /mime-mapping | /web-app | And here are the files in my WEB-INF/lib directory adf-faces-api.jar adf-faces-impl.jar commons-beanutils.jar commons-collections.jar commons-digester.jar commons-logging.jar commons-logging-api.jar jsf-api.jar jsf-impl.jar jstl.jar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3987925#3987925 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3987925 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Confused abotu how to get context...
I am a little confused on how to lookup the context of an EJB. In using the Oracle tutorals they seem to suggest using @Stateless(name = myName) and then looking it up like context.lookup(myName); This seems to work fine in OC4J but not in JBoss What is the correct way to lookup a EJB? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3987935#3987935 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3987935 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Can't deploy war with faces, works fine in Tomcat Standa
Also remove the jsf libaryies from your web-inf/lib View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3987958#3987958 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3987958 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Call EJB on a Schedule?
Use the ServletContextListener to create the first request. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3961095#3961095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3961095 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user