Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / August 2004

Tip: Looking for answers? Try searching our database.

JBoss, CMP, deploy-time, NoSuchMethodError

Thread view: 
Grzegorz Trafny - 15 Aug 2004 10:40 GMT
Hi,

When I deploy CMP bean on JBoss 3.2.3 and/or 3.2.5
I get 'warning' logs:

<log>
[EjbModule]
      Deploying Account
[ServiceController]
      Problem starting service jboss.j2ee:jndiName=AccountLocal,service=EJB
      RuntimeErrorException: java.lang.NoSuchMethodError:
               org.apache.bcel.generic.InstructionFactory.createNewArray

(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;

               Cause: java.lang.NoSuchMethodError:
               org.apache.bcel.generic.InstructionFactory.createNewArray
....
</log>

Deployment descriptors, home and business interfaces are generated
by 'xdoclet' [1.2.1] (with goal <jboss version="3.2" ...)

This case is strange for me because when I set 'xdoclet' to
generate files for JBoss 3.0 (by: <jboss version="3.0" ...)
and when I deploy such generated CMP bean on JBoss 3.0.6
there is no problem!?
[So I can suppose that bean code is good]

Did you have simillar problem?

My platform is: Windows NT (SP6a) and J2SDK 1.4.1
Naturally, if needed I can give more details.

Thank you for your attention and help.

Grzegorz Trafny
Grzegorz Trafny - 15 Aug 2004 13:34 GMT
> When I deploy CMP bean on JBoss 3.2.3 and/or 3.2.5
> I get 'warning' logs:

>        RuntimeErrorException: java.lang.NoSuchMethodError:

OK, after many waste time I found reason of 'my' troubles:

When I installed Java Web Services Development
Pack (1.2) I had to upgrade some 'xml libraries' of my
JVM distribution
[located in $JAVA_HOME/jre/lib/endorsed].

This new libraries doesn't properly work with BCEL
libraries from JBoss [3.2.x] distribution (actually
doesn't work at all)

When I removed above mentioned libraries from
$JAVA_HOME/jre/lib/endorsed my CMP beans
begin to work properly.

[But there is new question: what now with JWSDP distribution?]

Greetings
Grzegorz Trafny


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.