Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

How to use maven-jaxb2-plugin generate toString() method  RSS feed

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone know how to add maven-jaxb2-plugin to front-end ejb module, so that it generate toString() method for backend java bean?

The issue I am facing with is currently the toString method is not generated by jaxws mapping during execution of maven in the front-end of the project. So whenever I need to print debugging message, I found no toString on java bean that is mapped by jaxws.

I tried this: http://confluence.highsource.org/display/J2B/JAXB2+Basics+Plugins
but it produced error: [ERROR] Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.0:generate (default) on project morfeusflex-client2-ejb: Error parsing the command line [[Ljava.lang.String;@7c004572]: grammar is not specified -> [Help 1]

if you konw how to fix this, let me know.

Here is the pom.xml file written in the front-end ejb module:

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I modified it, . now the pom.xml becomes:

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
However it still generates the same error;

 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!