Pieter Bosman

Greenhorn
+ Follow
since Jun 17, 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 Pieter Bosman

I stumbled on this thread as I had the same issues as Deepak had.

@Peer:
I sincerely hope you don't take this the wrong way, but your reply, while 100% correct is, in my very humble opinion, completely beside the point of Deepak's question. He asks for help on something he's working on, so help him with his issue, don't tell him he's doing it wrong.
Although I do realize his method of posting his question might have been a bit weird And on top of that it's late here in Belgium, so I might be cranky (sorry)


@Deepak:
http://www.ibm.com/developerworks/webservices/library/ws-tip-coding.html
read it

I got the exact same error message as you had. Analyzing the wsdl file that was generated by my Axis2 plugin in Eclipse, I noticed that the 'anyType' was used as a return type whenever I was exposing a method that was returning a 'List<MyObject>' type.
So I modified those methods to return 'MyObject[]' types. Regenerated the webservice (and the wsdl) and behold, no more error.

Hope it helped.

Pieter
14 years ago
I got a solution which turned out to be very easy.

I needed to move my .hbm.xml files into the src.main.resources folder instead of my src.main.java folder.

sorry for disturbing your thoughts

regards,
Pieter
14 years ago
Hey guys,

I'm a bit new to Maven so I wanted to ask a question.
As described in the topic, I'm in need of creating a war that contains a bunch of .hbm.xml files (for my Hibernate DAO layer). On top of that I'm still using Maven for all my dependencies etc.

I would love to be able to use "mvn package" or some other maven command to create my war.
So far the war I create does not contain the .hbm.xml files.

Is there anyone who can point me in the right direction as to how to solve this issue?

Do I need to create a seperate Ant-build.xml file (as described in this topic: https://coderanch.com/t/453789/Ant-Maven-Other-Build-Tools/unable-create-War-using-Ant )
If yes, how to link to it from within my maven project?
If no, is there another way to do this?

regards,
Pieter
14 years ago