vinoth subramaniam

Ranch Hand
+ Follow
since Jul 05, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vinoth subramaniam

Hi all,
I am having an deployment problem . I am using EJB 2.1 session Beans and Jboss 4.0.2 and JRE 5.0. Currently I am having Two Ear files. Here is the Structure belorw

1. PrePoCLamda.EAR
|
------------> PrePoCLamdaWeb.WAR

2. PoCService.EAR
|
--------------> PrePoCLamdaEJB.JAR

a. I added the Latest compiled version of "PrePoCLamdaEJB.jar" in to WEB-INF/lib of the "PrePoCLamdaWeb.WAR".
b. I deployed these two war files in Jboss 4.0.2/server/default/deploy.
c. Now When i run a java class which is in the web project as a Java Application, i can able to invoke the sessionBean and i can use the Business service without any problem.
d. If i tried to call the method which invoke the EJB from a servlet (in my case a JSF servlet,) i am getting the following error message





Thanks in advance,
Vinoth S.
Thank you very much for your valuable ideas..

Let me try to explain my context

i need to make webservices for BookSearchWebServices.java.. and it contains


Book.java is (which is having an object of Author.java as one of its attributes)

Author.java is (which is having Set<books> as one of its attributes)






How can i pass them ?
16 years ago
Is there [size=18]DIRECT or INDIRECT any way to pass java.util.Set<java.lang.Object> and java.util.List<java.lang.Object> in Axis 2.0 ? I have read that it is possible by converting it into Object[]. But it will affect our entire project.

and i have read that Axis 2.0 will support JAXB 2.0 and in JAXB 2.0 , java.util.List<java.lang.Object> can be mapped as xsd:IDREFS . How it can be implemented in WSDL file?

Kindly someone help me.

I am using jboss-5.0.0.GA and runtime is JDK 1.6.

Thanks in advance [/size]
16 years ago
I solved the problem, thank you ..! As you said there is a jar file (jboss-common.jar) in the WEB-INF/lib. I removed it and that problem is solved.
16 years ago
Hi, thanks for the reply. My EAR have the both web client and EJB. So do i need to put the compiled jar file in the web client's library once again? Can you put some more words on that ...
16 years ago
Hi all,
I am new to the world of remotes and homes. I am stuck in this problem for a while... Please help me out.

I am using EJB 2.1 , Jboss 4.0.2, JDK 1.6 and JRE 5.0. I can able to invoke the session bean from a java application. But when i tried to invoke from the servlet (in my case JSF servlet,... also i tried with the Http Servlet ...i got the same result), it is giving the communication exception error. just like the call from main method, i am using Eclipse RCP as a front end and can be able to invoke the session beans.

1. What is the configuration need to be done in Jboss AS for EJB. Please explain it.
2. What is the exact difference between when a user making a call from a main method and call from a servlet.
3. Do i have to use the concept of Mbean? if it is so, could you please brief it. Or giveme some links to explore it.



Here is the class which is invoking the (Proxy) EJB,



This is the Error Message i am getting when i tried to invoke the EJB session bean ..... I understood that the root exception is because of the jboss-client.jar and jbossall-client.jar. But i am using the same jar files which comes along with the jboss 4.0.2.Zip. I am getting the same error. Is there any other thing causing this error? So what is the solution for this problem.



Thanks for your valuable time.

- Vinoth[/size][/size]
16 years ago
Hi,
Thanks, Now i solved the NoclassFoundError problem. I followed this tutorial in the Hibernate site. But it i am stuck in the step 5. Can you please help me out.

1.So i havae to write the jboss-service.xml file to use hibernate3 with jboss 4.0.2 ?
2. How to create the hibernate.sar file using that ant task?

Can you please show me any tutorial which have the step by step guide to do the same.. thanks for spending your time...

Cheers,
Vinoth
can you please explain me in detail. thanks ..!
I added the DAO in a utility project. And i tried to use the DAO from the EJB directly and i got tghe following error. I didnt do any configurations. Can you please tell me, what are the steps i have to follow.

