0

I have Oracle 10g configured as a database in my roo. This works properly with entity commands, but when i am trying to use database reverse engineer, i am getting below exceptions. Can anyone please guide me with this.

roo> database reverse engineer --schema Exception in thread "Spring Roo JLine Sh
     ell" java.lang.NoClassDefFoundError: javax/management/InstanceAlreadyExistsExcep
     tion
     at java.lang.Class.getDeclaredConstructors0(Native Method)
     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
     at java.lang.Class.getConstructor0(Class.java:2699)
     at java.lang.Class.newInstance0(Class.java:326)
     at java.lang.Class.newInstance(Class.java:308)
     at org.springframework.roo.addon.jdbc.polling.internal.CommonJdbcDriverP
     rovider.loadDriver(CommonJdbcDriverProvider.java:55)
     at org.springframework.roo.addon.jdbc.polling.internal.PollingJdbcDriver
     Manager.loadDriver(PollingJdbcDriverManager.java:54)
     at org.springframework.roo.addon.dbre.jdbc.ConnectionProviderImpl.getCon
     nection(ConnectionProviderImpl.java:65)
     at org.springframework.roo.addon.dbre.jdbc.ConnectionProviderImpl.getCon
     nection(ConnectionProviderImpl.java:46)
     at org.springframework.roo.addon.dbre.model.DbreModelServiceImpl.getConn
     ection(DbreModelServiceImpl.java:74)
     at org.springframework.roo.addon.dbre.model.DbreModelServiceImpl.support
     sSchema(DbreModelServiceImpl.java:240)
     at org.springframework.roo.addon.dbre.converter.SchemaConverter.getAllPo
     ssibleValues(SchemaConverter.java:42)
     at org.springframework.roo.shell.SimpleParser.completeAdvanced(SimplePar
     ser.java:537)
     at org.springframework.roo.shell.jline.JLineCompletorAdapter.complete(JL
     ineCompletorAdapter.java:35)
     at jline.ConsoleReader.complete(ConsoleReader.java:936)
     at jline.ConsoleReader.readLine(ConsoleReader.java:603)
     at jline.ConsoleReader.readLine(ConsoleReader.java:457)
     at jline.ConsoleReader.readLine(ConsoleReader.java:283)
     at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.
     java:413)
     at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:53
     9)
     at java.lang.Thread.run(Thread.java:619)
     Caused by: java.lang.ClassNotFoundException: javax.management.InstanceAlreadyExi
     stsException not found by [76]
     at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation
     (ModuleImpl.java:812)
     at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
     at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(Mod
     uleImpl.java:1807)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      ... 21 more

I have all required OSGI modules active

[  77] [Active     ] [    1] Java Resource API (1.5.0)
[  78] [Active     ] [    1] Java Transaction API (1.1.0)
[  79] [Active     ] [    1] Oracle JDBC Driver (10.2.0.2)
4

1 回答 1

0

好的,发现问题,原来我安装了两个单独的 OSGI 驱动程序实例,它们导致了一些冲突。

删除其中一个驱动程序后,它的工作完美无缺。

于 2012-10-03T09:45:33.590 回答