[JBossWS] - Re: JBossWS Plugin for JBossIDE / Eclipse
by RomeuFigueira
Hi there, I'm using a fresh install of JBossIDE 2.0 Beta 2 along with JBossAS 4.0.5 to which I've added the JDK5 version of JBossWS.
While trying to do the following step: Context Menu - Jboss Ws - Publish as Web Service, I'm getting the following:
Running JBossWS wstools for [ProvisioningService]
| directory: C:\Temp\workspaceJboss\ProvisioningService
| command: cmd.exe /C C:\Temp\jboss-4.0.5.GA\bin\wstools.bat -cp build/classes -config C:\DOCUME~1\ROMEU_~1\LOCALS~1\Temp\wstools-config42134.xml -dest C:\Temp\workspaceJboss\ProvisioningService\src\gen
| ========================================================================="
| .
| WSTools Environment
| .
| JBOSS_HOME: C:\Temp\jboss-4.0.5.GA\bin\\..
| .
| JAVA: C:\Program Files\Java\jdk1.5.0_07\bin\java
| .
| JAVA_OPTS:
| .
| ========================================================================="
| .
| Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
| at java.lang.ClassLoader.defineClass1(Native Method)
| at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
| at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
| at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
| at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.ws.tools.helpers.ToolsHelper.loadClass(ToolsHelper.java:369)
| at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:110)
| at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
| at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
| at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
Now it seems to be a conflict of java Versions, but I cannot seem to find out why.
Can you help me on this one?
Thanks,
Romeu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980101#3980101
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980101
19 years, 8 months
[JBossCache] - Re: Migrating from JBCache 1.2.3 to 1.4.0 SP1
by Stephane75
"manik.surtani(a)jboss.com" wrote : You will need to switch JBoss Cache to DEBUG level and JGroups to INFO level logging and look at the startup log to ascertain why the nodes don't discover each other.
|
| Which OS is this on?
The OS is Windows XP (development platform).
Here is the log when it doesn't work :
2006-10-23 18:32:05,937 [main] INFO org.jboss.cache.PropertyConfigurator - Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@c6e1ec
2006-10-23 18:32:06,515 [main] INFO org.jboss.cache.PropertyConfigurator - attribute size: 11
2006-10-23 18:32:06,562 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute IsolationLevel to NONE
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute CacheMode to REPL_ASYNC
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setUseReplQueue(boolean) with parameter "false" of type class java.lang.Boolean
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setReplQueueInterval(long) with parameter "0" of type class java.lang.Long
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setReplQueueMaxElements(int) with parameter "0" of type class java.lang.Integer
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute ClusterName to lbsCache
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setClusterConfig(org.w3c.dom.Element) with parameter "[config: null]" of type class org.apache.xerces.dom.DeferredElementImpl
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.TreeCache - setting cluster properties from xml to: TCP(bind_addr=cerise;loopback=true;start_port=7800):TCPPING(down_thread=true;initial_hosts=cerise[7800],poire[7800];num_initial_members=3;port_range=1;timeout=3500;up_thread=true):MERGE2(max_interval=10000;min_interval=5000):FD(down_thread=true;max_tries=5;shun=true;timeout=2500;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=true;gc_lag=100;retransmit_timeout=3000;up_thread=true):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):pbcast.GMS(down_thread=true;join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=false;up_thread=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setFetchInMemoryState(boolean) with parameter "true" of type class java.lang.Boolean
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setInitialStateRetrievalTimeout(long) with parameter "5000" of type class java.lang.Long
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setSyncReplTimeout(long) with parameter "10000" of type class java.lang.Long
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setLockAcquisitionTimeout(long) with parameter "15000" of type class java.lang.Long
2006-10-23 18:32:06,578 [main] WARN org.jboss.cache.TreeCache - No transaction manager lookup class has been defined. Transactions cannot be used
2006-10-23 18:32:06,593 [main] DEBUG org.jboss.cache.TreeCache - Not using an EvictionPolicy
2006-10-23 18:32:06,671 [main] INFO org.jboss.cache.factories.InterceptorChainFactory - interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
class org.jboss.cache.interceptors.TxInterceptor
class org.jboss.cache.interceptors.CacheMgmtInterceptor
2006-10-23 18:32:06,703 [main] DEBUG org.jboss.cache.TreeCache - cache mode is REPL_ASYNC
Here is the log when it works :
2006-10-23 18:34:21,234 [main] INFO org.jboss.cache.PropertyConfigurator - Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@158f1fa
2006-10-23 18:34:21,812 [main] INFO org.jboss.cache.PropertyConfigurator - configure(): attribute size: 11
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute IsolationLevel to NONE
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute CacheMode to REPL_ASYNC
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setUseReplQueue(boolean) with parameter "false" of type class java.lang.Boolean
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setReplQueueInterval(long) with parameter "0" of type class java.lang.Long
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setReplQueueMaxElements(int) with parameter "0" of type class java.lang.Integer
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute ClusterName to lbsCache
2006-10-23 18:34:21,828 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setClusterConfig(org.w3c.dom.Element) with parameter "[config: null]" of type class org.apache.xerces.dom.DeferredElementImpl
2006-10-23 18:34:21,828 [main] INFO org.jboss.cache.TreeCache - setting cluster properties from xml to: TCP(bind_addr=cerise;loopback=true;start_port=7800):TCPPING(down_thread=true;initial_hosts=cerise[7800],poire[7800];num_initial_members=3;port_range=1;timeout=3500;up_thread=true):MERGE2(max_interval=10000;min_interval=5000):FD(down_thread=true;max_tries=5;shun=true;timeout=2500;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=true;gc_lag=100;retransmit_timeout=3000;up_thread=true):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):pbcast.GMS(down_thread=true;join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=false;up_thread=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
2006-10-23 18:34:21,828 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setInitialStateRetrievalTimeout(long) with parameter "5000" of type class java.lang.Long
2006-10-23 18:34:21,828 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setSyncReplTimeout(long) with parameter "10000" of type class java.lang.Long
2006-10-23 18:34:21,828 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setLockAcquisitionTimeout(long) with parameter "15000" of type class java.lang.Long
2006-10-23 18:34:21,828 [main] WARN org.jboss.cache.TreeCache - No transaction manager lookup class has been defined. Transactions cannot be used
2006-10-23 18:34:21,843 [main] INFO org.jboss.cache.TreeCache - interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.LockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
2006-10-23 18:34:21,843 [main] INFO org.jboss.cache.TreeCache - cache mode is REPL_ASYNC
2006-10-23 18:34:22,281 [main] DEBUG org.jboss.cache.TreeCache - cache properties: TCP(bind_addr=cerise;loopback=true;start_port=7800):TCPPING(down_thread=true;initial_hosts=cerise[7800],poire[7800];num_initial_members=3;port_range=1;timeout=3500;up_thread=true):MERGE2(max_interval=10000;min_interval=5000):FD(down_thread=true;max_tries=5;shun=true;timeout=2500;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=true;gc_lag=100;retransmit_timeout=3000;up_thread=true):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):pbcast.GMS(down_thread=true;join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=false;up_thread=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
2006-10-23 18:34:22,375 [DownHandler (TCP)] INFO org.jgroups.blocks.ConnectionTable - server socket created on 192.168.1.61:7800
2006-10-23 18:34:25,937 [DownHandler (STATE_TRANSFER)] INFO org.jboss.cache.TreeCache - new cache is null (maybe first member in cluster)
2006-10-23 18:34:25,937 [main] INFO org.jboss.cache.TreeCache - state could not be retrieved (must be first member in group)
2006-10-23 18:34:25,953 [UpHandler (STATE_TRANSFER)] INFO org.jboss.cache.TreeCache - viewAccepted(): new members: [192.168.1.61:7800]
It seems that the difference is in the interceptor chain.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980100#3980100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980100
19 years, 8 months
[Installation, Configuration & Deployment] - Re: 4.05GA javamail problem
by bezdomny
Hey Dimitris,
I would if I could, but as soon as the MimeMessage(mailSession) constructor is called and InvocationTargetException is thrown, then I see the java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream
Here is my method:
public void sendMessage() {
try {
Session mailSession = null;
try {
Context ctx = new InitialContext();
Object objref = ctx.lookup("java:/Mail");
mailSession = (Session) PortableRemoteObject.narrow(objref, Session.class);
} catch (NamingException e) {
System.out.println(e);
e.printStackTrace();
}
MimeMessage msg = new MimeMessage(mailSession);
msg.setSubject(subject);
msg.setSentDate(new Date());
msg.setFrom();
msg.setRecipients(Message.RecipientType.TO, getAddresses());
msg.setText(mailMessage);
Transport.send(msg);
}
catch (MessagingException e) {
logger.log(Level.SEVERE, "messaging error: ", e);
}
}
Bob
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980094#3980094
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980094
19 years, 8 months