arquillian / arquillian-container-wls

Arquillian WebLogic Containers
16 stars 25 forks source link

arquillian-wls-remote-rest is using an old version of jersey #31

Open mtau11 opened 7 years ago

mtau11 commented 7 years ago
Issue Overview

it looks like most of arquillian-container-wls is using jersey 2.18, however arquillian-wls-remote-rest is using an older jersey 2.15

Expected Behavior

The following code should return a serviceUrl; JMXServiceURL serviceUrl = new JMXServiceURL( "service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.runtime");

Current Behavior

an exception caused by java.lang.NoSuchMethodError: org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder.<init>(Ljava/lang/ClassLoader;[Ljava/lang/String;)V

Steps To Reproduce
  1. start a 12c Weblogic instance
  2. Compile and run a client with $WL_HOME/server/lib/wlthint3client.jar on the classpath along with the arquillian-wls-remote-rest and dependent jars. Client can simply contain the following code: ` ... public void main(String args[]) { try { JMXServiceURL serviceUrl = new JMXServiceURL( "service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.runtime");

       Hashtable env = new Hashtable();
        env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
                "weblogic.management.remote");
        env.put("java.naming.factory.initial",
                "weblogic.jndi.WLInitialContextFactory");
        env.put(javax.naming.Context.SECURITY_PRINCIPAL, "xxxx");
        env.put(javax.naming.Context.SECURITY_CREDENTIALS, "xxxx");
    
        jmxCon = JMXConnectorFactory.newJMXConnector(serviceUrl, env);

    `

Additional Information

I don't have permission to create a PR, also having trouble building due to: Could not resolve dependencies for project org.jboss.arquillian.container:arquillian-wls-remote-rest:jar:1.0.2.Final-SNAPSHOT: Could not find artifact org.jboss.arquillian.container:arquillian-wls-common:jar:1.0.2.Final-SNAPSHOT

ddrechse commented 7 years ago

+1 This is causing dependency conflicts because of the old jersey