[JBoss Web Services] - NoSuchMethod when a jUnit test calls a web service
by spyhunter99
spyhunter99 [https://community.jboss.org/people/spyhunter99] created the discussion
"NoSuchMethod when a jUnit test calls a web service"
To view the discussion, visit: https://community.jboss.org/message/729746#729746
--------------------------------------------------------------
So I have a simple console app that calls a web service, returning a true or false if successful. I also have a jUnit test that actually calls the same function, failling when the main function returns false.
When running the app normally, there's no problems, it works.
When running the junit test via ant, I get the following output
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.343 sec
[junit]
[junit] ------------- Standard Output ---------------
[junit] Setting up policy
[junit] ------------- ---------------- ---------------
[junit] Testcase: testMain(testcmdclient.AMQPAlertSmokeTestTest): Caused an ERROR
[junit] org.jboss.logging.Logger.debugf(Ljava/lang/String;[Ljava/lang/Object;)V
[junit] java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String;[Ljava/lang/Object;)V
[junit] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.configureStub(ServiceDelegateImpl.java:438)
[junit] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.createProxy(ServiceDelegateImpl.java:416)
[junit] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:243)
[junit] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:574)
[junit] at javax.xml.ws.Service.getPort(Service.java:99)
[junit] at myserviceclientlibrary.getMyPortPort()....
build class path, most of the libraries were grabbed from jboss 6.1final with native 3.4.1 installed
log4j-1.2.16.jar
syslog4j-0.9.46-bin.jar
qpidclient-client-14.jar
geronimo-jms_1.1_spec-1.0.jar
myclientlibrary.jar
jbossws-native-core-3.4.1.SP2.jar
jbossws-common-jbossws341SP2.jar
trove.jar
xercesImpl.jar
jbossws-spi-jbossws341.jar
jboss61jbossxb.jar
mail.jar
jboss61wsdl4j.jar
jboss61wscommons-policy.jar
commons-logging-1.1.1.jar
javassist.jar
jaxb-impl.jar
jboss61jboss-logging.jar
jboss61jaxrpc-api.jar
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/729746#729746]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 12 months
[JBoss AOP] - Getting error while deploying aspectized war file on Jboss 5.0 - ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/jboss....jboss-aop.xml state=Not Installed mode=Manual requiredState=Parse
by Dharani Mishra
Dharani Mishra [https://community.jboss.org/people/dmishra1] created the discussion
"Getting error while deploying aspectized war file on Jboss 5.0 - ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/jboss....jboss-aop.xml state=Not Installed mode=Manual requiredState=Parse"
To view the discussion, visit: https://community.jboss.org/message/722771#722771
--------------------------------------------------------------
Hi,
I am new to AOP. I have a web application that has been aspectized using jboss-aop-2.0.0.GA..
I am using compile time weaving method. I have created a web archive(war) that contains the aspectized classes.
I am able to run the application in standalone mode. How ever, when I deploy the war file on the application server, I get error which I am giving below:
I have done the followings :
1. cloned default server and named it mypocserver
2. added the war file into server/mypocserver/deploy folder
2. copied jboss-aop.xml to server/mypocserver/deploy folder
3. copied server\mypocserver\deployers\jboss-aop-jboss5.deployer\pluggable-instrumentor.jar to jboss-5.0.0.GA\bin\pluggable-instrumentor.jar
4. added following lines to run.bat
set JAVA_OPTS=%JAVA_OPTS% -Djboss.aop.path=%JBOSS_HOME%\server\myPOCserver\deploy\jboss-aop.xml (to set jboss.aop.path)
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -javaagent:pluggable-instrumentor.jar (I know it is needed for load time weaving. I tried it without setting this property first, but it did not work)
But while starting the server, I am getting the following error:
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss/jboss-5.0.0.GA/server/mypocserver/deploy/jboss-aop.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:330)
... 22 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:313)
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.impl.xs.XMLSchemaValidator.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(SaxJBossXBParser.java:199)
... 30 more
2012-03-09 16:36:45,832 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Parse: name=vfsfile:/C:/jboss/jboss-5.0.0.GA/server/mypocserver/deploy/jboss-aop.xml state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss/jboss-5.0.0.GA/server/mypocserver/deploy/jboss-aop.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:330)
... 22 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:313)
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.impl.xs.XMLSchemaValidator.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(SaxJBossXBParser.java:199)
... 30 more
Will appreciate if somebody can let me know what I am doing wrong here.
Thanks in advance
D Mishra
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722771#722771]
Start a new discussion in JBoss AOP at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years
[Datasource Configuration] - Jboss 7.1.1 FAILED MySql datasource test-connection-in-pool
by Fernando Fabreti
Fernando Fabreti [https://community.jboss.org/people/ffabreti] created the discussion
"Jboss 7.1.1 FAILED MySql datasource test-connection-in-pool"
To view the discussion, visit: https://community.jboss.org/message/729652#729652
--------------------------------------------------------------
I have installed MySql JDBC Driver following directions at https://community.jboss.org/docs/DOC-16657 https://community.jboss.org/wiki/DataSourceConfigurationInAS7
When I try to test it, this happens:
> [standalone@localhost:9999 /] /subsystem=datasources/data-source=java\:jboss\/datasources\/MySqlDS:test-connection-in-pool
> {
> "outcome" => "*failed*",
> "failure-description" => "JBAS014807: *Management resource* '[
> (\"subsystem\" => \"datasources\"),
> (\"data-source\" => \"java:jboss/datasources/MySqlDS\")
> ]' *not found*",
> "rolled-back" => true
>
I'm completely stuck on this, I've double-checked, I've searched the forum and goggled.
My configs are:
> /usr/local/jboss# *ls -la modules/com/mysql/main*
> drwxr-xr-x 2 jboss jboss 4096 2012-04-12 13:06 ./
> drwxr-xr-x 3 jboss jboss 4096 2012-04-12 10:49 ../
> -rw-r--r-- 1 jboss jboss 263 2012-04-12 10:53 module.xml
> -rw-r--r-- 1 jboss jboss 801912 2012-04-12 09:54 mysql-connector-java-5.1.19-bin.jar
> -rw-r--r-- 1 jboss jboss 461 2012-04-12 11:03 mysql-connector-java-5.1.19-bin.jar.index
> /usr/local/jboss# cat modules/com/mysql/main/*module.xml*
> <?xml version="1.0" encoding="UTF-8"?>
> <module xmlns="urn:jboss:module:1.0" name="com.mysql">
> <resources>
> <resource-root path="mysql-connector-java-5.1.19-bin.jar"/>
> </resources>
> <dependencies>
> <module name="javax.api"/>
> </dependencies>
> </module>
> /usr/local/jboss# cat standalone/configuration/*standalone.xml*
> [..]
> <subsystem xmlns="urn:jboss:domain:datasources:1.0">
> <datasources>
> <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
> <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
> <driver>h2</driver>
> <security>
> <user-name>sa</user-name>
> <password>sa</password>
> </security>
> </datasource>
> <*datasource jndi-name="java:/MySqlDS" enabled="true" use-java-context="true" pool-name="MySqlDS"*>
> <connection-url>jdbc:mysql://localhost:3306/sfitx_development</connection-url>
> <driver>com.mysql</driver>
> <driver-class>
> com.mysql.jdbc.Driver
> </driver-class>
> <pool>
> <min-pool-size>10</min-pool-size>
> <max-pool-size>100</max-pool-size>
> <prefill>true</prefill>
> </pool>
> <security>
> <user-name>jruby</user-name>
> <password>123456</password>
> </security>
> <validation></validation>
> <timeout></timeout>
> <statement>
> <prepared-statement-cache-size>32</prepared-statement-cache-size>
> <share-prepared-statements/>
> </statement>
> </datasource>
> <drivers>
> <driver name="h2" module="com.h2database.h2">
> <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
> </driver>
> <driver name="com.mysql" module="com.mysql">
> <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
> <!--driver-class>com.mysql.jdbc.Driver</driver-class-->
> </driver>
> </drivers>
> </datasources>
> </subsystem>
> /usr/local/jboss# bin/standalone.sh
> =========================================================================
> JBoss Bootstrap Environment
> JBOSS_HOME: /usr/local/jboss
> JAVA: java
>
> JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
> =========================================================================
> 13:08:51,951 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
> 13:08:52,096 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
> 13:08:52,135 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
> 13:08:52,854 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
> 13:08:52,855 INFO [org.xnio] XNIO Version 3.0.3.GA
> 13:08:52,871 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
> 13:08:52,883 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
> 13:08:52,912 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
> 13:08:52,921 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
> 13:08:52,950 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
> 13:08:53,021 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
> 13:08:53,023 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
> 13:08:53,029 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
> 13:08:53,032 INFO [org.jboss.as.security] (MSC service thread 1-4) JBAS013100: Current PicketBox version=4.0.7.Final
> 13:08:53,066 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service
> 13:08:53,077 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
> 13:08:53,084 INFO [org.jboss.as.connector] (MSC service thread 1-8) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
> 13:08:53,085 INFO [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
> 13:08:53,137 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
> 13:08:53,173 INFO *[org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)*
> 13:08:53,275 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) Starting Coyote HTTP/1.1 on http--0.0.0.0-8080
> 13:08:53,279 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-8) JBoss Web Services - Stack CXF Server 4.0.2.GA
> 13:08:53,540 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:9999
> 13:08:53,540 INFO [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /0.0.0.0:4447
> 13:08:53,541 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory /usr/local/jboss/standalone/deployments
> 13:08:53,643 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
> 13:08:53,652 INFO *[org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Bound data source [java:/MySqlDS]*
> 13:08:53,690 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
> 13:08:53,691 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 1925ms - Started 137 of 213 services (74 services are passive or on-demand)
> http://localhost:9990/console/App.html#ds-metrics http://localhost:9990/console/App.html#ds-metrics
> Captura de tela em 2012-04-12 13:18:34.png
> MySql Instance on same machine:
>
> mysql> use mysql;
> Database changed
> mysql> select host, db, user, select_priv from db;
> +------+-------------------+-------+-------------+
> | host | db | user | select_priv |
> +------+-------------------+-------+-------------+
> | % | sfitx | jruby | Y |
> | % | *sfitx_development* | jruby | Y |
> +------+-------------------+-------+-------------+
> 2 rows in set (0.00 sec)
>
> mysql> select host from user where *user='jruby'*;
> +-----------+
> | host |
> +-----------+
> | *localhost* |
> +-----------+
> 1 row in set (0.00 sec)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/729652#729652]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years
Time is wrong in jboss deployed application
by List Man
I am running jboss 5.1 with java 5.0.22 on debian 64 bit squeeze and I have been unable to make the application deployed show the correct time. I have used the tzupdater to no avail. The server has the correct time. I was able to fix it the problem 3 weeks ago by rebooting the server, but this time rebooting did not work at all. Does anyone have any clue as to how to fix this problem?
TIA,
LS
14 years
[JBoss Web Services] - Content Type UnsupportedEncodingException
by rhpt
rhpt [https://community.jboss.org/people/rhpt] created the discussion
"Content Type UnsupportedEncodingException"
To view the discussion, visit: https://community.jboss.org/message/729650#729650
--------------------------------------------------------------
When I attempt to consume a webservice running on JBoss 4.0.2, it returns the following error
org.apache.axis2.AxisFault: java.io.UnsupportedEncodingException: utf-8,text/xml
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:330)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:213)
at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:530)
at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:414)
at org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:377)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
...
Caused by: javax.xml.stream.XMLStreamException: java.io.UnsupportedEncodingException: utf-8,text/xml
at com.ctc.wstx.stax.WstxOutputFactory.createSW(WstxOutputFactory.java:257)
at com.ctc.wstx.stax.WstxOutputFactory.createXMLStreamWriter(WstxOutputFactory.java:124)
at org.apache.axiom.om.util.StAXUtils$5.run(StAXUtils.java:252)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:248)
at org.apache.axiom.om.impl.MTOMXMLStreamWriter.<init>(MTOMXMLStreamWriter.java:94)
at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:470)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)
... 30 more
Caused by: java.io.UnsupportedEncodingException: utf-8,text/xml
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:42)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:83)
at com.ctc.wstx.stax.WstxOutputFactory.createSW(WstxOutputFactory.java:253)
Searching around, it seems to be an issue with JAX-WS. However, I am not sure with whom I should reach out. I am hoping someone here could point me in the right direction, or have a workaround I can implement.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/729650#729650]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years