Elangovan Shanmugam

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

Recent posts by Elangovan Shanmugam

I resolved this a while back and thought post the answer to this thread as well.

Solution: Just add the jaxb-provider dependency to the client project, something like as follows. Even though this is not required for compile time, this is needed for the run-time, in the above situation.


Thanks
13 years ago
Hi all,

I am trying to develop client side code for my RestEasy RESTful web service. When I am trying to create a (POST) request with my complex xml type, I am getting the following error. Could you please throw some tips why would this happen? or What am I doing wrong.



I did check the generated DTO (JAXB) object, and it does have the @XMLRootElement and other annotations.

Thanks
Elangovan S
14 years ago
Thanks Shariquddin and William. These are very helpful. Appreciate it a lot.

I am exploring JMeter for http testing and VisualVM for monitoring at the server side.

thanks
Elangovan S
14 years ago
Thanks Ulf, thats pretty helpful!
14 years ago
Thanks for the suggestion. As I am so new to this area could you please list what are the tools that I can use to monitor the JVM and what kind of load test tools.

Thanks
Elangovan S
14 years ago
Hi, I would like to know if I can restrict access to my JNDI data source to specific set of classes? For example, if my data sources can only be used Hibernate Connection managers.

Is it possible? If yes, how do I do that?

Thanks
Elangovan S

Hi, I am planning to do some performance testing for my new REST based product. The technologies involved in building my software include, Jboss, Hibernate (JPA), Core Java, RestEasy.

Could you please suggest any tools such as profiler, client side tools, monitors, etc, that I can use to measure performance?

Thanks
Elangovan S
14 years ago
Is it happening during run time or deploy time? I am asking because, this has happened just recently for me and it was happening during deploy time (that's drop the war and when the app server comes up it threw me this error).

If it is happening during the deploy time, most probably you have multiple versions jars in your class path (that's lib folders); multiple versions - one from your own jar/war and one from jboss' common/lib folder and so on.

HTH.
Elangovan S
I think I figured what is the issue.

I needed to add <provider> element as below. This element needs to be just after <persistence-unit...> element.

<provider>org.hibernate.ejb.HibernatePersistence</provider>

This solved the issue. I am no more getting the "Unable to build EntityManagerFactory" error. But I am not a next issue and different topic... looks like this is happening because of version mismatch between what has been shipped with Jboss vs What I am using in my project!!!

Thanks
Elangovan S
Hi all, I am facing an issue while deploying my application. When I deployed my war file onto JBoss server, I am getting an as follows. Please let me know what could be wrong. Appreciate your help so much.


Platform:
Jboss 5.1
Hibernate 3.1 GA
Microsoft SQL Server
JTds 1.2 jdbc driver



23:14:10,708 INFO [SettingsFactory] JDBC driver: jTDS Type 4 JDBC Driver for MS SQL Server and Sybase, version: 1.2.2
23:14:10,739 ERROR [STDERR] 547 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.SQLServ
erDialect
23:14:10,864 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#ab state=Create

javax.persistence.PersistenceException: [PersistenceUnit: ab] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
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:597)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelCont
rollerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerCo
ntextAction.java:109)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAc
tion.java:70)
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
Action.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
1)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)