vinoth subramaniam

Ranch Hand
+ Follow
since Jul 05, 2008
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

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 and it contains is (which is having an object of as one of its attributes) is (which is having Set<books> as one of its attributes)

How can i pass them ?
15 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]
15 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.
15 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 ...
15 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]
15 years ago
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...

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. :?

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

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(
at org.hibernate.persister.entity.AbstractPropertyMapping.toType(
at org.hibernate.persister.entity.BasicEntityPersister.getSubclassPropertyTableNumber(
at org.hibernate.persister.entity.BasicEntityPropertyMapping.toColumns(
at org.hibernate.persister.entity.BasicEntityPersister.toColumns(
at org.hibernate.loader.criteria.CriteriaQueryTranslator.getColumns(
at org.hibernate.loader.criteria.CriteriaQueryTranslator.getColumnsUsingProjection(
at org.hibernate.criterion.SimpleExpression.toSqlString(
at org.hibernate.loader.criteria.CriteriaQueryTranslator.getWhereCondition(
at org.hibernate.loader.criteria.CriteriaLoader.<init>(
at org.hibernate.impl.SessionImpl.list(
at org.hibernate.impl.CriteriaImpl.list(
at nulamda.Support.CompanyBabkAccountSupport.GetCompanyBankAccountDetail(
at nulamda.Action.SuspensSelectingAction.SuspensActionMethod(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.faces.el.MethodBindingImpl.invoke(
at com.sun.faces.application.ActionListenerImpl.processAction(
at org.apache.struts.faces.application.ActionListenerImpl.processAction(
at javax.faces.component.UICommand.broadcast(
at javax.faces.component.UIData.broadcast(
at javax.faces.component.UIViewRoot.broadcastEvents(
at javax.faces.component.UIViewRoot.processApplication(
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(
at com.sun.faces.lifecycle.LifecycleImpl.phase(
at com.sun.faces.lifecycle.LifecycleImpl.execute(
at javax.faces.webapp.FacesServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$

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