[JBoss jBPM] - Re: Help needed in deploying 'par' to JBoss server
by kukeltje
anonymous wrote :
| -> Now the Code runs successfully without any errors but the file is not deployed when i checked in jBPM console.
| -> I tried to get the list of process definitions. The size of List is found to be ZERO. This means that my code is not able to reach the jBPM hypersonic DB.
You try to retrieve the processdefinition list in the same application where you deploy the definition? If so, is that after the context is closed and reopened? If not, try this.
anonymous wrote : I used these two methods.
| O ProcessDefinition.parseParZipInputStream
| O deployProcessDefinition
|
| What is the jBPM class that i should actually use ?
|
These are fine, no problem.
anonymous wrote : Is there a jBPM community article that discuss this scenario ?
Not specifically, but all the jBPM unittests do it this way, but you are on the right track.
anonymous wrote : How can i gain visiblity to the jBOSS deployment directory
| The JBoss deployment directory has nothing to do with deploying processdefinitions, at least not in jBPM 3
anonymous wrote :
| and connectivity to the jBPM database ?
|
Turn on the debug level of jBPM and hibernate to see if there is something going on
anonymous wrote :
| Do i need to specify somewhere, like the jBPM database used & server path in a config file ?
If this is from eclipse, yes, you have to configure this in the hibernate.cfg.xml file
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240553#4240553
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240553
16 years, 10 months
[Beginners Corner] - deploying brms issues
by rnbguy
hi guys, im having alot of problems deploying brms and i'd appreciate a bit of help if possible, as ive been trying for days before anoying you.
I've installed:
jboss-web-2.1.2.GA.tar.gz and jdk-1_5_0_12-linux-i586
------------------------
just fine and it starts:
Jun 28, 2009 2:42:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 28, 2009 2:42:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/drools-jbrms] startup failed due to previous errors
Jun 28, 2009 2:42:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 28, 2009 2:42:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/repository] startup failed due to previous errors
Jun 28, 2009 2:42:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 28, 2009 2:42:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/logs] startup failed due to previous errors
Jun 28, 2009 2:42:42 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-1977
Jun 28, 2009 2:42:42 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jun 28, 2009 2:42:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5034 ms
-------------------------
although going to http://[ipofserver]:1977/ doesnt show anything it atleast shows "page not found" which means its listening and answering im guessing.
now when i deploy just drools-jbrms.war into the webapps directory it seems to deploy just fine but when i load the webpage i then get this error:
ERROR 28-06 14:45:31,811 (Contexts.java:flushAndDestroyContexts:335) could not discover transaction status
ERROR 28-06 14:45:31,839 (ContextualHttpServletRequest.java:run:60) ended request due to exception
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
...
-----------------------------------------
this was probably because i removed:
/var/www/html/jboss-web-2.1.2.GA/lib/el-api.jar
putting that file back gives me this when i load the webpage:
ERROR 28-06 15:01:55,454 (Contexts.java:flushAndDestroyContexts:335) could not discover transaction status
ERROR 28-06 15:01:55,491 (ContextualHttpServletRequest.java:run:60) ended request due to exception
javax.servlet.ServletException: java.lang.LinkageError: loader constraints violated when linking javax/el/ExpressionFactory class
------------------------------------
please helppppp i want to finish this tonight for my next step in this project.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240537#4240537
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240537
16 years, 10 months
[Clustering/JBoss] - Re: Lost in the documentation UDP->TCP
by giddion
Ok to update this thread in case anyone else is looking for the same solution. I followed the post by bstansberry and modified my init script. Ended up with this run command:
| /opt/jboss/bin/run.sh -c all -b 0.0.0.0 -g cameldev -Djboss.default.jgroups.stack=tcp -Djgroups.tcpping.initial_hosts=cameldev1:7600,cameldev2:7600
|
Which critically fails the server start. I looked over the default values in jgroups-channelfactory-stacks.xml and realized the fault.
Functional run command:
| /opt/jboss/bin/run.sh -c default -b 0.0.0.0 -g cameldev -Djboss.default.jgroups.stack=tcp -Djgroups.tcpping.initial_hosts=cameldev1[7600],cameldev2[7600]
|
The key difference being how the ports are identifed.
Also in case it helps someone, here is my modified init script
| #!/bin/sh
| #
| # $Id: jboss_init_redhat.sh 81068 2008-11-14 15:14:35Z dimitris(a)jboss.org $
| #
| # JBoss Control Script
| # chkconfig: - 85 15
| # description: Runs JBoss service
| #
|
| #define where jboss is - this is the directory containing directories log, bin, conf etc
| JBOSS_HOME=${JBOSS_HOME:-"/opt/jboss"}
|
| #Define location for console log
| JBOSS_CONSOLE="$JBOSS_HOME/server/default/log/jboss.log"
|
| #define the user under which jboss will run, or use 'RUNASIS' to run as the current user
| JBOSS_USER=${JBOSS_USER:-"jboss"}
|
| #make sure java is in your path
| JAVAPTH=${JAVAPTH:-"/usr/java/jdk1.6.0_14"}
|
| #configuration to use, usually one of 'minimal', 'default', 'all'
| JBOSS_CONF=${JBOSS_CONF:-"default"}
|
| #IP Address to Bind to 0.0.0.0 binds all IP default is loopback only
| JBOSS_HOST="0.0.0.0"
|
| #Partition Name for Clustering
| JBOSS_PARTION="cameldev"
|
| #JGroups Stack leave blank for default UDP stack
| JGROUPS_STACK="tcp"
|
| #Cluster Hosts if Stack is tcp and TCPPing is enabled in jgroups-channelfactory-stacks.xml
| JGROUPS_HOSTS="cameldev1[7600],cameldev2[7600]"
|
| #If JBOSS_HOST specified, use -b to bind jboss services to that address
| JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"}
|
| #If JBOSS_PARTION specified, use -g to bind jboss services to that address
| JBOSS_PARTION_NAME=${JBOSS_PARTION:+"-g $JBOSS_PARTION"}
|
| #Set command line flag for JGroups stack
| JGROUPS_STACK_LINE=${JGROUPS_STACK:+"-Djboss.default.jgroups.stack=$JGROUPS_STACK"}
|
| #Set command line flag for JGroup Inital Hosts
| JGROUPS_HOSTS_LINE=${JGROUPS_HOSTS:+"-Djgroups.tcpping.initial_hosts=$JGROUPS_HOSTS"}
|
| #define the classpath for the shutdown class
| JBOSSCP=${JBOSSCP:-"$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"}
|
| #define the script to use to start jboss
| JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF $JBOSS_BIND_ADDR $JBOSS_PARTION_NAME $JGROUPS_STACK_LINE $JGROUPS_HOSTS_LINE"}
|
| if [ "$JBOSS_USER" = "RUNASIS" ]; then
| SUBIT=""
| else
| SUBIT="su - $JBOSS_USER -c "
| fi
|
| if [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then
| # ensure the file exists
| touch $JBOSS_CONSOLE
| if [ ! -z "$SUBIT" ]; then
| chown $JBOSS_USER $JBOSS_CONSOLE
| fi
| fi
|
| if [ -n "$JBOSS_CONSOLE" -a ! -f "$JBOSS_CONSOLE" ]; then
| echo "WARNING: location for saving console log invalid: $JBOSS_CONSOLE"
| echo "WARNING: ignoring it and using /dev/null"
| JBOSS_CONSOLE="/dev/null"
| fi
|
| #define what will be done with the console log
| JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/dev/null"}
|
| JBOSS_CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH"
| JBOSS_CMD_STOP=${JBOSS_CMD_STOP:-"java -classpath $JBOSSCP org.jboss.Shutdown --shutdown"}
|
| if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then
| export PATH=$PATH:$JAVAPTH
| fi
|
| if [ ! -d "$JBOSS_HOME" ]; then
| echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME
| exit 1
| fi
|
| echo JBOSS_CMD_START = $JBOSS_CMD_START
|
| case "$1" in
| start)
| cd $JBOSS_HOME/bin
| if [ -z "$SUBIT" ]; then
| eval $JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &
| else
| $SUBIT "$JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &"
| fi
| ;;
| stop)
| if [ -z "$SUBIT" ]; then
| $JBOSS_CMD_STOP
| else
| $SUBIT "$JBOSS_CMD_STOP"
| fi
| ;;
| restart)
| $0 stop
| $0 start
| ;;
| *)
| echo "usage: $0 (start|stop|restart|help)"
| esac
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240534#4240534
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240534
16 years, 10 months
[Performance Tuning] - java.net.SocketException: Too many open files on Red Hat lin
by kiranhk
Dear All,
We are using JBoss 4.2.2GA on a RHEL with Apache as Webserver.
We keep running out of open files whenever after just hrs since the JBoss server is started.
We also increased the ulimit max open files number ffrom 1024 to 8192 but still we seem to be maxing out this number after a few hrs or when doing load testing. The application that is running on the JBoss server makes HTTP connections to other systems using Apache HTTPClient and the code is releasing the connections using the HTTPClient.
can somebody pls help with this issue.
JBoss 4.2.2 GA, RHELinux -- Quad Code 8GBRAM,
There has been some internal JBoss errors which started occurring at a rapid pace and the server.log went up from 900kb to 350mb in a span of 30-60mins. The following are the errors in the server.log. this error is the only one that is logged in this whole 350mb server.log. there has been no other exception/error logged
2009-06-22 16:20:39,512 ERROR [org.apache.tomcat.util.net.JIoEndpoint] Socket accept failed
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:309)
at java.lang.Thread.run(Thread.java:619)
2009-06-22 16:20:39,512 ERROR [org.apache.tomcat.util.net.JIoEndpoint] Socket accept failed
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:309)
at java.lang.Thread.run(Thread.java:619)
thanks in advance
Cheers
Kiran
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240533#4240533
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240533
16 years, 10 months