[JBoss JIRA] Created: (JBESB-1851) JAXRConnectionFactory should not rely on System properties when creating a Connection
by Daniel Bevenius (JIRA)
JAXRConnectionFactory should not rely on System properties when creating a Connection
-------------------------------------------------------------------------------------
Key: JBESB-1851
URL: http://jira.jboss.com/jira/browse/JBESB-1851
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Examples, Registry and Repository
Reporter: Daniel Bevenius
The quickstarts that use the ServiceInvoker all seem to do this (atleast the ones that I've looked at) :
System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");
Now, we have this property in the jbossesb-properties.xml as:
<property name="org.jboss.soa.esb.registry.factoryClass" value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
This property is read by JAXRConnectionFactory constructor and saved into a Properties object as:
props.setProperty("javax.xml.registry.factoryClass", Configuration.getRegistryFactoryClass());
The 'props' are set on the ConnectionFactory object that is created in the getConnection() method:
protected Connection getConnection()
{
Connection connection = null;
try
{ // Create the connection, passing it the configuration properties
ConnectionFactory factory = ConnectionFactory.newInstance();
factory.setProperties(props);
connection = factory.createConnection();
connection.setCredentials(creds);
} catch (JAXRException e) {
logger.log(Level.ERROR, "Could not set up a connection to the Registry. " + e.getMessage(), e);
}
return connection;
}
Here we can see that ConnectionFactory.newInstance() method will be called prior to the properties getting set on the factory, which is
natural. But the problem is that ConnectionFactory.newInstance() method looks like this:
private static final String SYS_PROP_NAME = "javax.xml.registry.ConnectionFactoryClass";
public static ConnectionFactory newInstance() throws JAXRException
{
String factoryName = null;
ConnectionFactory factory = null;
try
{
String defaultName = null;
factoryName = System.getProperty(SYS_PROP_NAME, defaultName);
ClassLoader loader =Thread.currentThread().getContextClassLoader();
Class factoryClass = loader.loadClass(factoryName);
factory = (ConnectionFactory) factoryClass.newInstance();
}
catch(Throwable e)
{
throw new JAXRException("Failed to create instance of:"+factoryName, e);
}
return factory;
}
We should not be relying on the system properties in order to do this.
Our JAXRConnectionFactory should be creating the factory directly and
not using ConnectionFactory, this is the real error IMO. If we do this
then we will not be affected by anyone else in the AS overriding JAXR.
Kev
See also this googlegroups thread for more background info: http://groups.google.se/group/jbossesb/browse_frm/thread/3a5ce28b4a0f6bca
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months
[JBoss JIRA] Created: (JBESB-2840) bpm_orchestration2 quickstart Extra Credit.
by Neil Wallace (JIRA)
bpm_orchestration2 quickstart Extra Credit.
--------------------------------------------
Key: JBESB-2840
URL: https://jira.jboss.org/jira/browse/JBESB-2840
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.4 CP2
Reporter: Neil Wallace
Priority: Minor
Fix For: 4.4 CP3
In the extra credit section, after a call of ant refreshProcess, the ant startProcess gives this error.
startProcess:
[echo] Sends a message to start the process instance
[java] Exception in thread "main" javax.naming.NameNotFoundException: quickstart_bpm_orchestration2_start_Request_gw not bound
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:581)
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:589)
[java] at org.jnp.server.NamingServer.getObject(NamingServer.java:595)
[java] at org.jnp.server.NamingServer.lookup(NamingServer.java:342)
[java] at org.jnp.server.NamingServer.lookup(NamingServer.java:316)
[java] at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
[java] at sun.rmi.transport.Transport$1.run(Transport.java:159)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
[java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
[java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
[java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
[java] at java.lang.Thread.run(Thread.java:619)
[java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
[java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
[java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
[java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:392)
[java] at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.test.SendJMSMessageStart.setupConnection(SendJMSMessageStart.java:55)
[java] at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.test.SendJMSMessageStart.main(SendJMSMessageStart.java:80)
BUILD FAILED
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (JBESB-2844) WebService invocation is sometimes handled by CoyoteInvoker belonging to undeployed package
by Kevin Conner (JIRA)
WebService invocation is sometimes handled by CoyoteInvoker belonging to undeployed package
-------------------------------------------------------------------------------------------
Key: JBESB-2844
URL: https://jira.jboss.org/jira/browse/JBESB-2844
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web Services
Affects Versions: 4.2.1, 4.4 CP3
Reporter: Jiri Pechanec
Assignee: Tom Fennelly
Priority: Minor
Fix For: 4.2.1 CP4
There were multiple packages deployed/undeployed in the test. The deployment of Quickstart_webservice_mtom.esb is started on line 413471. This package starts coyote invoker with hashCode 17a4c54 at the line 413681. The undeploymetn of this package starts on line 414408. The CoyoteInvoker with the given hashCode is stopped at line 414457.
The Quickstart_webservice_wsa.esb package deployment starts at line 414599.
The CoyotInvoker with hashCode d93db8 is started at line 414806.
Then the test message is sent via HTTP/SOAP and this request fails on line 515535 because it was served by the CoyoteInvoker with hashCode 17a4c54 so the one that belongs to previously undeployed package.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (JBESB-2842) webservice_consumer1 error on deployment
by Neil Wallace (JIRA)
webservice_consumer1 error on deployment
----------------------------------------
Key: JBESB-2842
URL: https://jira.jboss.org/jira/browse/JBESB-2842
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Examples
Affects Versions: 4.4 CP2
Reporter: Neil Wallace
Priority: Minor
Fix For: 4.4 CP3
webservice_consumer1 threw this error in the server log when running ant deploy
2009-09-16 10:29:00,745 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner
] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@8ce1d89e { url=file:/home/nwallace/jboss-soa
-p.4.3.0/jboss-as/server/production/deploy/Quickstart_webservice_consumer1.esb }
deployer: org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer@feb215
status: Deployment FAILED reason: Could not create deployment: file:/home/nwal
lace/jboss-soa-p.4.3.0/jboss-as/server/production/tmp/deploy/tmp14613Quickstart_
webservice_consumer1.esb-contents/Quickstart_webservice_consumer1.war; - nested
throwable: (java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootst
rap classloader, but this RI (from jar:file:/home/nwallace/jboss-soa-p.4.3.0/jbo
ss-as/server/production/tmp/deploy/tmp14529jaxb-impl.jar!/com/sun/xml/bind/v2/mo
del/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism
to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2
se/1.5.0/docs/guide/standards/))
state: FAILED
watch: file:/home/nwallace/jboss-soa-p.4.3.0/jboss-as/server/production/deploy
/Quickstart_webservice_consumer1.esb
altDD: null
lastDeployed: 1253093321232
lastModified: 1253093321000
mbeans:
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (JBESB-2839) Can't load updated transformation in transform_XML2XML_simple quickstart
by Neil Wallace (JIRA)
Can't load updated transformation in transform_XML2XML_simple quickstart
------------------------------------------------------------------------
Key: JBESB-2839
URL: https://jira.jboss.org/jira/browse/JBESB-2839
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Examples
Affects Versions: 4.4 CP2
Reporter: Neil Wallace
Priority: Minor
Fix For: 4.4 CP3
When trying out the next step in this quickstart, the command ant notifyUpdate, I get the following.
notifyUpdate:
[echo] Sending transformation update notification for transform "simple-transform" to deployed ESB.
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/soa/esb/testutils/JMSUtil
BUILD FAILED
/home/nwallace/jboss-soa-p.4.3.0/jboss-as/samples/quickstarts/transform_XML2XML_simple/build.xml:22: Java returned: 1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (JBESB-2836) Just a few little things in the ant help-quickstarts file.
by Neil Wallace (JIRA)
Just a few little things in the ant help-quickstarts file.
----------------------------------------------------------
Key: JBESB-2836
URL: https://jira.jboss.org/jira/browse/JBESB-2836
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Examples
Affects Versions: 4.4 CP2
Reporter: Neil Wallace
Assignee: Kevin Conner
Priority: Minor
Fix For: 4.4 CP3
In the text from a call of ant help-quickstarts.
1. There's a ref to section 2.2 of the Getting started doc to do with different jndi settings but that section doesn't seem to have anything in it to help someone at this point. Any suggestions?
2. "You can optionally copy the file conf/quickstarts.properties-example to quickstart.properties"
Could it be changed to "quickstarts/conf/quickstarts.properties-example"? Just to aid dumb users like me.
3. Little typo
"if you want to run the quickstarts against a different server then the one specified in step 1 above."
Shouldn't it be "to"?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months