[jboss-user] [Beginner's Corner] - Connection handle has been closed and is unusable

2009-09-12 Thread wabania
i am using jboss4.0.5. recently , the log comes up such error frequently:
connection handle has been closed and is unusable query.
i have checked my code and correct one error which have not closed the 
connection,but after that ,the error still going on.
can anybody help me, thank you very much!

private static DataSource ds;
static {
readJRunOracleDSInfo();


Context initContext = new 
InitialContext();
Context envContext  = 
(Context)initContext.lookup("java:/comp/env");
ds = 
(DataSource)envContext.lookup("IBASDB");

}
} else {
try {
Class.forName(jdbcDriver);
} catch (Exception exp) {
logger.error(exp);
}
}
}

public Connection getConnection() throws SQLException {
logger.debug(">>>getConnection()");

if (dbConn == null) {
try {
dbConn = newConnection();
} catch (Exception e) {
logger.error(e);
e.printStackTrace();
//throw e;
}
}

logger.debug("<<>>closeConnection()");
if (!transactionStarted) {
try {
DbUtils.close(dbConn);

} catch (SQLException e) {
logger.error(e);
throw e;
}
dbConn = null;
}

}


10:28:46,983 ERROR [DbHelper] java.sql.SQLException: Connection handle has been 
closed and is unusable Query: qpay_budget_maintain_pck.prc_check_button_status 
Parameters: [1493, 23991, 96, 30]
10:28:46,983 DEBUG [Session] >>>closeConnection()
10:28:46,983 DEBUG [Session] <

[jboss-user] [JBoss Remoting Users] - Re: Problem running with Maven

2009-09-12 Thread ron.si...@jboss.com
I've closed JBREM-1151, having updated the Remoting Guide.  The tool Tattletale 
was extremely useful.  It's available from http://www.jboss.org/tattletale.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254918#4254918

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254918
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: JNDI-Lookups for the ProcessEngine in Tomcat

2009-09-12 Thread sebastian.s
I tried it by using Configuration.getProcessEngine() in a webservice running on 
the same Tomcat server but I am getting an exception:


  | java.lang.NoClassDefFoundError: Could not initialize class 
org.jbpm.pvm.internal.env.JbpmConfigurationParser
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254911#4254911

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254911
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - JBOSS Deployment Exception

2009-09-12 Thread cdub
Any idea as to the cause of the exception below ?


  | 15:53:46,117 WARN  [HDScanner] Scan failed
  | org.jboss.deployers.spi.DeploymentException: Exception determining 
structure: AbstractVFSDeployment(GGGoMobile.ear)
  | at 
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  | at 
org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
  | at 
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
  | at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:344)
  | at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
  | at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  | at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
  | at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.RuntimeException: Error determining structure: 
GGGoMobile.ear
  | at 
org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
  | at 
org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
  | at 
org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
  | at 
org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
  | at 
org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
  | ... 16 more
  | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: 
Element {http://java.sun.com/xml/ns/j2ee}application is not bound as a global 
element.
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
  | at 
org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:161)
  | at 
org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:160)
  | ... 20 more
  | Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element 
{http://java.sun.com/xml/ns/j2ee}application is not bound as a global element.
  | at 
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:660)
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
  | at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
  | at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown 
Source)
  | at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
  | at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
 Source)
  | at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
  | at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
  | at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
  | at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
  | at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  | at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  | at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBo

[jboss-user] [jBPM Users] - Re: JNDI-Lookups for the ProcessEngine in Tomcat

2009-09-12 Thread sebastian.s
Hello Joram,

thank you for your answer. I tried to do this but I did not succeed. Might be 
too my lack of knowledge about JDNI. For me it is not important to use JDNI but 
to access the same which is running.

So if I want to access the process engine instance running in Tomcat I do it by 
using the static method Configuration.getProcessEngine() ?? This works in jBPM 
4.1 or is this planned for future releases? If it does not work like this how 
does the console appplication access the engine?

Have a nice weekend!

Sebastian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254906#4254906

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254906
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: JBOSS Startup Error - InstanceAlreadyExistsException

2009-09-12 Thread cdub
The only thing besides standard Java libs that it uses is Hibernate. I also use 
some JAVAX classes (javax.naming, javax.servlet, javax.servlet.http) which I 
reference by pointing to the JBOSS_HOME\common\lib directory. Could that be the 
problem ? I'm pointing to all JARS in that directory rather than a specific JAR 
because I don't know which JAR contains those classes.

I have not tried starting JBOSS from the command line and manually deploying. 
Do you think that would make any difference ? 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254902#4254902

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254902
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: JBOSS Startup Error - InstanceAlreadyExistsException

