Re: [jboss-user] [JBoss Tools] - Create GWT Projects with JBoss Tools and Eclipse WTP
by CK Lee
CK Lee [http://community.jboss.org/people/cklee75] commented on the document
"Create GWT Projects with JBoss Tools and Eclipse WTP"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-15794#comment-5188
--------------------------------------------------
Hi,
Can't install successfully. Should be due to JBoss GWT Integration depends on GWT 2.1.0. However the current GWT version from http://dl.google.com/eclipse/plugin/3.6/ http://dl.google.com/eclipse/plugin/3.6/ is 2.1.1 now. Could someone from JBoss update the update site.xml?
Cannot complete the install because one or more required items could not be found.
Software being installed: JBoss GWT Integration (Experimental) 1.0.0.v20101206-2100-H28-Beta2 (org.jboss.tools.gwt.feature.feature.group 1.0.0.v20101206-2100-H28-Beta2)
Missing requirement: JBoss Tools GWT (Experimental) 1.0.0.v20101206-2100-H28-Beta2 (org.jboss.tools.gwt.core 1.0.0.v20101206-2100-H28-Beta2) requires 'bundle com.google.gwt.eclipse.sdkbundle.2.1.0 [2.0.0,3.0.0)' but it could not be found
Cannot satisfy dependency:
From: JBoss GWT Integration (Experimental) 1.0.0.v20101206-2100-H28-Beta2 (org.jboss.tools.gwt.feature.feature.group 1.0.0.v20101206-2100-H28-Beta2)
To: org.jboss.tools.gwt.core [1.0.0.v20101206-2100-H28-Beta2]
Thanks.
--------------------------------------------------
15 years, 3 months
[Javassist] - Verify Error: Inconsistent args_size for opc_invokeinterface
by kingpin
kingpin [http://community.jboss.org/people/kingpin] created the discussion
"Verify Error: Inconsistent args_size for opc_invokeinterface"
To view the discussion, visit: http://community.jboss.org/message/579700#579700
--------------------------------------------------------------
I have been trying to generate some dynamic codes (Using Javassist) but program fails at a certain point when involving a double array or float array. The code is as follows
Class c = Customers.class; // called in main & Customer class just has a double[] Dubs = new double[10]
CreateType(c); // Main
public static Object CreateType(Class genericType)
{
// some preReq declarations
CtMethod writeCode = dyn.getDeclaredMethod("processCode");
generateCode(genericType, Code, "temp"); // Code is a StringBuilder class
System.out.println(Code);
writeCode.insertAt(1, Code.toString()); // Compilation is successful
Class c = dyn.toClass();
Dynamic h;
Constructor[] ctorlist = null;
ctorlist = c.getDeclaredConstructors(); // Problem is here
h = (DynamicSurrogate) ctorlist[0].newInstance(genericType);
return h;
}
Generated code is as follows
testapp1.Customers temp=(testapp1.Customers)graph;
output.processDouble(temp.Dubs[1]);
But problem arises when getDeclaredConstructors is called c.getDeclaredConstructors() ... it throws the following error
Exception in thread "main" java.lang.VerifyError: (class: testapp1/Dyn, method: processDouble signature: (Lsomething/Output;Ljava/lang/Object;)V) Inconsistent args_size for opc_invokeinterface
A workaround exists but does not make any sense, i.e. everything works fine if i simply create a copy of the double array and pass it on to processDouble in dynamic codei.e. if the dynamic code is
testapp1.Customers temp=(testapp1.Customers)graph;
double[] d = temp.Dubs;
output.processDouble(d);
n short , exception Unhandled is thrown by getDeclaredConstructor but it actually has nothing to do with a constructor because it doesnt matter if i create one or not
Hopefully my problem and code is clear enough, if any confusion please do tell, Thankyou in advance :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/579700#579700]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months
[JBoss Web Services] - Non-existent javax.ws.Service constructor called in generated WS client
by Ondrej Zizka
Ondrej Zizka [http://community.jboss.org/people/ozizka%40redhat.com] created the discussion
"Non-existent javax.ws.Service constructor called in generated WS client"
To view the discussion, visit: http://community.jboss.org/message/579691#579691
--------------------------------------------------------------
Hi,
I'd like to use the code generated by wsconsume.sh in a standalone app.
I'd like to ask about this inconsistency, and what should I do to fix.
I suppose I should put some ws implementation to the endorsed dir, right?
Thanks,
Ondra
import javax.xml.ws.Service;
...
/**
* This class was generated by Apache CXF 2.3.1
* Generated source version: 2.3.1
*/
@WebServiceClient(...)
public class IsirPub001 extends Service {
...
public IsirPub001(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public IsirPub001(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public IsirPub001() {
super(WSDL_LOCATION, SERVICE);
}
public IsirPub001(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE, features);
}
public IsirPub001(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE, features);
}
public IsirPub001(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
super(wsdlLocation, serviceName, features);
}
...
}
JDK 1.6.0_20 src:
package javax.xml.ws;
...
public class Service {
// The only constructor.
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass());
}
...
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/579691#579691]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months
[jBPM] - Re: jBPM5 Console Integration with Tomcat6
by bpmn2 user
bpmn2user [http://community.jboss.org/people/bpmn2user] created the discussion
"Re: jBPM5 Console Integration with Tomcat6"
To view the discussion, visit: http://community.jboss.org/message/579197#579197
--------------------------------------------------------------
'We need to tweak persistence.xml I belive to let Tomcat locate datasource and also persistemce.xml uses "org.hibernate.transaction.*JBossTransactionManagerLookup*" may be this lookup class should be changed.
Let me know if you have any fix/suggestion for this.'
Which transaction manager you are using?
For example, if you are using Bitronix, you the set the value as follows in persistence.xml :
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.BTMTransactionManagerLookup" />
You also need to add the following libraries in Tomcat/lib if you are using Bitronix:
e.g,
btm-tomcat55-lifecycle-1.3.3.jar
slf4j-api-1.5.2.jar
slf4j-jdk14-1.5.2.jar
btm-1.3.1.jar
geronimo-jta_1.0.1B_spec-1.0.1.jar
' I tried adding "context.xml" in META-INF with resource entry but that didn't help.'
This is not required if you define the Global datasource at the Tomcat level as all the web applications can access the JNDI.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/579197#579197]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months