[JBoss Seam] - Seam 1.1.0 beta1 and JDK jdk1.5.0_05
by esfahan
Hi there,
I just switched to seam 1.1.0 beta1 and started getting the following error messages when deploying my ear:
| 17:09:19,390 ERROR [[/foo]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.NullPointerException
| at java.io.FilterInputStream.close(FilterInputStream.java:159)
| at org.jboss.seam.deployment.Scanner.getClassFile(Scanner.java:175)
| at org.jboss.seam.deployment.Scanner.handleItem(Scanner.java:143)
| at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:131)
| at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:127)
| at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:127)
| at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:127)
| at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:127)
| at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:127)
| at org.jboss.seam.deployment.Scanner.getClasses(Scanner.java:90)
| at org.jboss.seam.init.Initialization.addComponents(Initialization.java:500)
|
Funny enough it was only me getting this error. We are three people on the project and the other two could deploy just fine. Initially we couldn't figure out any difference, but then we realized that I was running jdk1.5.0_05 whereas they were running jdk1.5.0_08.
I've installed the latest jdk 1.5 which is jdk1.5.0_09. My problem disappeared right away.
I hope this post will ave a few people some tedious debugging hours.
Cheers
Hardy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981350#3981350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981350
19 years, 6 months
Problem multi war deploy
by Eros
Hello
I have a problem with multiples wars.
My JboosPortal version is: 2.2.1RC3
My classes are shared, but my jboss-web.xml is:
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
com.sumersoft:loader=demo
<loader-repository-config>
java2ParentDelegation=false
</loader- repository-config>
</loader-repository>
</class-loading>
I see the problem when I try load one .properties that it is inside of war.
Each war it has a different file .properties, with equals name but with
different content.
In my class that load .properties this code is used:
public class CommonInformationPortal implements ServletContextListener {
private static Properties properties = null;
public static void load()
{
try{
if(properties == null)
{
properties = new Properties();
properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("CommonInformation.properties"));
}
}
catch(Exception e)
{
return;
}
}
public static String getProperty(String property) {
try{
return properties.getProperty(property);
}
catch(Exception e)
{
return null;
}
}
}
But always return the ClassLoader of last deployed war.
So the file .properties read is always the file of last deployed war.
I try use ServletContextListener the load of file .properties is ok, but when I get any propertie of this file is returned propertie of last deployed war.
How i can resolve this problem?
[]´s
Eros
19 years, 6 months
[JBossWS] - Re: web services samples
by rayymlai
I fixed Xerces in ANT and add JUnit in the classpath (could JBoss add this to the installation/release notes?). However, I have different issues when running the WS examples.
1. wss (e.g. encrypt, sign) failed with no detailed errors
2. in the simpleSign test case, there is a cryptic MBean exception due to reflectedDispatcher error.
3. my colleague told me the wsuid is missing in the SOAP message when he intercepts the SOAP message via TCPSPY.
could you provide some pointer? thanks.
HOW I RUN THE SAMPLE
1. install jboss 4.0.5 and jbossws-samples-1.0.3
2. fix Xerces in ANT
3. add ANT and JUnit in classpath
4. deploy jbossws to jboss server, and jboss-client as per installation/release notes
5. go to the jbossws-samples-1.0.3 directory and run "ant"
then run "ant tests" upon previous success
DETAILS
tests:
init:
[echo] jboss.home = c:/tools/jboss
[echo] tomcat.home = c:/tools/tomcat55
[echo] java.home = C:\Program Files\Java\jdk1.5.0_08\jre
[echo] node0 = MTVL04AL3M0346
test:
[junit] Running org.jboss.test.ws.samples.wssecurity.SimpleEncryptTestCase
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.969 sec
[junit] Test org.jboss.test.ws.samples.wssecurity.SimpleEncryptTestCase FAIL
ED
[junit] Running org.jboss.test.ws.samples.wssecurity.SimpleSignTestCase
[junit] javax.management.MBeanException
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocation
Exceptions(ReflectedDispatcher.java:180)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Reflected
Dispatcher.java:163)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractI
nterceptor.java:133)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invok
e(ModelMBeanOperationInterceptor.java:142)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
Invoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.ja
va:659)
[junit] at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(
InvokerAdaptorService.java:266)
[junit] at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Reflected
Dispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractI
nterceptor.java:133)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invok
e(ModelMBeanOperationInterceptor.java:142)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
Invoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.ja
va:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMP
ProxyFactory.java:179)
[junit] at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Reflected
Dispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
Invoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.ja
va:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerActio
n.invoke(JRMPInvoker.java:819)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvok
er.java:420)
[junit] at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
a:294)
[junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
[junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
t.java:466)
[junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
ransport.java:707)
[junit] at java.lang.Thread.run(Thread.java:595)
[junit] Caused by: org.jboss.deployment.DeploymentException: Could not creat
e deployment: file:/C:/tools/jboss/jbossws-samples-1.0.3.GA/output/libs/jbossws-
samples-wssecurity-sign.war; - nested throwable: (org.jboss.ws.WSException: Serv
ice already registerd: jboss.ws:context=jbossws-samples-wssecurity-sign,endpoint
=HelloService)
[junit] at org.jboss.deployment.DeploymentException.rethrowAsDeploymentE
xception(DeploymentException.java:53)
[junit] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:99
1)
[junit] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:81
8)
[junit] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:78
2)
[junit] at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Reflected
Dispatcher.java:155)
[junit] ... 43 more
[junit] Caused by: org.jboss.ws.WSException: Service already registerd: jbos
s.ws:context=jbossws-samples-wssecurity-sign,endpoint=HelloService
[junit] at org.jboss.ws.server.ServiceEndpointManager.createServiceEndpo
int(ServiceEndpointManager.java:501)
[junit] at org.jboss.ws.deployment.ServiceEndpointDeployer.create(Servic
eEndpointDeployer.java:120)
[junit] at org.jboss.ws.integration.jboss.DeployerInterceptor.create(Dep
loyerInterceptor.java:80)
[junit] at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(
DeployerInterceptorJSE.java:74)
[junit] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInte
rceptor.create(SubDeployerInterceptorSupport.java:180)
[junit] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeploye
rInterceptor.java:91)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
Invoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.ja
va:659)
[junit] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210
)
[junit] at $Proxy39.create(Unknown Source)
[junit] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:96
9)
[junit] ... 49 more
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.891 sec
[junit] Test org.jboss.test.ws.samples.wssecurity.SimpleSignTestCase FAILED
[junit] Running org.jboss.test.ws.samples.wssecurity.StorePassEncryptTestCas
e
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.984 sec
[junit] Test org.jboss.test.ws.samples.wssecurity.StorePassEncryptTestCase F
AILED
init:
[echo] jboss.home = c:/tools/jboss
[echo] tomcat.home = c:/tools/tomcat55
[echo] java.home = C:\Program Files\Java\jdk1.5.0_08\jre
[echo] node0 = MTVL04AL3M0346
tests-report:
[junitreport] Transform time: 1578ms
BUILD SUCCESSFUL
Total time: 3 minutes 50 seconds
C:\tools\jboss\jbossws-samples-1.0.3.GA>
C:\tools\jboss\jbossws-samples-1.0.3.GA>
C:\tools\jboss\jbossws-samples-1.0.3.GA>cd wssec*
C:\tools\jboss\jbossws-samples-1.0.3.GA\wssecurity>ant tests
Buildfile: build.xml
init:
[echo] jboss.home = c:/tools/jboss
[echo] tomcat.home = c:/tools/tomcat55
[echo] java.home = C:\Program Files\Java\jdk1.5.0_08\jre
[echo] node0 = MTVL04AL3M0346
compile:
copy-resources:
generate-sources:
[wstools] log4j:WARN No appenders could be found for logger (org.jboss.ws.tool
s.WSTools).
[wstools] log4j:WARN Please initialize the log4j system properly.
compile-generated:
copy-generated:
[copy] Copying 3 files to C:\tools\jboss\jbossws-samples-1.0.3.GA\output\re
sources
jars:
[war] Building war: C:\tools\jboss\jbossws-samples-1.0.3.GA\output\libs\jb
ossws-samples-wssecurity-sign.war
[jar] Building jar: C:\tools\jboss\jbossws-samples-1.0.3.GA\output\libs\jb
ossws-samples-wssecurity-sign-client.jar
[war] Building war: C:\tools\jboss\jbossws-samples-1.0.3.GA\output\libs\jb
ossws-samples-wssecurity-encrypt.war
[jar] Building jar: C:\tools\jboss\jbossws-samples-1.0.3.GA\output\libs\jb
ossws-samples-wssecurity-encrypt-client.jar
[war] Building war: C:\tools\jboss\jbossws-samples-1.0.3.GA\output\libs\jb
ossws-samples-store-pass-encrypt.war
[jar] Building jar: C:\tools\jboss\jbossws-samples-1.0.3.GA\output\libs\jb
ossws-samples-store-pass-encrypt-client.jar
tests:
init:
[echo] jboss.home = c:/tools/jboss
[echo] tomcat.home = c:/tools/tomcat55
[echo] java.home = C:\Program Files\Java\jdk1.5.0_08\jre
[echo] node0 = MTVL04AL3M0346
test:
[junit] Running org.jboss.test.ws.samples.wssecurity.SimpleEncryptTestCase
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.985 sec
[junit] Test org.jboss.test.ws.samples.wssecurity.SimpleEncryptTestCase FAIL
ED
[junit] Running org.jboss.test.ws.samples.wssecurity.SimpleSignTestCase
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 8.016 sec
[junit] Test org.jboss.test.ws.samples.wssecurity.SimpleSignTestCase FAILED
[junit] Running org.jboss.test.ws.samples.wssecurity.StorePassEncryptTestCas
e
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.985 sec
[junit] Test org.jboss.test.ws.samples.wssecurity.StorePassEncryptTestCase F
AILED
BUILD SUCCESSFUL
Total time: 27 seconds
C:\tools\jboss\jbossws-samples-1.0.3.GA\wssecurity>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981348#3981348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981348
19 years, 6 months
[JBoss/Spring Integration] - Re: JNDI transaction outside of container
by gchen77
Forget this issue. I got it working now.
But I am getting:
[junit] Caused by: org.springframework.transaction.TransactionSystemException: JTA TransactionManager is not available at JNDI location [java:TransactionManager]; nested exception is javax.naming.NameNotFoundException: TransactionManager not bound
[junit] at org.springframework.transaction.jta.JtaTransactionManager.lookupTransactionManager(JtaTransactionManager.java:474)
[junit] at org.springframework.transaction.jta.JtaTransactionManager.afterPropertiesSet(JtaTransactionManager.java:379)
[junit] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
[junit] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
[junit] ... 48 more
[junit] Caused by: javax.naming.NameNotFoundException: TransactionManager not bound
Even though I can clearly see the TransactionManager bound in the JNDIView.
I am running these tests thru JUnit to a JBoss server running locally.
Is there something special I have to do if the tests are outside the JBoss container?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981346#3981346
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981346
19 years, 6 months
[JBoss jBPM] - Re: BPEL beta2 - special characters and XML
by wugf
Alex, I did use escaped strings """, ">" and "<" for the double-quote character ("), the right angle bracket (>) and the left angle bracket (<), respectively, in my testing. I don't know why they are changed to their literal form, even I Previewed them to make sure they were escaped strings before Submit. (I checked the 3 boxes to disable HTML, BBCode and Smilies, but on left side, the Options always show them ON)
Here I re-submit again:
----------------------------------------------
I try to assign some special characters as input value, for example
| <assign>
| <copy>
| <from expression="'-?/">='"/>
| <to variable="inputVariable"/>
| </copy>
| </assign>
|
it works and I got -?/">= as the result.
But when I replaces the ">" (escaped string) with "<" (escaped string)
| <assign>
| <copy>
| <from expression="'-?/"<='"/>
| <to variable=" inputVariable"/>
| </copy>
| </assign>
|
I got the following error message:
anonymous wrote :
| AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
| faultSubcode:
| faultString: The content of elements must consist of well-formed character data
| or markup.
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException:
| The content of elements must consist of well-formed character data or markup.
|
So my first question is how to assign "<" (escaped string) in an input.
Looks like it takes "<" (escaped string) as starting a markup, my second question is how to assign XML as an input value.
For example, I need to assign this as an input:
| <?xml version="1.0" encoding="UTF-8"?><Sample>TEST</Sample>
|
I try
| <assign>
| <copy>
| <from expression="concat(
| '<?xml version="1.0" encoding="UTF-8"?>',
| '<Sample>TEST</Sample>')"/>
| <to variable=" inputVariable"/>
| </copy>
| </assign>
|
But I got error message:
anonymous wrote :
| AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
| faultSubcode:
| faultString: The processing instruction target matching "[xX][mM][lL]"
| ; is not allowed.
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException:
| The processing instruction target matching "[xX][mM][lL]" is not allow
| ed.
|
Please shed some lights on this. Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981344#3981344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981344
19 years, 6 months
[JBoss jBPM] - Re: How can I integrate Active BPEL with JBOSS
by johnybravo2004
Ok I went there and followed there instructions and I am getting this error when I run Jboss...
INFO: ********** ActiveBPEL In-Memory Configuration Initialized
11:27:32,845 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
11:27:33,048 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@c2c1c3f2 { url=file:/C:/jboss/server/default/deploy/bpr/AeEngine
Admin.wsr }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss/server/default/deploy/bpr/AeEngineAdmin.wsr
altDD: null
lastDeployed: 1161962853017
lastModified: 1161962853017
mbeans:
org.jboss.deployment.DeploymentInfo@2d404046 { url=file:/C:/jboss/server/default/deploy/bpr/aeEngine
Config.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss/server/default/deploy/bpr/aeEngineConfig.xml
altDD: null
lastDeployed: 1161962853048
lastModified: 1161962853032
mbeans:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@c2c1c3f2 { url=file:/C:/jboss/server/default/deploy/bpr/AeEngine
Admin.wsr }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss/server/default/deploy/bpr/AeEngineAdmin.wsr
altDD: null
lastDeployed: 1161962853017
lastModified: 1161962853017
mbeans:
org.jboss.deployment.DeploymentInfo@2d404046 { url=file:/C:/jboss/server/default/deploy/bpr/aeEngine
Config.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss/server/default/deploy/bpr/aeEngineConfig.xml
altDD: null
lastDeployed: 1161962853048
lastModified: 1161962853032
mbeans:
11:27:33,376 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=20061016
2339)] Started in 20s:968ms
11:27:47,735 ERROR [STDERR] Oct 27, 2006 11:27:47 AM org.activebpel.rt.axis.bpel.web.AeProcessEngine
Servlet$AeTomcatLogger logInfo
INFO: [AeEngineAdmin.wsr] Starting WebServices deployment.
11:27:54,375 ERROR [STDERR] Oct 27, 2006 11:27:54 AM org.activebpel.rt.axis.bpel.web.AeProcessEngine
Servlet$AeTomcatLogger logInfo
INFO: [AeEngineAdmin.wsr] Deploying META-INF\service.wsdd
11:27:54,531 ERROR [STDERR] Oct 27, 2006 11:27:54 AM org.activebpel.rt.axis.bpel.web.AeProcessEngine
Servlet$AeTomcatLogger logInfo
INFO: [AeEngineAdmin.wsr] Finished WebServices deployment.
11:27:54,531 ERROR [STDERR] Oct 27, 2006 11:27:54 AM org.activebpel.rt.axis.bpel.web.AeProcessEngine
Servlet$AeTomcatLogger logInfo
INFO: ********** ActiveBPEL In-Memory Configuration Started
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981341#3981341
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981341
19 years, 6 months