2009-09-12 Thread jaikiran
What does your application contain? Does it contain any JBoss specific jar or 
xml files? How are you deploying this application? Does it work fine if you 
don't use the IDE and deploy the application manually and start the server from 
command prompt?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254899#4254899

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254899
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: JBOSS Startup Error - InstanceAlreadyExistsException

2009-09-12 Thread cdub
It is a clean JBoss install. I have done nothing to it. This happens when I 
deploy my application. Your help would be most appreciated. Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254898#4254898

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254898
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - JBossWS wsdl not accessible

2009-09-12 Thread agohar
Hi,

I am currently working on Jboss esb with Jboss 5 and JDK 6. I am trying to use 
SOAPProcessor action for esb. I've created a webservice using jbossws 
annotations and deployed it as part of my esb archive. I can see the webservice 
endpoint from jbossws fine. But when i click it to access the webservice, it 
doesn't work. I tried to create the webservice client using wsconsume for this 
service but client can't access wsdl and return 404.  I can see wsdl generated 
in data folder fine. I've tried to use -b 0.0.0.0 while starting jboss but in 
vain.

Any idea what i am doing wrong?

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254894#4254894

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254894
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: JNDI-Lookups for the ProcessEngine in Tomcat

2009-09-12 Thread jbarrez
The ProcessEngine on Tomcat is not bound to JNDI (there is no way to write in 
the JNDI tree of Tomcat, which is possible in JBoss). A solution to this could 
be to register the process engine in the jndi tree by modifying the Tomcat 
config. But that's not a path we want to take, since we want to simplify the 
Process Engine lookup in the future (ie not through JNDI)

The Tomcat integration just gets a default process engine by calling 
Configuration.getProcessEngine(). This will oncstruct a ProcessEngine using a 
jbpm.cfg.xml on the classpath (which is actually in a jar in /lib folder of 
Tomcat). People who want to use the same ProcessEngine, must just call this 
same method.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254891#4254891

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254891
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Javassist Users] - Re: Instrumenting SQL execution times (Statement and Prepare

2009-09-12 Thread jaikiran
Instead of writing up something new, you could probably use existing tools like 
JAMon? http://jamonapi.sourceforge.net/

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254890#4254890

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254890
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: JNDI-Lookups for the ProcessEngine in Tomcat

2009-09-12 Thread sebastian.s
I encountered no problems using the console.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254888#4254888

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254888
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: JBOSS Startup Error - InstanceAlreadyExistsException

2009-09-12 Thread jaikiran
Is this a clean JBoss or have you changed anything on the server? Also does 
this exception/WARN messages appear only when you deploy your application? Does 
the server start cleanly from the command prompt without your application 
deployed in it?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254887#4254887

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254887
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: Deployment problem with migration to 5.1.0 GA

2009-09-12 Thread jaikiran
anonymous wrote : Was this ever resolved. I'm running into the same issue.

The fix will be part of the soon to be release AS 5.2 Beta version. However 
there are workarounds in the meantime.

1) (simple) workaround : Remove any *.jsfdia or *.spdia file(s) from the 
WEB-INF of the war file (note: those files might be "hidden")

OR

2) (a bit complex) workaround is discussed here 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159645

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254886#4254886

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254886
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: About cancel the timer in timer action handler

2009-09-12 Thread kukeltje
I have no clue what you are trying to achieve and mean with your latest post...

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254883#4254883

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: workflow design about wait states

2009-09-12 Thread kukeltje
No, there is not transition *named* join, there only is a transition *to* join. 
And take() without any param should also work. It takes the default one if 
there is only one (duh.. ;-))

You do not need a sleep at all since the join should only continue if *all* 
incoming transitions are triggered. I think you misunderstood Joram (or he 
misunderstood you)

Can you make a unitest with everything embedded like in 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158424 so the 
actionhandlers are inner classes etc... 

Just start, fork, two custom nodes (async) , one join and one end. Lets first 
get that working (and include it as an example eventually in jBPM.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254880#4254880

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254880
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Getting row number in rich:dataTable

2009-09-12 Thread zabin7
Hello All

I was trying to get row number/ index in the rich:dataTable.  Can anybody tell 
me how can get that.

Thanks 

Zabin

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254874#4254874

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254874
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: About cancel the timer in timer action handler

2009-09-12 Thread sweet_yangyz
Thank you for you help,kukeltje.
Yes ,When the task instance is ended,the timer will be delete automiclly, So I 
try to delete the time directly from  table jbpm_timer by invoke  
"deleteTimer(findTimersByName(...))", but a hibernate update exception will be 
throw,could you prompt me something? :)   thank you again,

Thanx & regard
Sweet.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254872#4254872

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254872
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user