I am now using Jmeter to test the JMS queue on websphere, for the test, I created following stuff on websphere console.
1.MyBus for Bus.
2.MyDestination for Bus destination(Type is queue).
3.MyConf connection factory.
4.NyQueue has queue name MyDestinaion.
And here is my Jmeter test plan, I used JMS Publisher (Sorry, I can not upload the image, I don't know why, but you can imagine the pic, I think)
I also copied all the jar files from {Websphere_Home}/runtimes to {Jmeter_home}/lib
When I press start, Nothing happened, and here is the Jmeter log.
2015/07/10 14:18:35 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2015/07/10 14:18:35 INFO - jmeter.JMeter: Loading user properties from: C:\Users\IBM_ADMIN\Desktop\apache-jmeter-2.7\bin\user.properties
2015/07/10 14:18:35 INFO - jmeter.JMeter: Loading system properties from: C:\Users\IBM_ADMIN\Desktop\apache-jmeter-2.7\bin\system.properties
2015/07/10 14:18:35 INFO - jmeter.JMeter: Copyright (c) 1998-2012 The Apache Software Foundation
2015/07/10 14:18:35 INFO - jmeter.JMeter: Version 2.7 r1342410
2015/07/10 14:18:35 INFO - jmeter.JMeter: java.version=1.8.0_25
2015/07/10 14:18:35 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) Client VM
2015/07/10 14:18:35 INFO - jmeter.JMeter: os.name=Windows 7
2015/07/10 14:18:35 INFO - jmeter.JMeter: os.arch=x86
2015/07/10 14:18:35 INFO - jmeter.JMeter: os.version=6.1
2015/07/10 14:18:35 INFO - jmeter.JMeter: file.encoding=GBK
2015/07/10 14:18:35 INFO - jmeter.JMeter: Default Locale=English (United States)
2015/07/10 14:18:35 INFO - jmeter.JMeter: JMeter Locale=English (United States)
2015/07/10 14:18:35 INFO - jmeter.JMeter: JMeterHome=C:\Users\IBM_ADMIN\Desktop\apache-jmeter-2.7
2015/07/10 14:18:35 INFO - jmeter.JMeter: user.dir =C:\Users\IBM_ADMIN\Desktop\apache-jmeter-2.7\bin
2015/07/10 14:18:35 INFO - jmeter.JMeter: PWD =C:\Users\IBM_ADMIN\Desktop\apache-jmeter-2.7\bin
2015/07/10 14:18:35 INFO - jmeter.JMeter: IP: 9.119.102.62 Name: ADMINIB-5S47NH6 FullName: ADMINIB-5S47NH6.cn.ibm.com
2015/07/10 14:18:35 INFO - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties
2015/07/10 14:18:35 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2015/07/10 14:18:35 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2015/07/10 14:18:36 INFO - jmeter.gui.action.LookAndFeelCommand: Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal, CrossPlatform]
2015/07/10 14:18:36 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22
2015/07/10 14:18:36 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default
2015/07/10 14:18:36 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is
2015/07/10 14:18:36 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is
2015/07/10 14:18:36 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is
2015/07/10 14:18:36 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is
2015/07/10 14:18:36 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2015/07/10 14:18:36 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Reuse SSL session context on subsequent iterations: true
2015/07/10 14:18:37 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
2015/07/10 14:18:37 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times
2015/07/10 14:18:37 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2015/07/10 14:18:37 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true
2015/07/10 14:18:37 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
2015/07/10 14:18:44 INFO - jmeter.services.FileServer: Default base='C:\Users\IBM_ADMIN\Desktop\apache-jmeter-2.7\bin'
2015/07/10 14:18:44 INFO - jmeter.gui.action.Load: Loading file: C:\Users\IBM_ADMIN\Desktop\MyTestPlan.jmx
2015/07/10 14:18:44 INFO - jmeter.services.FileServer: Set new base='C:\Users\IBM_ADMIN\Desktop'
2015/07/10 14:18:44 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2015/07/10 14:18:44 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8
2015/07/10 14:18:44 INFO - jmeter.save.SaveService: Using SaveService properties file version 1332608
2015/07/10 14:18:44 INFO - jmeter.save.SaveService: Using SaveService properties version 2.3
2015/07/10 14:18:44 INFO - jmeter.save.SaveService: All converter versions present and correct
2015/07/10 14:18:44 INFO - jmeter.services.FileServer: Set new base='C:\Users\IBM_ADMIN\Desktop'
2015/07/10 14:18:47 INFO - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version
2015/07/10 14:18:47 INFO - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false
2015/07/10 14:18:47 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2015/07/10 14:18:47 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2015/07/10 14:18:47 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Router Group.
2015/07/10 14:18:47 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2015/07/10 14:18:47 INFO - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties)
2015/07/10 14:18:47 INFO - jmeter.threads.JMeterThread: Running PostProcessors in forward order
2015/07/10 14:18:47 INFO - jmeter.engine.StandardJMeterEngine: All threads have been started
2015/07/10 14:18:47 INFO - jmeter.threads.JMeterThread: Thread started: Router Group 1-1
2015/07/10 14:18:48 INFO - jmeter.threads.JMeterThread: Thread finished: Router Group 1-1
2015/07/10 14:18:48 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Router Group 1-1
2015/07/10 14:18:48 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2015/07/10 14:18:48 INFO - jmeter.protocol.jms.client.InitialContextFactory: InitialContextFactory.close() called and Context instances cleaned up
2015/07/10 14:18:48 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
2015/07/10 14:18:48 INFO - jmeter.engine.StandardJMeterEngine: Test has ended on host null
And message is not sent out, anyone knows the reason?
Related
I created an instance of Artifactoy in docker. I mapped its 8081 port to local 3007 port:
ports:
- "3007:8081"
These are done on a remote server (the docker is running on a remote server on the company network)
When accessing it using http://server-domain-name:3007, i get the following error:
HTTP Status 404 – Not Found
Type Status Report
Message /ui/
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.51
but if i run curl http://server-domain-name:3007, i get the following which shows that Artifactory is running:
<!--
~ Artifactory is a binaries repository manager.
~ Copyright (C) 2018 JFrog Ltd.
~
~ Artifactory is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ Artifactory is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with Artifactory. If not, see <http://www.gnu.org/licenses/>.
-->
<html>
<head>
<meta http-equiv="refresh" content="0;URL=/artifactory">
</head>
<body>
</body>
</html>
I suspect it's something related to artifactory proxy settings, but not sure!
Any idea why I get this error and can not access it??
These are the tomcat logs within the docker container:
/opt/jfrog/artifactory/var/log/tomcat# cat tomcat-catalina-2020-03-24.log
24-Mar-2020 10:57:42.185 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8081"]
24-Mar-2020 10:57:42.200 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
24-Mar-2020 10:57:42.208 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8040"]
24-Mar-2020 10:57:42.209 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
24-Mar-2020 10:57:42.214 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
24-Mar-2020 10:57:42.214 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.51
24-Mar-2020 10:57:42.233 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/access.xml]
24-Mar-2020 10:57:42.233 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml]
24-Mar-2020 10:57:42.252 WARNING [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDescriptor A docBase [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/artifactory.war] inside the host appBase has been specified, and will be ignored
24-Mar-2020 10:57:42.252 WARNING [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor A docBase [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/access.war] inside the host appBase has been specified, and will be ignored
24-Mar-2020 10:57:50.670 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml] has finished in [8,436] ms
24-Mar-2020 10:57:52.693 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/access.xml] has finished in [10,460] ms
24-Mar-2020 10:57:52.694 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/ROOT]
24-Mar-2020 10:57:52.705 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/ROOT] has finished in [11] ms
24-Mar-2020 10:57:52.708 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8081"]
24-Mar-2020 10:57:52.724 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8040"]
24-Mar-2020 12:20:14.606 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
24-Mar-2020 12:20:14.606 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8081"]
24-Mar-2020 12:20:14.612 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8040"]
24-Mar-2020 12:20:14.617 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
24-Mar-2020 12:20:19.751 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8081"]
24-Mar-2020 12:20:19.751 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8040"]
24-Mar-2020 12:20:19.752 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8081"]
24-Mar-2020 12:20:19.753 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8040"]
24-Mar-2020 12:20:26.296 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8081"]
24-Mar-2020 12:20:26.312 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
24-Mar-2020 12:20:26.320 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8040"]
24-Mar-2020 12:20:26.321 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
24-Mar-2020 12:20:26.326 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
24-Mar-2020 12:20:26.326 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.51
24-Mar-2020 12:20:26.339 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/access.xml]
24-Mar-2020 12:20:26.339 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml]
24-Mar-2020 12:20:26.363 WARNING [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor A docBase [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/access.war] inside the host appBase has been specified, and will be ignored
24-Mar-2020 12:20:26.363 WARNING [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDescriptor A docBase [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/artifactory.war] inside the host appBase has been specified, and will be ignored
24-Mar-2020 12:20:28.904 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml] has finished in [2,564] ms
24-Mar-2020 12:20:35.030 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/access.xml] has finished in [8,691] ms
24-Mar-2020 12:20:35.031 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/ROOT]
24-Mar-2020 12:20:35.048 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/ROOT] has finished in [17] ms
24-Mar-2020 12:20:35.050 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8081"]
24-Mar-2020 12:20:35.060 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8040"]
/opt/jfrog/artifactory/var/log/tomcat# cat tomcat-localhost-2020-03-24.log
24-Mar-2020 10:57:42.907 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log 1 Spring WebApplicationInitializers detected on classpath
24-Mar-2020 10:57:45.680 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring embedded WebApplicationContext
24-Mar-2020 12:20:14.651 INFO [localhost-startStop-3] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
24-Mar-2020 12:20:26.965 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log 1 Spring WebApplicationInitializers detected on classpath
24-Mar-2020 12:20:29.632 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring embedded WebApplicationContext
Update:
If I ssh into the docker container and run
curl --head http://localhost:8081/artifactory/webapp/#/login
I get this:
HTTP/1.1 200 OK
Server: Artifactory/7.3.2
X-Artifactory-Id: 7c88d7b6c0e91efc:e615a11:17111dedc15:-8000
X-Artifactory-Node-Id: 2dd09e552f22
Cache-Control: no-store,max-age=0
X-FRAME-OPTIONS: DENY
Accept-Ranges: bytes
ETag: W/"2239-1584804418000"
Last-Modified: Sat, 21 Mar 2020 15:26:58 GMT
Content-Type: text/html
Content-Length: 2239
Date: Wed, 25 Mar 2020 13:50:46 GMT
it looks like artifactory is working ok but not accessible when port 8081 is mapped to 3007 external port.
Can this be related to Apache Tomcat config inside the docker container?
So I have secured a kafka cluster through below security mechanism in server.properties and added respective kafka and zookeeper jaas.config files
security.inter.broker.protocol=SASL_PLAINTEXT
sasl.mechanism.inter.broker.protocol=PLAIN
and using below command to start the kafka tool
kafkatool -J -Djava.security.auth.login.config=client_jaas.config
where client_jaas.config consists of below content
sasl.mechanism=PLAIN
# Configure SASL_SSL if SSL encryption is enabled, otherwise configure SASL_PLAINTEXT
security.protocol=SASL_PLAINTEXT
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required \
username="admin" \
password="password";
Kafkatool gets launched successfully cluster is being connected but when click on topic to see list of all the topic it gives me below error
Configured to use PLAINTTEXT but broker 0 does not support it.
Below is the content of the server_jaas.config file
KafkaServer {
org.apache.kafka.common.security.plain.PlainLoginModule required
username="admin"
password="password"
user_admin="password";
};
Client {
org.apache.kafka.common.security.plain.PlainLoginModule required
username="admin"
password="password";
};
Below are the listeners details in the server.properties file
listeners=SASL_PLAINTEXT://0.0.0.0:9092
advertised.listeners=SASL_PLAINTEXT://:9092
If I see the full error log of kafaktool, of the output of command kafkatool -J-Djava.security.auth.login.config=client_jaas.config, below is what I see
01/Jun/2019 13:40:30.436 INFO com.kafkatool.ui.MainApp - Starting application : Kafka Tool
01/Jun/2019 13:40:30.437 INFO com.kafkatool.ui.MainApp - Version : 2.0.4
01/Jun/2019 13:40:30.437 INFO com.kafkatool.ui.MainApp - Built : Feb 21, 2019
01/Jun/2019 13:40:30.438 INFO com.kafkatool.ui.MainApp - user.home : /home/vivek
01/Jun/2019 13:40:30.438 INFO com.kafkatool.ui.MainApp - user.dir : /opt/kafkatool2
01/Jun/2019 13:40:30.438 INFO com.kafkatool.ui.MainApp - os.name : Linux
01/Jun/2019 13:40:30.438 INFO com.kafkatool.ui.MainApp - java.runtime.version : 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12
01/Jun/2019 13:40:30.439 INFO com.kafkatool.ui.MainApp - max memory=1305 MB
01/Jun/2019 13:40:30.439 INFO com.kafkatool.ui.MainApp - available processors=4
01/Jun/2019 13:40:30.440 INFO com.kafkatool.ui.MainApp - java.security.auth.login.config=client_jaas.config
01/Jun/2019 13:40:30.443 INFO com.kafkatool.ui.MainApp - java.security.auth.login.config exists = false
01/Jun/2019 13:40:30.449 INFO com.kafkatool.common.ExternalDecoderManager - Finding plugins in directory /opt/kafkatool2/plugins
01/Jun/2019 13:40:30.449 INFO com.kafkatool.common.ExternalDecoderManager - Found files in plugin directory, count=1
01/Jun/2019 13:40:30.450 INFO com.kafkatool.ui.MainApp - Loading user settings
01/Jun/2019 13:40:30.497 INFO com.kafkatool.ui.MainApp - Loading server group settings
01/Jun/2019 13:40:30.500 INFO com.kafkatool.ui.MainApp - Loading server connection settings
01/Jun/2019 13:40:39.854 INFO org.I0Itec.zkclient.ZkEventThread - Starting ZkClient event thread.
01/Jun/2019 13:40:39.862 INFO org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.3.3-1203054, built on 11/17/2011 05:47 GMT
01/Jun/2019 13:40:39.862 INFO org.apache.zookeeper.ZooKeeper - Client environment:host.name=anakata
01/Jun/2019 13:40:39.863 INFO org.apache.zookeeper.ZooKeeper - Client environment:java.version=1.8.0_191
01/Jun/2019 13:40:39.863 INFO org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Oracle Corporation
01/Jun/2019 13:40:39.863 INFO org.apache.zookeeper.ZooKeeper - Client environment:java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre
01/Jun/2019 13:40:39.863 INFO org.apache.zookeeper.ZooKeeper - Client environment:java.class.path=/opt/kafkatool2/.install4j/i4jruntime.jar:/opt/kafkatool2/lib/glazedlists.jar:/opt/kafkatool2/lib/gson-2.3.1.jar:/opt/kafkatool2/lib/jgoodies-common-1.6.0.jar:/opt/kafkatool2/lib/jgoodies-looks-2.5.3.jar:/opt/kafkatool2/lib/jide-oss.jar:/opt/kafkatool2/lib/jline.jar:/opt/kafkatool2/lib/jopt-simple.jar:/opt/kafkatool2/lib/kafka-clients.jar:/opt/kafkatool2/lib/kafka.jar:/opt/kafkatool2/lib/log4j.jar:/opt/kafkatool2/lib/lz4.jar:/opt/kafkatool2/lib/metrics-core.jar:/opt/kafkatool2/lib/netty.jar:/opt/kafkatool2/lib/ofjar.jar:/opt/kafkatool2/lib/quaqua.jar:/opt/kafkatool2/lib/scala-library.jar:/opt/kafkatool2/lib/scala-parser-combinators.jar:/opt/kafkatool2/lib/scala-xml.jar:/opt/kafkatool2/lib/slf4j-api.jar:/opt/kafkatool2/lib/slf4j-log4j12.jar:/opt/kafkatool2/lib/snappy.jar:/opt/kafkatool2/lib/zkclient.jar:/opt/kafkatool2/lib/zookeeper.jar
01/Jun/2019 13:40:39.864 INFO org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
01/Jun/2019 13:40:39.864 INFO org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=/tmp
01/Jun/2019 13:40:39.864 INFO org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=<NA>
01/Jun/2019 13:40:39.864 INFO org.apache.zookeeper.ZooKeeper - Client environment:os.name=Linux
01/Jun/2019 13:40:39.865 INFO org.apache.zookeeper.ZooKeeper - Client environment:os.arch=amd64
01/Jun/2019 13:40:39.865 INFO org.apache.zookeeper.ZooKeeper - Client environment:os.version=4.15.0-48-generic
01/Jun/2019 13:40:39.865 INFO org.apache.zookeeper.ZooKeeper - Client environment:user.name=vivek
01/Jun/2019 13:40:39.866 INFO org.apache.zookeeper.ZooKeeper - Client environment:user.home=/home/vivek
01/Jun/2019 13:40:39.882 INFO org.apache.zookeeper.ZooKeeper - Client environment:user.dir=/opt/kafkatool2
01/Jun/2019 13:40:39.884 INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.I0Itec.zkclient.ZkClient#60b5eeff
01/Jun/2019 13:40:39.917 INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/127.0.0.1:2181
01/Jun/2019 13:40:39.927 INFO org.apache.zookeeper.ClientCnxn - Socket connection established to localhost/127.0.0.1:2181, initiating session
01/Jun/2019 13:40:39.947 INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x100097569c60010, negotiated timeout = 30000
01/Jun/2019 13:40:39.949 INFO org.I0Itec.zkclient.ZkClient - zookeeper state changed (SyncConnected)
01/Jun/2019 13:40:40.024 INFO com.kafkatool.model.Broker - Parsing endpoint SASL_PLAINTEXT://anakata:9092
01/Jun/2019 13:40:40.025 INFO com.kafkatool.model.KafkaMapper - Getting brokers from zookeeper, found 1
01/Jun/2019 13:40:40.025 INFO org.I0Itec.zkclient.ZkEventThread - Terminate ZkClient event thread.
01/Jun/2019 13:40:40.044 INFO org.apache.zookeeper.ZooKeeper - Session: 0x100097569c60010 closed
01/Jun/2019 13:40:40.044 INFO org.apache.zookeeper.ClientCnxn - EventThread shut down
01/Jun/2019 13:40:40.046 ERROR com.kafkatool.model.Broker - Configured to use PLAINTEXT but broker 0 does not support it. Configured types {SASL_PLAINTEXT=BrokerEndpoint{protocol='SASL_PLAINTEXT', host='anakata', port=9092}}
01/Jun/2019 13:40:40.048 ERROR com.kafkatool.model.KafkaMapper - Error getting topics
java.lang.Exception: Configured to use PLAINTEXT but broker 0 does not support it.
at com.kafkatool.model.Broker.getSecurityTypeConnectString(Broker.java:169)
at com.kafkatool.model.KafkaMapper.getProperties(KafkaMapper.java:258)
at com.kafkatool.model.KafkaMapper.getNewConsumer(KafkaMapper.java:1100)
at com.kafkatool.model.KafkaMapper.getNewConsumer(KafkaMapper.java:1095)
at com.kafkatool.model.KafkaMapper.getNewConsumer(KafkaMapper.java:1085)
at com.kafkatool.model.KafkaMapper.getTopics(KafkaMapper.java:420)
at com.kafkatool.model.ServerConnection.getTopics(ServerConnection.java:221)
at com.kafkatool.model.ServerConnection.hasTopic(ServerConnection.java:203)
at com.kafkatool.model.KafkaMapper.startPoller(KafkaMapper.java:105)
at com.kafkatool.model.ServerConnection.connectInt(ServerConnection.java:336)
at com.kafkatool.model.ServerConnection.connect(ServerConnection.java:315)
at com.kafkatool.common.AsyncServerConnector.run(AsyncServerConnector.java:43)
at java.lang.Thread.run(Thread.java:748)
01/Jun/2019 13:40:40.052 ERROR com.kafkatool.model.KafkaMapper - Error starting consumer offset poller
java.lang.Exception: Configured to use PLAINTEXT but broker 0 does not support it.
at com.kafkatool.model.Broker.getSecurityTypeConnectString(Broker.java:169)
at com.kafkatool.model.KafkaMapper.getProperties(KafkaMapper.java:258)
at com.kafkatool.model.KafkaMapper.getNewConsumer(KafkaMapper.java:1100)
at com.kafkatool.model.KafkaMapper.getNewConsumer(KafkaMapper.java:1095)
at com.kafkatool.model.KafkaMapper.getNewConsumer(KafkaMapper.java:1085)
at com.kafkatool.model.KafkaMapper.getTopics(KafkaMapper.java:420)
at com.kafkatool.model.ServerConnection.getTopics(ServerConnection.java:221)
at com.kafkatool.model.ServerConnection.hasTopic(ServerConnection.java:203)
at com.kafkatool.model.KafkaMapper.startPoller(KafkaMapper.java:105)
at com.kafkatool.model.ServerConnection.connectInt(ServerConnection.java:336)
at com.kafkatool.model.ServerConnection.connect(ServerConnection.java:315)
at com.kafkatool.common.AsyncServerConnector.run(AsyncServerConnector.java:43)
The comment line in your client_jaas.config does actually contain a clue on this:
Configure SASL_SSL if SSL encryption is enabled, otherwise configure SASL_PLAINTEXT
There seems to be a conflict in the 2 config settings you've provided.
In server.properties, you've mentioned:
security.inter.broker.protocol=SASL_PLAINTEXT
whereas in your client_jaas.config, you've mentioned:
security.protocol=SASL_SSL
Try changing this to SASL_PLAINTEXT.
Hope this helps!
I can not start wso2ei-6.0.0 in eclipse.
The version I am using is developer-studio-ei-eclipse-jee-mars-2-win64-x86_64-1.0.0 version, jdk is 1.8.0.
When I configure the server I select WSO2 Enterprise Integrator 6.0.0 others select defaults, I encounter an error when trying to start it.
OSGi console has been enabled with options: -console
osgi> [2017-03-04 10:33:35,314] [EI-Core] INFO - CarbonCoreActivator Starting WSO2 Carbon...
[2017-03-04 10:33:35,318] [EI-Core] INFO - CarbonCoreActivator Operating System : Windows 7 6.1, amd64
[2017-03-04 10:33:35,319] [EI-Core] INFO - CarbonCoreActivator Java Home : C:\Program Files\Java\jdk1.8.0_112\jre
[2017-03-04 10:33:35,319] [EI-Core] INFO - CarbonCoreActivator Java Version : 1.8.0_112
[2017-03-04 10:33:35,319] [EI-Core] INFO - CarbonCoreActivator Java VM : Java HotSpot(TM) 64-Bit Server VM 25.112-b15,Oracle Corporation
[2017-03-04 10:33:35,319] [EI-Core] INFO - CarbonCoreActivator Carbon Home : D:/wso2/wso2ei-6.0.0
[2017-03-04 10:33:35,319] [EI-Core] INFO - CarbonCoreActivator Java Temp Dir : D:/wso2/wso2ei-6.0.0/tmp
[2017-03-04 10:33:35,320] [EI-Core] INFO - CarbonCoreActivator User : zhu, zh-CN, Asia/Shanghai
[2017-03-04 10:33:35,528] [EI-Core] WARN - ValidationResultPrinter Carbon is configured to use the default keystore (wso2carbon.jks). To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile.
[2017-03-04 10:33:35,580] [EI-Core] INFO - GoogleTokenGenDSComponent Activating GoogleTokengen DS component
[2017-03-04 10:33:35,855] [EI-Core] INFO - KafkaEventAdapterServiceDS Successfully deployed the Kafka output event adaptor service
[2017-03-04 10:33:36,037] [EI-Core] INFO - ManagementModeConfigurationLoader CEP started in Single node mode
[2017-03-04 10:33:45,956] [EI-Core] INFO - EmbeddedRegistryService Configured Registry in 256ms
[2017-03-04 10:33:46,062] [EI-Core] INFO - RegistryCoreServiceComponent Registry Mode : READ-WRITE
[2017-03-04 10:33:58,313] [EI-Core] INFO - SolrClient Default Embedded Solr Server Initialized
[2017-03-04 10:33:58,700] [EI-Core] INFO - UserStoreMgtDSComponent Carbon UserStoreMgtDSComponent activated successfully.
[2017-03-04 10:34:44,397] [EI-Core] INFO - TaglibUriRule TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined
[2017-03-04 10:35:46,336] [EI-Core] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
[2017-03-04 10:35:46,341] [EI-Core] WARN - CarbonServerManager Waiting for required Module: rampart-core-1.6.1-wso2v24
[2017-03-04 10:36:46,335] [EI-Core] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
[2017-03-04 10:36:46,336] [EI-Core] WARN - CarbonServerManager Waiting for required Module: rampart-core-1.6.1-wso2v24
[2017-03-04 10:37:46,334] [EI-Core] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
[2017-03-04 10:37:46,335] [EI-Core] WARN - CarbonServerManager Waiting for required Module: rampart-core-1.6.1-wso2v24
[2017-03-04 10:38:46,334] [EI-Core] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
[2017-03-04 10:38:46,334] [EI-Core] WARN - CarbonServerManager Waiting for required Module: rampart-core-1.6.1-wso2v24
[2017-03-04 10:39:46,335] [EI-Core] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
[2017-03-04 10:39:46,335] [EI-Core] WARN - CarbonServerManager Waiting for required Module: rampart-core-1.6.1-wso2v24
[2017-03-04 10:40:46,334] [EI-Core] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
[2017-03-04 10:40:46,334] [EI-Core] WARN - CarbonServerManager Waiting for required Module: rampart-core-1.6.1-wso2v24
[2017-03-04 10:41:46,335] [EI-Core] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
[2017-03-04 10:41:46,335] [EI-Core] WARN - CarbonServerManager Waiting for required Module: rampart-core-1.6.1-wso2v24
[2017-03-04 10:42:46,334] [EI-Core] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
[2017-03-04 10:42:46,334] [EI-Core] WARN - CarbonServerManager Waiting for required Module: rampart-core-1.6.1-wso2v24
Carbon Server WSO2 Enterprise Integrator 6.0.0 at localhost is shutting down...
Carbon Server WSO2 Enterprise Integrator 6.0.0 at localhost has shut down...
I tried the same and could not reproduce the issue after installing updates. However i could guess for a situation where this could happen. Hence I'm suggesting to do the following.
Take a new wso2ei-6.0 pack and unziped, lets say the unzip location EI_HOME
Start the eclipse, and when starting use a new workspace (i.e do not use the workspace you used earlier)
Add a new server in eclipse, when adding a new server, goto "Configure runtime environments" and remove the old ei-server configuration if you already have such.
Add new ei server, using the EI_HOME
Start the server from eclipse
If you are in a position that you could not use a new ei-6.0 pack, you may do the following.
Goto EI_HOME/wso2/lib folder and list out the files and directories, it should have following files and directories. (i.e in a fresh pack)
ant-contrib-1.0b3.jar
cipher-text.properties
commons-lang-2.6.0.wso2v1.jar
endorsed/
esapi-2.0.1.jar
org.wso2.carbon.logging-4.4.14.jar
org.wso2.carbon.server-4.4.14.jar
org.wso2.ciphertool-1.0.0-wso2v3.jar
runtimes/
sandesha2-core-1.6.1-wso2v1.jar
tomcat/
transactions.properties
xercesImpl-2.8.1.wso2v2.jar
If you have any files,jars other than in above list you may remove those.
Then follow the steps 2-5.
There could be a situation if you have started a EI server before applying updates, it might copy some additional jars to the EI_HOME/wso2/lib location. Which causes this problem (the update resolves this issue), hence the above solution is to fix that by manual removing the copied jars.
thank you very much. I did a java upgrade from 1.8.0_102 to 1.8.0.121 and it works fine now!
I re-downloaded eclipse and the latest version of java. I think it says that you don't have the correct java version installed. It worked fine after I re-downloaded them.
I am trying to manually start zookeeper. I run
# source zkServer.sh start
It outputs:
JMX enabled by default
Using config: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
When I run #jps, it outputs
15360 QuorumPeerMain
15412 Jps
From what I read online, Zookeeper is the same process as QuorumPeerMain listed above. But then when I check its status using
source zkServer.sh status
It hangs at:
JMX enabled by default
Using config: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
So I run
#source zkServer.sh status > templogs.txt
Running above makes terminal to flash below for a moment (I have to run this command many times to read what actually is output on terminal before it closes) and closes terminal
JMX enabled by default
Using config:
grep: No such file or directory
grep: No such file or directory
Writing to templogs.txt following
Error contacting service. It is probably not running.
When I open zookeeper.out, I can see this output:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/zookeeper-3.4.6/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/hive-0.12.0-cdh5.0.3/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/hbase-0.96.1.1-cdh5.0.3/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/spark-0.9.0-cdh/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/splicemachine/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2015-06-29 15:49:40,831 [myid:] - INFO [main:QuorumPeerConfig#103] - Reading configuration from: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
2015-06-29 15:49:40,836 [myid:] - INFO [main:DatadirCleanupManager#78] - autopurge.snapRetainCount set to 3
2015-06-29 15:49:40,836 [myid:] - INFO [main:DatadirCleanupManager#79] - autopurge.purgeInterval set to 0
2015-06-29 15:49:40,836 [myid:] - INFO [main:DatadirCleanupManager#101] - Purge task is not scheduled.
2015-06-29 15:49:40,837 [myid:] - WARN [main:QuorumPeerMain#113] - Either no config or no quorum defined in config, running in standalone mode
2015-06-29 15:49:40,847 [myid:] - INFO [main:QuorumPeerConfig#103] - Reading configuration from: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
2015-06-29 15:49:40,847 [myid:] - INFO [main:ZooKeeperServerMain#95] - Starting server
2015-06-29 15:49:40,896 [myid:] - INFO [main:Environment#100] - Server environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2015-06-29 15:49:40,896 [myid:] - INFO [main:Environment#100] - Server environment:host.name=ingester
2015-06-29 15:49:40,896 [myid:] - INFO [main:Environment#100] - Server environment:java.version=1.8.0_25
2015-06-29 15:49:40,896 [myid:] - INFO [main:Environment#100] - Server environment:java.vendor=Oracle Corporation
2015-06-29 15:49:40,900 [myid:] - INFO [main:Environment#100] - Server environment:java.home=/usr/java/jdk1.8.0_25/jre
2015-06-29 15:49:40,901 [myid:] - INFO [main:Environment#100] - Server environment:java.class.path=/opt/zookeeper-3.4.6/bin/../build/classes:/opt
I omit the huge path string that follows, and give below the remaining log:
2015-06-29 15:49:40,902 [myid:] - INFO [main:Environment#100] - Server environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2015-06-29 15:49:40,902 [myid:] - INFO [main:Environment#100] - Server environment:java.io.tmpdir=/tmp
2015-06-29 15:49:40,902 [myid:] - INFO [main:Environment#100] - Server environment:java.compiler=<NA>
2015-06-29 15:49:40,903 [myid:] - INFO [main:Environment#100] - Server environment:os.name=Linux
2015-06-29 15:49:40,903 [myid:] - INFO [main:Environment#100] - Server environment:os.arch=amd64
2015-06-29 15:49:40,903 [myid:] - INFO [main:Environment#100] - Server environment:os.version=3.17.8-200.fc20.x86_64
2015-06-29 15:49:40,903 [myid:] - INFO [main:Environment#100] - Server environment:user.name=root
2015-06-29 15:49:40,904 [myid:] - INFO [main:Environment#100] - Server environment:user.home=/root
2015-06-29 15:49:40,904 [myid:] - INFO [main:Environment#100] - Server environment:user.dir=/root
2015-06-29 15:49:40,909 [myid:] - INFO [main:ZooKeeperServer#755] - tickTime set to 2000
2015-06-29 15:49:40,909 [myid:] - INFO [main:ZooKeeperServer#764] - minSessionTimeout set to -1
2015-06-29 15:49:40,909 [myid:] - INFO [main:ZooKeeperServer#773] - maxSessionTimeout set to -1
2015-06-29 15:49:40,918 [myid:] - INFO [main:NIOServerCnxnFactory#94] - binding to port 0.0.0.0/0.0.0.0:2181
Is it like zookeeper stuck at obtaining bindings to port 2181?
But when I run lsof -i:2181 -s, it outputs:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 15360 root 467u IPv6 18340028 TCP *:eforward (LISTEN)
The pid is that of the QuorumPeerMain.
Running source zkServer.sh status on another PC, properly gives
Mode: standalone
But on this PC, I am pretty much screwed. Can anyone help me.
Have you validated that the config file is fine?
Try to run Zookeeper with the config file full path
Example: zkServer.sh start /etc/zookeeper/conf/zoo.cfg
It seems some problem with the PORT binding
"binding to port 0.0.0.0/0.0.0.0:2181"
and the problem should be resolved by adding below the host entry to the hosts file
127.0.0.1 localhost
In my case zookeeper 3.7.0. just need shutdown tomcat server
In my case i not install JAVA
so it was not started
please download JDK and install
then try again
I followed this blog for injecting EJB in REST layer.
Here is the code that I tried deploying in JBOSS AS 6 and 7 using Eclipse:
REST:
package com.example.rest;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
#Stateless
#Path("current")
public class ServiceFacade {
#EJB
ServiceImpl service;
#GET
public String getDate(){
return service.getCurrentDate().toString();
}
}
EJB:
import java.util.Date;
import javax.ejb.Stateless;
#Stateless
public class ServiceImpl {
public Date getCurrentDate(){
return new Date();
}
}
#ApplicationPath("rest")
public class RestApplication extends Application {
}
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sample.rest</groupId>
<artifactId>restejb</artifactId>
<version>0.0.1-SNAPSHOT</version>
<description>simplet project to test ejb injection in rest</description>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<packaging>war</packaging>
<type>pom</type>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
when I access http://localhost:8080/restejb/rest/current, I get 404 page NOT found error.
Here is the log from deployment to JBOSS AS 6:
11:19:23,701 INFO [AbstractJBossASServerBase] Server Configuration:
JBOSS_HOME URL: file:/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/
Bootstrap: $JBOSS_HOME/server/default/conf/bootstrap.xml
Common Base: $JBOSS_HOME/common/
Common Library: $JBOSS_HOME/common/lib/
Server Name: default
Server Base: $JBOSS_HOME/server/
Server Library: $JBOSS_HOME/server/default/lib/
Server Config: $JBOSS_HOME/server/default/conf/
Server Home: $JBOSS_HOME/server/default/
Server Data: $JBOSS_HOME/server/default/data/
Server Log: $JBOSS_HOME/server/default/log/
Server Temp: $JBOSS_HOME/server/default/tmp/
11:19:23,706 INFO [AbstractServer] Starting: JBossAS [6.1.0.Final "Neo"]
11:19:27,412 INFO [ServerInfo] Java version: 1.7.0_71,Oracle Corporation
11:19:27,412 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
11:19:27,413 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 24.71-b01,Oracle Corporation
11:19:27,413 INFO [ServerInfo] OS-System: Mac OS X 10.9.5,x86_64
11:19:27,414 INFO [ServerInfo] VM arguments: -Dprogram.name=JBossTools: JBoss AS 6.x -Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/lib/endorsed -Djava.library.path=/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/bin/native -Dlogging.configuration=file:/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/bin/logging.properties -Dfile.encoding=UTF-8
11:19:27,483 INFO [JMXKernel] Legacy JMX core initialized
11:19:35,849 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
11:19:36,679 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
11:19:47,865 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
11:19:48,389 INFO [JMXConnector] starting JMXConnector on host localhost:1090
11:19:48,609 INFO [MailService] Mail Service bound to java:/Mail
11:19:49,990 INFO [HornetQServerImpl] live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/data/hornetq/journal,bindingsDirectory=/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/data/hornetq/bindings,largeMessagesDirectory=/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/data/hornetq/largemessages,pagingDirectory=/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/data/hornetq/paging)
11:19:49,992 INFO [HornetQServerImpl] Waiting to obtain live lock
11:19:50,105 INFO [JournalStorageManager] Using NIO Journal
11:19:50,140 WARNING [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
11:19:50,468 INFO [FileLockNodeManager] Waiting to obtain live lock
11:19:50,469 INFO [FileLockNodeManager] Live Server Obtained live lock
11:19:51,283 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.3.Final-r${buildNumber} localhost:5445 for CORE protocol
11:19:51,287 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.3.Final-r${buildNumber} localhost:5455 for CORE protocol
11:19:51,290 INFO [HornetQServerImpl] Server is now live
11:19:51,291 INFO [HornetQServerImpl] HornetQ Server version 2.2.5.Final (HQ_2_2_5_FINAL_AS7, 121) [251821f6-c6bb-11e4-9df3-60334b2115c1] started
11:19:51,386 INFO [WebService] Using RMI server codebase: http://localhost:8083/
11:19:51,699 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
11:19:51,711 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators
11:19:51,745 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at Tue, 10 Mar 2015 11:19:51
11:19:51,903 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712
11:19:51,904 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
11:19:51,905 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager
11:19:51,933 INFO [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
11:19:51,934 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
11:19:51,937 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
11:19:52,007 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
11:19:52,103 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
11:19:52,481 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/bin/native
11:19:52,764 INFO [TomcatDeployment] deploy, ctxPath=/invoker
11:19:53,207 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final
11:19:53,286 INFO [RARDeployment] Required license terms exist, view vfs:/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
11:19:53,308 INFO [RARDeployment] Required license terms exist, view vfs:/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
11:19:53,322 INFO [RARDeployment] Required license terms exist, view vfs:/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/deploy/jms-ra.rar/META-INF/ra.xml
11:19:53,347 INFO [HornetQResourceAdapter] HornetQ resource adaptor started
11:19:53,359 INFO [RARDeployment] Required license terms exist, view vfs:/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/deploy/mail-ra.rar/META-INF/ra.xml
11:19:53,382 INFO [RARDeployment] Required license terms exist, view vfs:/Users/sridhar1982AQ/Documents/EE7_servers/jboss-6.1.0.Final/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
11:19:53,522 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2
11:19:53,574 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
11:19:53,575 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
11:19:53,579 INFO [RAMJobStore] RAMJobStore initialized.
11:19:53,583 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
11:19:53,583 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.
11:19:53,583 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3
11:19:53,584 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.
11:19:54,133 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
11:19:54,533 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
11:19:54,715 INFO [xnio] XNIO Version 2.1.0.CR2
11:19:54,733 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2
11:19:55,100 INFO [remoting] JBoss Remoting version 3.1.0.Beta2
11:19:55,279 INFO [TomcatDeployment] deploy, ctxPath=/
11:19:55,417 INFO [HornetQServerImpl] trying to deploy queue jms.queue.ExpiryQueue
11:19:55,462 INFO [HornetQServerImpl] trying to deploy queue jms.queue.DLQ
11:19:55,508 INFO [service] Removing bootstrap log handlers
11:19:55,616 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
11:19:55,624 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
11:19:55,625 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.1.0.Final "Neo"] Started in 31s:909ms
11:19:56,100 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/restejb
I am checking one of my projects using rest and in the annotation I use a slash / before the resource name both in #ApplicationPath("/rest") as in the rest service `#Path("/current"), so your EJB seems like must be something like:
#Stateless
#Path("/current")
public class ServiceImpl {
#GET
public Date getCurrentDate(){
return new Date();
}
}
And your activator class something like:
#ApplicationPath("/rest")
public class RestApplication extends Application {
}