[mule-user] Hi all, how to tell mule to read mule-config.xml from the jar file?

0 views
Skip to first unread message

Aravind...@equifax.com

unread,
Sep 5, 2007, 12:36:01 PM9/5/07
to us...@mule.codehaus.org

Andrew Perepelytsya

unread,
Sep 5, 2007, 12:44:22 PM9/5/07
to us...@mule.codehaus.org
Just make sure mule-config.xml is available on the classpath, e.g. drop it in lib/user. Don't specify -config when launching Mule.

Andrew


Aravind...@equifax.com

unread,
Sep 6, 2007, 2:14:30 PM9/6/07
to us...@mule.codehaus.org

Hi,

The following code (1.3.3) throws the following exception. Not sure what the issue is. Is this the right way to programatically start the mule instance in 1.3.3? thank u in advance!

It was working well in 1.4

MuleXmlConfigurationBuilder builder = new MuleXmlConfigurationBuilder();
UMOManager manager = builder.configure("mule-main-config.xml,mule-components.xml);

java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at org.mule.config.builders.AbstractDigesterConfiguration.loadConfig(AbstractDigesterConfiguration.java:149)
        at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:197)
        at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:184)
        at com.equifax.ic.tdp.batch.mule.RawResponseFetcher.<clinit>(RawResponseFetcher.java:13)
Exception in thread "main"



"Andrew Perepelytsya" <aper...@gmail.com>

09/05/2007 12:44 PM

Please respond to
us...@mule.codehaus.org

To
us...@mule.codehaus.org
cc
Subject
Re: [mule-user] Hi all, how to tell mule to read mule-config.xml from the jar file?


Andrew Perepelytsya

unread,
Sep 6, 2007, 2:38:03 PM9/6/07
to us...@mule.codehaus.org
You seem to be mixing jars and JDK versions. Tell us what you customized and what JDK you are running.

Andrew

Aravind...@equifax.com

unread,
Sep 6, 2007, 2:41:32 PM9/6/07
to us...@mule.codehaus.org, us...@mule.codehaus.org

jdk version = SUN java hotspot 1.4.2

mule 1.3.3 jars got them from ibiblio!

Regards,
Aravind R Yarram

Enabling Technologies
Equifax Information Services LLC
1525 Windward Concourse, J42E
Alpharetta, GA 30005
desk: 770 740 6951
email:
aravind...@equifax.com


"Andrew Perepelytsya" <aper...@gmail.com>

09/06/2007 02:38 PM

Please respond to
us...@mule.codehaus.org

To
us...@mule.codehaus.org
cc
Subject
Re: [mule-user] Hi all, how to tell mule to read mule-config.xml from the jar file?


Andrew Perepelytsya

unread,
Sep 6, 2007, 3:28:48 PM9/6/07
to us...@mule.codehaus.org
Did you replace or add any custom jars or code?

Aravind...@equifax.com

unread,
Sep 7, 2007, 12:03:51 PM9/7/07
to us...@mule.codehaus.org, us...@mule.codehaus.org

hi andrew,

i am using the ibm jdk 1.4.2 and mule 1.3.3 jars got them from ibiblio!


Regards,
Aravind R Yarram

Enabling Technologies
Equifax Information Services LLC
1525 Windward Concourse, J42E
Alpharetta, GA 30005
desk: 770 740 6951
email:
aravind...@equifax.com


"Andrew Perepelytsya" <aper...@gmail.com>

09/06/2007 03:28 PM

)
      at java.net.URLClassLoader.access$100(
URLClassLoader.java:55)
      at java.net.URLClassLoader$1.run(
URLClassLoader.java:194)
      at java.security.AccessController.doPrivileged(
Native Method)
      at java.net.URLClassLoader.findClass(
URLClassLoader.java:187)
      at java.lang.ClassLoader.loadClass(
ClassLoader.java:289)
      at sun.misc.Launcher$AppClassLoader.loadClass (
Launcher.java:274)
      at java.lang.ClassLoader.loadClass(
ClassLoader.java:235)
      at java.lang.ClassLoader.loadClassInternal(
ClassLoader.java:302)
      at org.mule.config.builders.AbstractDigesterConfiguration.loadConfig(
AbstractDigesterConfiguration.java :149)
      at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(
MuleXmlConfigurationBuilder.java :197)
      at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(
MuleXmlConfigurationBuilder.java:184)
      at com.equifax.ic.tdp.batch.mule.RawResponseFetcher.<clinit>(
RawResponseFetcher.java:13)
Exception in thread "main"


Andrew Perepelytsya

unread,
Sep 7, 2007, 12:15:44 PM9/7/07
to us...@mule.codehaus.org
What commons-io version do you have? This is definitely not the one bundled with Mule, as IOUtils was not final (and still is not). Did you replace it?

Andrew

Aravind...@equifax.com

unread,
Sep 7, 2007, 12:23:13 PM9/7/07
to us...@mule.codehaus.org, us...@mule.codehaus.org

it is there in mule-core-1.3.3.jar


Regards,
Aravind R Yarram

Enabling Technologies
Equifax Information Services LLC
1525 Windward Concourse, J42E
Alpharetta, GA 30005
desk: 770 740 6951
email:
aravind...@equifax.com


"Andrew Perepelytsya" <aper...@gmail.com>

09/07/2007 12:15 PM

Please respond to
us...@mule.codehaus.org

To
us...@mule.codehaus.org
cc
Subject
Re: [mule-user] The java class could not be loaded. java.lang.VerifyError: Class org/mule/util/IOUtils cannot be a subclass of final class org/apache/commons/io/IOUtils


Aravind...@equifax.com

unread,
Sep 7, 2007, 12:24:14 PM9/7/07
to us...@mule.codehaus.org, us...@mule.codehaus.org

also using commons-io 1.0


Regards,
Aravind R Yarram

Enabling Technologies
Equifax Information Services LLC
1525 Windward Concourse, J42E
Alpharetta, GA 30005
desk: 770 740 6951
email:
aravind...@equifax.com


"Andrew Perepelytsya" <aper...@gmail.com>

09/07/2007 12:15 PM

Please respond to
us...@mule.codehaus.org

To
us...@mule.codehaus.org
cc
Subject

Re: [mule-user] The java class could not be loaded. java.lang.VerifyError: Class org/mule/util/IOUtils cannot be a subclass of final class org/apache/commons/io/IOUtils

Andrew Perepelytsya

unread,
Sep 7, 2007, 12:27:05 PM9/7/07
to us...@mule.codehaus.org
That's the problem. Mule 1.3.3 bundled commons-io-1.2.jar. How come you need to use 1.0?

Aravind...@equifax.com

unread,
Sep 7, 2007, 12:28:37 PM9/7/07
to us...@mule.codehaus.org, us...@mule.codehaus.org

our platform has a dependency on io 1.0..anyways i guess we can moe to 1.2. thank u!


Regards,
Aravind R Yarram

Enabling Technologies
Equifax Information Services LLC
1525 Windward Concourse, J42E
Alpharetta, GA 30005
desk: 770 740 6951
email:
aravind...@equifax.com


"Andrew Perepelytsya" <aper...@gmail.com>

09/07/2007 12:27 PM

Reply all
Reply to author
Forward
0 new messages