Hi all,
I am new to EJB and hibernae.

I am using Hibernate 3.0, Jboss 4.0.2, EJB 2.1.Can you please spend your valualbe time and tell me how to integrate EJB and Hibernate. we plan to use stateless session beans which will call the DAO.

I searched in google and i cant find any answer relavant to me.

1. What are the configurations need to be done in JBOSS. :?:
2. How to access the hibernate session in EJB. :?:

Please explain the steps clearly, So that this thread will be useful to me and others. And i have to solve this issue, As soon as possible. :?

thanks,
Vinoth
Dear Reehan, it works perfectly. Thanks for your Effort. And wish you a Happy new year.
[ December 31, 2008: Message edited by: vinoth subramaniam ]
Can you please explain your answer in detail... i have to create an another sub criteria? Can you please show mw how to do that...thanks
Dear all.
I am using hibenate 3.0. I am getting an exception when i tried to fetch a data from a table with composite key. I can able to retrive the data without adding any restrictions in the criteria. How to apply the restrictions for the composite keys?

1. My hibernate mapping file




CompanyBankAccount.java



CompanyBankAccount_PK.java



The following code is used to get the result





i am getting the following exception


org.hibernate.QueryException: could not resolve property: CoBankAcctId of: nulamda.Bean.CompanyBankAccount
at org.hibernate.persister.entity.AbstractPropertyMapping.throwPropertyException(AbstractPropertyMapping.java:43)
at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:37)
at org.hibernate.persister.entity.BasicEntityPersister.getSubclassPropertyTableNumber(BasicEntityPersister.java:1124)
at org.hibernate.persister.entity.BasicEntityPropertyMapping.toColumns(BasicEntityPropertyMapping.java:33)
at org.hibernate.persister.entity.BasicEntityPersister.toColumns(BasicEntityPersister.java:1104)
at org.hibernate.loader.criteria.CriteriaQueryTranslator.getColumns(CriteriaQueryTranslator.java:402)
at org.hibernate.loader.criteria.CriteriaQueryTranslator.getColumnsUsingProjection(CriteriaQueryTranslator.java:368)
at org.hibernate.criterion.SimpleExpression.toSqlString(SimpleExpression.java:42)
at org.hibernate.loader.criteria.CriteriaQueryTranslator.getWhereCondition(CriteriaQueryTranslator.java:313)
at org.hibernate.loader.criteria.CriteriaLoader.<init>(CriteriaLoader.java:92)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1228)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:299)
at nulamda.Support.CompanyBabkAccountSupport.GetCompanyBankAccountDetail(CompanyBabkAccountSupport.java:23)
at nulamda.Action.SuspensSelectingAction.SuspensActionMethod(SuspensSelectingAction.java:33)
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 com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at org.apache.struts.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:137)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIData.broadcast(UIData.java:657)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)

_________________
Vinoth
I searched in the saloon and found this Thread.
Saying that

As the ClassCastException is occuring during narrow there is a high probability that the war file is referencing a different version of the jar file containing Home and Remote interfaces. Please compile and create the client jar [jar containing Home and Remote to be specified in the classpath of web application] again with the latest source code [and compile with the same Java version as that of the jar file for EJB application] and redeploy the war file.

. How to do this exactly. I run the Xdoclet once again.But still i am getting the same error again and again. Please help me to out.
Hi all,
I am a new to EJB. I am usind JBOSS 4.0.2, Xdoclet 1.2.3 and JDK 1.6 and EJB 2. When i tried to invoke the Stateless session bean. I am getting the ClassCastException error. Here is the Error.
Can you please help me to solve this issue..!

1. What are the configurations need to be done in JBOSS AS to use EJB?
2. Is there any problem with the versions of JBOSS, JDK, and Xdoclet. If so, what it is?



Error in the console


Thanks...