Skip to main content

Problem with schema generation and currency (jaxws 2.0ea sep 23)

1 reply [Last post]
plindsay
Offline
Joined: 2004-11-12
Points: 0

How do I work around this?
-phil

[apt] [loading C:\java\jdk50\jre\lib\rt.jar(java/lang/Number.class)]
[apt] error: java.util.Currency does not have a no-arg default
constructor
[apt] this problem is related to the following location:
[apt] at java.util.Currency (Unknown Source)
[apt] at com.tickets.common.util.Money.getCurrency
(Unknown Source)
[apt] at com.tickets.common.util.Money (Unknown Source)
[apt] at
com.tickets.account.domain.BaseAccountEntry.getAmount (Unknown Source)
[apt] at com.tickets.account.domain.BaseAccountEntry
(Unknown Source)
[apt] at com.tickets.account.domain.AccountEntry
(Unknown Source)
[apt] at com.tickets.account.domain.Account.getEntries
(Unknown Source)
[apt] at com.tickets.account.domain.Account (Unknown
Source)
[apt] at com.tickets.patron.domain.Party.getAccounts
(Unknown Source)
[apt] at com.tickets.patron.domain.Party (Unknown Source)
[apt] at
com.tickets.patron.ws.jaxws.PersistPatron.arg0(PersistPatron.java:17)
[apt] at
com.tickets.patron.ws.jaxws.PersistPatron(PersistPatron.java:14)
[apt] [loading C:\java\jdk50\jre\lib\rt.jar(java/util/Locale.class)]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohsuke
Offline
Joined: 2003-06-09
Points: 0

I think this situation applies to many people, so I wrote a blog about this:

http://weblogs.java.net/blog/kohsuke/archive/2005/09/using_jaxb_20s.html