[JBoss jBPM] - Re: Is mail blocking?
by frinux
Ok it seems my ActionHandler was wrong.
But now another problem. It seems jBPM wants to log the exception in the database, and that tjis exception is too long for mysql column :
106375 [http-8080-Processor23] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 22001
| 106375 [http-8080-Processor23] ERROR org.hibernate.util.JDBCExceptionReporter - Data truncation: Data too long for column 'EXCEPTION_' at row 1
| 01:54:05,734 ERROR WSCreerDemande:137 - error when processing creerDemande : org.jbpm.graph.def.DelegationException: could not insert: [org.jbpm.graph.log.ActionLog]
| org.jbpm.graph.def.DelegationException: could not insert: [org.jbpm.graph.log.ActionLog]
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228879#4228879
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228879
16 years, 12 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Which folder does hibernate.jar, hibernate-annotations.j
by ezanih
Jaikiran:
Many thanks !!! I cannot thank you enough !!! Thank you !!! Thank you !!! Thank you !!!
I just realized that up till today, I have been WRONGLY copying all the physical files and messing up my JBoss AS server's libraries. Unbelievable!!! I cannot believe how I ended up in this mess and yet got my programs to work thus far by physically copying the files !!!
You are absolutely right !!! The best way is to create a lib folder within Eclipse and copy and paste directly any library or jar files you may need through the Package Explorer IDE.
What happens is that Eclipse will create that lib folder I just created within the Eclipse IDE physically into the Windows file system under the Eclipse workspace and in your relevant application's project folder. So for example you would have all your library files in a folder like this : C:\MyEclipseWorkspace\MyJavaProject\lib.
It can be very confusing ... yes, it can be. I mean, how many lib folders can you see in a typical Java programmer's PC. There's one in the JDK, one the JRE, two lib folders in the JBoss AS server directory and also one lib folder each Hibernate package you download. There are also many common files with the same names splattered everywhere...such as javaassist.jar (there's one in JBoss and one in the JDK.1.5.0_14). Also one can be confused with where to save ojcbd14.jar, for example.
With respect to ojcbd14.jar, if I installed my Oracle client and it saved ojcbd14.jar in Folder A, what would happen if I get an updated version of Oracle (for example 11)? The same with my Hibernate packages I downloaded. What do I do with all the zip and gz.tar files? I have to uncompress and expand them to some folder. So if I want to use hibernate-entitymanager-3.4.0.jar, for example, is it correct do download hibernate-entitymanager-3.4.0.zip from the Hibernate download site and then expand it to C:\hibernate-entitymanager-3.4.0 and then copy the resulting hibernate-entitymanager.jar into my lib folder within Eclipse? I think that's probably the way so that hibernate-entitymanager.jar would be copied into my project's lib folder and not affect others. I guess the downside is there will be a lot of duplicate files for each project setup. I thought just copying the most updated jar ONLY ONCE to the JBoss\server\lib folder would suffice to serve all the Java apps I create which uses JBoss. I was wrong. Anyway, I will have to try to adapt to this new habit right away. Thanks once again!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228868#4228868
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228868
16 years, 12 months
[Clustering/JBoss] - Re: JBoss Cluster using Gossip Router
by amardeep21
Hi,
We are starting jboss using -b option.
./run.sh -c vpn -b vpnip
./run.sh -c static -b staticip
So, bind address should be of VPN node and connection should go to VPN IP :5446
instead if keep trying on STATIC IP:5446
One thing to notice was the jndi lookup goes to VPN IP but why it slips to STATIC IP
to create ejb connection where it should go to VPN IP.
I have compared the config and can't locate what could be the problem.
Extract from the jboss-service.xml
<mbean code="org.jboss.naming.NamingService"
| name="jboss:service=Naming"
| xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
| <!-- The call by value mode. true if all lookups are unmarshalled using
| the caller's TCL, false if in VM lookups return the value by reference. -->
| <attribute name="CallByValue">false</attribute>
| <!-- The listening port for the bootstrap JNP service. Set this to -1
| to run the NamingService without the JNP invoker listening port. -->
| <attribute name="Port">1099</attribute>
| <attribute name="BindAddress">${jboss.bind.address}</attribute>
| <!-- The port of the RMI naming service, 0 == anonymous -->
| <attribute name="RmiPort">1098</attribute>
| <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
| <!-- The thread pool service used to control the bootstrap lookups -->
| <depends optional-attribute-name="LookupPool"
| proxy-type="attribute">jboss.system:service=ThreadPool</depends>
| <!-- An example of using the unifed invoker as the transport.
| <depends optional-attribute-name="InvokerProxyFactory"
| proxy-type="attribute">jboss:service=proxyFactory,type=unified,target=Naming
| </depends>-->
| <depends optional-attribute-name="Naming"
| proxy-type="attribute">jboss:service=NamingBeanImpl</depends>
| </mbean>
<!-- The Connector is the core component of the remoting server service. -->
| <!-- It binds the remoting invoker (transport protocol, callback configuration, -->
| <!-- data marshalling, etc.) with the invocation handlers. -->
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:service=Connector,transport=socket"
| display-name="Socket transport Connector">
|
| <attribute name="Configuration">
| <config>
| <!-- Other than transport type and handler, none of these configurations are required (will just use defaults). -->
| <invoker transport="socket">
| <attribute name="dataType" isParam="true">invocation</attribute>
| <attribute name="marshaller" isParam="true">org.jboss.invocation.unified.marshall.InvocationMarshaller</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.invocation.unified.marshall.InvocationUnMarshaller</attribute>
| <attribute name="clientMaxPoolSize" isParam="true">2000</attribute>
| <attribute name="socketTimeout" isParam="true">600000</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">4446</attribute>
| <!-- <attribute name="clientConnectAddress">216.23.33.2</attribute> -->
| <!-- <attribute name="clientConnectPort">7777</attribute> -->
| <attribute name="enableTcpNoDelay" isParam="true">true</attribute>
| <!-- <attribute name="backlog">200</attribute>-->
Thanks,
Amardeep
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228858#4228858
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228858
16 years, 12 months