[JBoss jBPM] - error start JBOSS Application Server
by miafonso2123
Help me!!!!!!!!!!!
error start application server JBPM jbpm-jpdl-3.2.3
anonymous wrote : ===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: C:\BICJava\jbpm-jpdl-3.2.3\server
|
| JAVA: C:\Arquivos de programas\Java\jdk1.5.0_08\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
| ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: C:\Arquivos de programas\Java\jdk1.5.0_08\lib\tools.jar;C:\BICJava\
| jbpm-jpdl-3.2.3\server\bin\run.jar
|
| ===============================================================================
|
| 13:35:56,062 WARN [Server] Caught Throwable Error, this probably means we've al
| ready set the URLStreamHAndlerFactory before
| 13:35:56,109 INFO [Server] Starting JBoss (MX MicroKernel)...
| 13:35:56,109 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=
| JBoss_4_2_2_GA date=200710221139)
| 13:35:56,125 INFO [Server] Home Dir: C:\BICJava\jbpm-jpdl-3.2.3\server
| 13:35:56,125 INFO [Server] Home URL: file:/C:/BICJava/jbpm-jpdl-3.2.3/server/
| 13:35:56,125 INFO [Server] Patch URL: null
| 13:35:56,125 INFO [Server] Server Name: jbpm
| 13:35:56,125 INFO [Server] Server Home Dir: C:\BICJava\jbpm-jpdl-3.2.3\server\s
| erver\jbpm
| 13:35:56,125 INFO [Server] Server Home URL: file:/C:/BICJava/jbpm-jpdl-3.2.3/se
| rver/server/jbpm/
| 13:35:56,125 INFO [Server] Server Log Dir: C:\BICJava\jbpm-jpdl-3.2.3\server\se
| rver\jbpm\log
| 13:35:56,125 INFO [Server] Server Temp Dir: C:\BICJava\jbpm-jpdl-3.2.3\server\s
| erver\jbpm\tmp
| 13:35:56,125 INFO [Server] Root Deployment Filename: jboss-service.xml
| 13:35:56,328 WARN [BasicMBeanRegistry] preRegister() failed for JMImplementatio
| n:type=MBeanServerDelegate:
| java.lang.NoSuchFieldError: TRACE
| at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.
| java:85)
| at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
| at org.jboss.mx.server.AbstractMBeanInvoker.initAttributeContexts(Abstra
| ctMBeanInvoker.java:1009)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.initAttributeContexts(Model
| MBeanInvoker.java:597)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInv
| oker.java:647)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
| icMBeanRegistry.java:697)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
| eanRegistry.java:211)
| at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:215)
| at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServer
| BuilderImpl.java:71)
| at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory
| .java:316)
| at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFact
| ory.java:219)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:420)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Failed to boot JBoss:
| java.lang.RuntimeException: Cannot create MBeanServer
| at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:239)
| at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServer
| BuilderImpl.java:71)
| at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory
| .java:316)
| at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFact
| ory.java:219)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:420)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.management.NotCompliantMBeanException: Cannot register MBean: J
| MImplementation:type=MBeanServerDelegate
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
| eanRegistry.java:314)
| at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:215)
| ... 8 more
| Caused by: javax.management.RuntimeErrorException
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
| icMBeanRegistry.java:725)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
| eanRegistry.java:211)
| ... 9 more
| Caused by: java.lang.NoSuchFieldError: TRACE
| at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.
| java:85)
| at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
| at org.jboss.mx.server.AbstractMBeanInvoker.initAttributeContexts(Abstra
| ctMBeanInvoker.java:1009)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.initAttributeContexts(Model
| MBeanInvoker.java:597)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInv
| oker.java:647)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
| icMBeanRegistry.java:697)
| ... 10 more
| Pressione qualquer tecla para continuar. . .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173330#4173330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173330
16 years, 3 months
[JBoss jBPM] - Re: Error while attempting to send mail
by sagyer
"kukeltje" wrote : seems to have nothing to do with jBPM. Can you send email from java at all?
Yes, I can send mail from java from the same machine. Here is the code that sends the mail. I have tested this code and it works :
| public static void main(String[] args) throws AddressException,
| MessagingException {
|
| String smtpHost = "172.25.8.13";
|
| String from = "sagar.yerunkar(a)lntinfotech.com";
| String to = "sagar.yerunkar(a)lntinfotech.com";
| String cc = "sagyer(a)gmail.com";
| String bcc = "";
| String message = "Test Mail";
| String subject = "Test Subject";
|
| Properties props = new Properties();
| props.put("mail.smtp.host", smtpHost);
| Session session = Session.getInstance(props);
|
| // Instantiate a message
| Message msg = new MimeMessage(session);
|
| // Set message attributes
| msg.setFrom(new InternetAddress(from));
| InternetAddress[] address = { new InternetAddress(to) };
|
| msg.setRecipients(Message.RecipientType.TO, address);
| if (!("".equals(cc))) {
| InternetAddress[] addresscc = { new InternetAddress(cc) };
| msg.setRecipients(Message.RecipientType.CC, addresscc);
| }
| if (!("".equals(bcc))) {
| InternetAddress[] addressbcc = { new InternetAddress(bcc) };
| msg.setRecipients(Message.RecipientType.BCC, addressbcc);
| }
| msg.setSubject(subject);
| msg.setSentDate(new Date());
|
| // Set message content
| msg.setText(message);
| // ////////////////////////////////////////
|
| // Send the message
| Transport.send(msg);
|
| System.out.println("Sent mail successfully");
|
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173217#4173217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173217
16 years, 3 months
[JBoss jBPM] - Re: Are ProcessDefinitions singletons or prototypes?
by joe_jboss@freemansoft.com
Yes, our research made us think that also. The current serialization serializes the process definition with the process instance so you end up with multiple copies when you deserialize it. We'd really like to change the serialization so that it writes out the process definition name and version when serializing and then restores the process definition by looking up the name and version using the ProcessState default subprocess resolver.
We had thought of subclassing process definition so that it would do this as part of a readReplace() method but the use of ProcessDefinition class is hard coded into the jpdl xml reader so there is no way to replace it with a different class. Process Definition should be an interface or the definition instantiation code should get the process definition class from a factory or from the configuration files.
Instead, when we write out process instances, we remove the process definitions from the process instances and put the name of the definitions on the transients map on the process instance. (Note that it's called transients but its still serialized) After we read the process instances back in, we walk the process instance tree attaching the process definitions based on the name previously in the transients map.
We probably serialize BPM instances 1.5 million times per day so the savings can add up.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173056#4173056
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173056
16 years, 3 months