Application logs are not getting logged in the logs defined in jboss 7.0.2
by Kevin Peterson
Hi,
I am using the below appenders in my domain.xml file to point all the logs from my application to app.log. I see the file is getting created but there are no logging happening.
<periodic-rotating-file-handler name="CACHE-FILE" autoflush="true">
<level name="DEBUG"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="app.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="com.abc.cache" use-parent-handlers="false">
<level name="DEBUG"/>
<handlers>
<handler name="CACHE-FILE"/>
</handlers>
</logger>
Thanks,
Kevin Peterson
11 years
[jBPM] - Problem when deploying a jbpm web app into jboss
by Hongsi Hu
Hongsi Hu [https://community.jboss.org/people/crazyindark] created the document:
"Problem when deploying a jbpm web app into jboss"
To view the document, visit: https://community.jboss.org/docs/DOC-48734
--------------------------------------------------------------
Hi all
I'm a newbie to jBPM & jBoss,
I used jBPM installer and tested it well, but then I try to develop a web-app myself, so I download this https://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-ex... https://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-ex... example. I made war package and put it into jboss deployment folder, but it keeps failing. The log says:
16:47:04,169 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."jbpm5webexample.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm5webexample.war".INSTALL: *Failed to process phase INSTALL of deployment "jbpm5webexample.war"*
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: *JBAS011446: Failed to add persistence unit service for org.jbpm.task*
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:383)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: org.jboss.msc.service.DuplicateServiceException: *Service jboss.persistenceunit."jbpm5webexample.war#org.jbpm.task" is already registered*
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:374)
... 9 more
How to resolve this *"jbpm5webexample.war#org.jbpm.task" is already registered* problem? Pls help me on this!
Regards
Hu Hongsi
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-48734]
Create a new document in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
11 years
[jBPM] - Re: some problems with jBpm5.3 using mysql
by dapeng king
dapeng king [https://community.jboss.org/people/dapengking] created the discussion
"Re: some problems with jBpm5.3 using mysql"
To view the discussion, visit: https://community.jboss.org/message/816229#816229
--------------------------------------------------------------
Hi Irshad:
Thanks a lot for your patience . I did as the link you give me above . After I changed all the files , I run the command " ant install.db.files" . And it showed me the "successful" msg . But If I want to start the JBoss , and run the sample attached in the jBpm5.4-final in the eclipse , what should I do?
I looked up in the *build.xml* file , found that the Command Line "install.demo" just call the function "*install.jboss,install.db.files,install.guvnor.into.jboss,install.designer.into.jboss,install.jBPM-gwt-console.into.jboss,install.jBPM-ht.into.jboss,install.form.builder.into.jboss,install.eclipse,install.jBPM.runtime,install.droolsjbpm-eclipse.into.eclipse*" . Could I just change the command for example : I change it into "*install.jboss,install.db.files,install.jBPM-ht.into.jboss,install.eclipse,install.jBPM.runtime,install.droolsjbpm-eclipse.into.eclipse*" , Then run the command "ant install.demo" to install the environment for minimal ? But I did it , it did not work well ... ( after the install command , I can't start the jBoss . The log file tell me the war is deployed failed .)
And then I reinstall all the jBpm5.4 . Changed all the files as the steps . And *did not* change the bulid.xml as I said above . This time I run "ant start.demo" , after the eclipse started , I imported the sample . But I can not run it . The console tells "Unable to connect to server using configuration org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5153&host=127-0-0-1" . And when I visited the jBPM Console in my web browser , it showed the msg as the pic.
https://community.jboss.org/servlet/JiveServlet/showImage/2-816229-20752/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-816229-20...
I don't know what should I do ...
Thanks again , And I feel very sorry to trouble you . Any help will be thankful !
Wishes!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816229#816229]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years
[Datasource Configuration] - OracleValidConnectionChecker in JBOSS 7.1.3 ?
by ANAND KUMAR GEORGE PREM KUMAR
ANAND KUMAR GEORGE PREM KUMAR [https://community.jboss.org/people/georgesg] created the discussion
"OracleValidConnectionChecker in JBOSS 7.1.3 ?"
To view the discussion, visit: https://community.jboss.org/message/816417#816417
--------------------------------------------------------------
I am migrating application from jboss 4.3 to Jboss 7.1.3 Final.
I have used Iron Jacamar Tool to translate the datasource configuration xml from jboss 4.3 to jboss 7.1.3 and the validation part translated as below (Complete translated datasource attached for reference). In Jboss 4.3, Jboss's properietory jar file "jboss-common-jdbc-wrapper.jar" is used to perform this validation. Incase of Jboss 7.1.3 is there any equivalent feature ?
<validation>
<valid-connection-checker class-name="org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker"/>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
<use-fast-fail>false</use-fast-fail>
<exception-sorter class-name="org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter"/>
</validation>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816417#816417]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years
[JBoss Tools] - JBOSS WSTools does not support abstract complexTypes
by roopachakra
roopachakra [https://community.jboss.org/people/roopachakra] created the discussion
"JBOSS WSTools does not support abstract complexTypes"
To view the discussion, visit: https://community.jboss.org/message/816368#816368
--------------------------------------------------------------
Generated client code using JBOSS WS. For below complex type it created abstract class.
<s:complexType abstract="true" name="MessageOption">
</s:complexType>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MessageOption")
public abstract class MessageOption {
}
while testing the application in standalone mode I get below exception. I am running this test sample using JBOSS EAP 5.1.0 and JDK 1.6.0. JBOSS tools 4.0.1
Please let me if anyone has come across such problem and solved it.
javax.xml.ws.soap.SOAPFaultException: Exception during processing: java.lang.Error: cannot create abstract type: com.sps.es.notification.webservice.MessageOption (see Fault Detail for stacktrace)
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:85)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:558)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:396)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:231)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:171)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:157)
at $Proxy15.sendNotification(Unknown Source)
at com.sps.nes.client.clientsample.ClientSample.main(ClientSample.java:183)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816368#816368]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years
[JBoss Messaging] - Invalid username/password combination?
by dobaminh
dobaminh [https://community.jboss.org/people/dobaminh] created the discussion
"Invalid username/password combination?"
To view the discussion, visit: https://community.jboss.org/message/816367#816367
--------------------------------------------------------------
I am new to the JBoss and appology for my mistake(s) in posting.
Following is my JBoss related error message: "*Invalid username/password combination*"
*CONFIGURATION LAYOUT FOR TESTING*:
* Window 2008 Server 32 bits OS
* JBOSS AS - Version 5.1.0GA
* POSTGRESQL – Version 8.4.8
* isapi_redirect.dll – Version 1.2.28
* IIS - Version 7.0
* Window 2008 Server Self Generated Certificate
=====================================
*“HTTP, HTTPS Test”*
IIS Manager – Default Website – Site Bindings
Type Port IP-Address
HTTPS 443 *
HTTP 80 *
With IE Browser and following URL:
[Client] => HTTP/S (80/443) => [IIS] => AJP (8009) => [Tomcat]
http://myServertIPaddress/mainFolder/subFolder/myLoginPage.html *http*://myServertIPaddress/mainFolder/subFolder/myLoginPage.html
=> *Login-Passed*
https://myServertIPaddress/mainFolder/subFolder/myLoginPage.html *https*://myServertIPaddress/mainFolder/subFolder/myLoginPage.html
=> Website security certificate warning message => Continue-clicked
Enter (userName,password) => *Login-Passed*
=====================================
*“HTTPS Test”* – *Remove “HTTP port 80”* by running IIS Manager
IIS Manager – Default Website – Site Bindings
Type Port IP-Address
HTTPS 443 *
With IE Browser and following URL:
[Client] => HTTPS (443) => [IIS] => AJP (8009) => [Tomcat]
http://myServertIPaddress/mainFolder/subFolder/myLoginPage.html *http*://myServertIPaddress/mainFolder/subFolder/myLoginPage.html
=> IE can not display the webpage (*as expected*)
https://myServertIPaddress/mainFolder/subFolder/myLoginPage.html *https*://myServertIPaddress/mainFolder/subFolder/myLoginPage.html
=> Website security certificate warning message => Continue-clicked
Enter (userName,password) => Invalid Credentials – “*Invalid username/password combination*”
=> Go back to the above HTTPS myLoginPage.html
I entered valid exact (userName,password) in “HTTPS Test” (same as “HTTP, HTTPS Test”) but I got “Invalid Credentials”.
*QUESTION*: why I got “Invalid username/password combination”?
Many thanks ahead for any pointing.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816367#816367]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years
[JBoss Web Services] - WSTools does not support abstract complexTypes
by roopachakra
roopachakra [https://community.jboss.org/people/roopachakra] created the discussion
"WSTools does not support abstract complexTypes"
To view the discussion, visit: https://community.jboss.org/message/816362#816362
--------------------------------------------------------------
Generated client code using JBOSS WS. For below complex type it created abstract class.
<s:complexType abstract="true" name="MessageOption">
</s:complexType>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MessageOption")
public abstract class MessageOption {
}
while testing the application in standalone mode I get below exception. I am running this test sample using JBOSS EAP 5.1.0 and JDK 1.6.0.
Please let me if anyone has come across such problem and solved it.
javax.xml.ws.soap.SOAPFaultException: Exception during processing: java.lang.Error: cannot create abstract type: com.sps.es.notification.webservice.MessageOption (see Fault Detail for stacktrace)
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:85)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:558)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:396)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:231)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:171)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:157)
at $Proxy15.sendNotification(Unknown Source)
at com.sps.nes.client.clientsample.ClientSample.main(ClientSample.java:183)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816362#816362]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years