[Beginners Corner] - Re: JBoss goes down!
by nabieh
Dear Jaikiran,
Thanks for your being concerned about my issue.
I am quite sure that we do not use rs.next unless in reguler if statements and when one record is to be obtained from it:
| ....
| String sql = "select count(*) as COUNT from table";
| if (rs.next()) {
| .....
| int count = rs.get("COUNT");
| }
|
So, it is okay. And I have been in writing J2EE application about 4 years. It is okay.
Since we run JBoss as a service and not a DOS console, I have to review this "SendSignal" to achieve the goal of getting those records, I will update you once get a concern. Will be waiting for the JBoss till it gets into that status and get the logs of the threads. Thanks to you, you gave me a great idea.
Nabieh.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958461#3958461
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958461
19 years, 9 months
[JBoss Seam] - Re: nested datatables with s:link
by lcoetzee
I have found a way using MyFaces Tomahawk's updateActionListener. Something like:
| <h:form id="section_questions">
| <ul id="linkslist">
| <t:dataList value="#{sections}" var="currentSection" layout="simple"
| rendered="#{not empty sections}" id="dt1"
| rowIndexVar="sectionRowIndex">
| <li><h:outputText value="#{currentSection.sectionLabel}" />
|
| <ul>
| <t:dataList value="#{currentSection.questions}"
| var="currentQuestion" layout="simple"
| rowIndexVar="questionRowIndex"
| rendered="#{not empty currentSection.questions}" id="dt2">
| <li><h:commandLink
| action="#{questionSelectionBean.selectQuestion}" id="cl1">
| <h:outputText value="#{currentQuestion.questionLabel}" />
| <t:updateActionListener id="sectionListener"
| property="#{sectionSelectionBean.sectionRowIndex}"
| value="#{sectionRowIndex}" />
|
| <t:updateActionListener id="questionListener"
| property="#{sectionSelectionBean.questionRowIndex}"
| value="#{questionRowIndex}" />
|
| </h:commandLink></li>
| </t:dataList>
|
| </ul>
| </li>
| </t:dataList>
|
| </ul>
| </h:form>
Unfortunately the solution forces me to use a form/commandLink action. I get the following exception when trying to use the s:link.
| ERROR [STDERR] 2006/07/17 03:23:34 com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/secure/questionnaire/sections.xhtml]
| java.lang.ClassCastException: org.jboss.seam.ui.HtmlLink
| at csir.utils.taghandlers.TomahawkUpdateActionListenerHandler.apply(TomahawkUpdateActionListenerHandler.java:76)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
| at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
| at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
| at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
| at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
| at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
| at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
| at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
| at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
| at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
| at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:510)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
I am using a TomahawkUpdateActionListenerHandler as written by Andrew Robinson (http://www.mail-archive.com/users@myfaces.apache.org/msg09735.html)
Any ideas ? Ideally I would like to work with s:link and not have the whole form with javascript as generated by the commandLink.
Regards
Louis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958457#3958457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958457
19 years, 9 months
[JBoss jBPM] - Re: jbpmschema fails to build for CVS HEAD
by jliptak
I edited the build.xml file in jpdl/db to add the following:
<taskdef resource="org/jbpm/ant/jbpm.ant.tasks.properties"
| classpathref="schema.task.classpath" />
| <property name="echocp" refid="schema.task.classpath" />
| <echo message="classpath = ${echocp}" />
This causes the output of the build to be:
install:
| [echo] classpath = C:\projects\hibernate\jBPM\jbpm.3\jpdl\db\src\main\confi
| g;C:\projects\hibernate\jBPM\jbpm.3\jpdl\jar\src\main\config;C:\Documents and Se
| ttings\jliptak\jbpm\repository\antlr\2.7.6rc1\lib\antlr-2.7.6rc1.jar;C:\Document
| s and Settings\jliptak\jbpm\repository\apache-collections\3.1\lib\commons-collec
| tions.jar;C:\Documents and Settings\jliptak\jbpm\repository\apache-fileupload\1.
| 0\lib\commons-fileupload.jar;C:\Documents and Settings\jliptak\jbpm\repository\a
| pache-log4j\1.2.8\lib\log4j.jar;C:\Documents and Settings\jliptak\jbpm\repositor
| y\apache-logging\1.0.4\lib\commons-logging.jar;C:\Documents and Settings\jliptak
| \jbpm\repository\apache-myfaces\1.1.1\lib\jstl.jar;C:\Documents and Settings\jli
| ptak\jbpm\repository\apache-myfaces\1.1.1\lib\myfaces-api.jar;C:\Documents and S
| ettings\jliptak\jbpm\repository\apache-myfaces\1.1.1\lib\myfaces-impl.jar;C:\Doc
| uments and Settings\jliptak\jbpm\repository\asm\1.5.3\lib\asm-attrs.jar;C:\Docum
| ents and Settings\jliptak\jbpm\repository\asm\1.5.3\lib\asm.jar;C:\Documents and
| Settings\jliptak\jbpm\repository\beanshell\1.3.0\lib\bsh.jar;C:\Documents and S
| ettings\jliptak\jbpm\repository\cglib\2.1.3\lib\cglib.jar;C:\Documents and Setti
| ngs\jliptak\jbpm\repository\dom4j\1.6\lib\dom4j.jar;C:\Documents and Settings\jl
| iptak\jbpm\repository\dumbster\1.6\lib\dumbster.jar;C:\Documents and Settings\jl
| iptak\jbpm\repository\ehcache\1.1\lib\ehcache.jar;C:\Documents and Settings\jlip
| tak\jbpm\repository\facelets\1.1.1\lib\jsf-facelets.jar;C:\Documents and Setting
| s\jliptak\jbpm\repository\hibernate\3.1\lib\hibernate3.jar;C:\Documents and Sett
| ings\jliptak\jbpm\repository\hsqldb\1.8.0.2\lib\hsqldb.jar;C:\Documents and Sett
| ings\jliptak\jbpm\repository\jackrabbit\1.0\lib\jackrabbit-core-1.0.jar;C:\Docum
| ents and Settings\jliptak\jbpm\repository\jaxen\1.1beta6\lib\jaxen.jar;C:\Docume
| nts and Settings\jliptak\jbpm\repository\jbossas\core-libs\4.0.3.SP1\lib\jboss-c
| ommon.jar;C:\Documents and Settings\jliptak\jbpm\repository\jbossas\core-libs\4.
| 0.3.SP1\lib\jboss-j2ee.jar;C:\Documents and Settings\jliptak\jbpm\repository\jbo
| ssas\core-libs\4.0.3.SP1\lib\jboss-jmx.jar;C:\Documents and Settings\jliptak\jbp
| m\repository\jbossas\core-libs\4.0.3.SP1\lib\jboss-system.jar;C:\Documents and S
| ettings\jliptak\jbpm\repository\jcr\1.0\lib\jcr-1.0.jar;C:\Documents and Setting
| s\jliptak\jbpm\repository\junit\3.8.1\lib\junit.jar;C:\Documents and Settings\jl
| iptak\jbpm\repository\maven2\ant\ant\1.6.5\ant-1.6.5.jar;C:\Documents and Settin
| gs\jliptak\jbpm\repository\sun-jaf\1.0.2\lib\activation.jar;C:\Documents and Set
| tings\jliptak\jbpm\repository\sun-javamail\1.3.1\lib\mail.jar;C:\Documents and S
| ettings\jliptak\jbpm\repository\sun-servlet\2.4\lib\servlet-api.jar;C:\Documents
| and Settings\jliptak\jbpm\repository\jbpm\jpdl\3.2.Alpha1-SNAPSHOT\lib\jbpm-jpd
| l.jar;C:\Documents and Settings\jliptak\jbpm\repository\jbpm\identity\3.2.Alpha1
| -SNAPSHOT\lib\jbpm-identity.jar
| [jbpmschema] using jbpm configuration jbpm/db2.jbpm.cfg.xml
|
| BUILD FAILED
| C:\projects\hibernate\jBPM\jbpm.3\build\build.xml:36: The following error occurr
| ed while executing this line:
| java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
So the classpath sent into the taskdef is just fine containing everything that is needed. I'm using Apache Ant version 1.6.5 compiled on June 2 2005
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958456#3958456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958456
19 years, 9 months
[Javassist user questions] - AccessControlException on generated classes due to missing
by renat-zubairov
I have a problem with Tapestry/HiveMind application which uses Javassist for bytecode manipulation. It seems that newly created classes that are loaded by Javassist do not inherit ProtectionDomain from the other classes, this leads to the problem that application server WebSphere can not associate them with any of the JAR files and apply a security policy to them. The problem is visible on the following stack trace, you can see that location of the code that causes security exception is unknown (null).
Environment is WebSphere 5 with Secruty ON (Enforce Java2 Security):
[7/15/06 15:22:41:049 CEST] 6642251f SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission.
Please refer to Problem Determination Guide for further information.
Permission:
/opt/WebSphere/AppServer/installedApps/servernameNetwork/sjrthr.ear/sjrtpg.war/WEB-INF/lib/tapestry-4.1.jar : access denied (java.io.FilePermission /opt/We
bSphere/AppServer/installedApps/servernameNetwork/sjrthr.ear/sjrtpg.war/WEB-INF/lib/tapestry-4.1.jar read)
Code:
$ApplicationInitializer_10c725a4dba in {null code URL}
Stack Trace:
java.security.AccessControlException: access denied (java.io.FilePermission /opt/WebSphere/AppServer/installedApps/servernameNetwork/sjrthr.ear/sjrtpg.war/WEB-IN
F/lib/tapestry-4.1.jar read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled Code))
at java.security.AccessController.checkPermission(AccessController.java(Compiled Code))
at java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
at java.lang.SecurityManager.checkRead(SecurityManager.java(Compiled Code))
at java.util.zip.ZipFile.(ZipFile.java(Compiled Code))
at java.util.zip.ZipFile.(ZipFile.java(Inlined Compiled Code))
at com.ibm.ws.classloader.Handler$ClassLoaderURLConnection.getInputStream(Handler.java(Compiled Code))
at java.net.URL.openStream(URL.java(Inlined Compiled Code))
at com.ibm.ws.classloader.SinglePathClassProvider.getResourceAsStream(SinglePathClassProvider.java(Inlined Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.localGetResourceAsStream(CompoundClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.getResourceAsStream(CompoundClassLoader.java(Compiled Code))
at javassist.LoaderClassPath.openClassfile(LoaderClassPath.java:70)
at javassist.ClassPoolTail.openClassfile(ClassPoolTail.java:283)
at javassist.ClassPool.openClassfile(ClassPool.java(Inlined Compiled Code))
at javassist.CtClassType.getClassFile2(CtClassType.java(Compiled Code))
at javassist.CtClassType.subtypeOf(CtClassType.java:267)
at javassist.compiler.MemberResolver.compareSignature(MemberResolver.java:203)
at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:97)
at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:637)
at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:614)
at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156)
at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:323)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
at javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:384)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:348)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:285)
at javassist.compiler.Javac.compileBody(Javac.java:208)
at javassist.CtBehavior.setBody(CtBehavior.java:188)
at javassist.CtBehavior.setBody(CtBehavior.java:163)
at org.apache.hivemind.service.impl.ClassFabImpl.addMethod(ClassFabImpl.java:288)
at org.apache.hivemind.service.impl.LoggingInterceptorFactory.addServiceMethodImplementation(LoggingInterceptorFactory.java:120)
at org.apache.hivemind.service.impl.LoggingInterceptorFactory.addServiceMethods(LoggingInterceptorFactory.java:159)
at org.apache.hivemind.service.impl.LoggingInterceptorFactory.constructInterceptorClass(LoggingInterceptorFactory.java:214)
at org.apache.hivemind.service.impl.LoggingInterceptorFactory.createInterceptor(LoggingInterceptorFactory.java:251)
at org.apache.hivemind.impl.ServiceInterceptorContributionImpl.createInterceptor(ServiceInterceptorContributionImpl.java:95)
at org.apache.hivemind.impl.InterceptorStackImpl.process(InterceptorStackImpl.java:116)
at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.addInterceptors(AbstractServiceModelImpl.java:85)
at org.apache.hivemind.impl.servicemodel.PooledServiceModel.constructServiceProxy(PooledServiceModel.java:154)
at org.apache.hivemind.impl.servicemodel.PooledServiceModel.(PooledServiceModel.java:130)
at org.apache.hivemind.impl.servicemodel.PooledServiceModelFactory.createServiceModelForService(PooledServiceModelFactory.java:26)
at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:208)
at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:223)
at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:207)
at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:105)
at org.apache.hivemind.schema.rules.ServiceTranslator.translate(ServiceTranslator.java:40)
at org.apache.hivemind.service.impl.BuilderPropertyFacet.getFacetValue(BuilderPropertyFacet.java:55)
at org.apache.hivemind.service.impl.BuilderFactoryLogic.wireProperty(BuilderFactoryLogic.java:357)
at org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:320)
at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:62)
at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158)
at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140)
at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69)
at $ApplicationInitializer_10c725a4dba._service($ApplicationInitializer_10c725a4dba.java)
at $ApplicationInitializer_10c725a4dba.initialize($ApplicationInitializer_10c725a4dba.java)
at $ApplicationInitializer_10c725a4db9.initialize($ApplicationInitializer_10c725a4db9.java)
at $ApplicationInitializer_10c725a4dbd.initialize($ApplicationInitializer_10c725a4dbd.java)
at $ApplicationInitializer_10c725a4db2.initialize($ApplicationInitializer_10c725a4db2.java)
at $ApplicationInitializer_10c725a4db1.initialize($ApplicationInitializer_10c725a4db1.java)
at org.apache.tapestry.ApplicationServlet.initializeApplication(ApplicationServlet.java:299)
at org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:198)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958455#3958455
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958455
19 years, 9 months