我是JBheave和Hive框架的新手.
在探索Q&A存储库时,我碰巧看到以下短语来自对问题的正确答案之一, -
这就是我所见过的 - 应该使用@ BeforeScenario/@ AfterScenario方法设置/清除数据对象.
目前我正在撰写测试故事.然而,没有进一步进入步骤.
从JBehave产品网站,我得到以下示例测试故事.考虑到我从StackOverFlow的Q&A回购中插入的短语,我有问题.
A story is a collection of scenarios
Narrative:
In order to communicate effectively to the business some functionality
As a development team
I want to use Behaviour-Driven Development
Lifecycle:
Before:
Given a step that is executed before each scenario
After:
Outcome: ANY
Given a step that is executed after each scenario regardless of outcome
Outcome: SUCCESS
Given a step that is executed after each successful scenario
Outcome: FAILURE
Given …Run Code Online (Sandbox Code Playgroud) telnet我的系统中没有命令。
但是,我的系统安装了Windows 10,因此必须有一种方法可以检查远程系统中特定端口是否打开。我已经用ping命令检查过那个特定的远程系统是可以访问的。
所以这是我的简单问题——如何使用powershell.
命令netstat可以简要说明本地系统服务和端口以及 UDP 或 TCP 已启动和运行的特定协议。因为我没有,所以telnet我需要通过powershell. 欢迎任何意见和建议。
在Weblogic中如何找到WLST python版本。据了解,WLST是由python编写的。
Python 2 和 Python 3 在架构和位方面彼此不同。考虑到 Windows,Python 2 可用于 64 位OS。据我所知,Python 3 仍然是 32 位。Python 是众所周知的最简单的高级语言,广泛应用于许多行业,但分类为版本 2 和版本 3。
当我在 WLST 工作时,我想知道它由什么 Python 版本组成。
当Weblogic版本不同时,它会有所不同。然而事实如此,如何找出在运行时是否有特定的命令或功能?WLST shell
我正在使用apache-activemq-5.11.1,这是在JDK 7(主要版本51.0)上运行的稳定版本,我使用的是JDK 7 Update 80.如果我在JDK 6上运行相同,我会遇到错误.
线程"main"中的异常java.lang.UnsupportedClassVersionError:org/apache/ac tivemq/console/Main:不支持的major.minor版本51.0
来到我的问题我需要在我的系统中有两个运行ActiveMQ的实例.我按照以下步骤创建了两个实例.
C:\>cd \apache-activemq-5.11.1
C:\apache-activemq-5.11.1>.\bin\activemq create instance1
C:\apache-activemq-5.11.1>.\bin\activemq create instance2
Run Code Online (Sandbox Code Playgroud)
我已经更改为instance2的不同端口号,如下所示,
<!--EDITED: apache-activemq-5.11.1\instance2\conf\activemq.xml-->
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://0.0.0.0:61716?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5772?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61713?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1983?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61714?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
Run Code Online (Sandbox Code Playgroud)
现在我按如下方式启动instance1和instance2 .....
C:\apache-activemq-5.11.1\instance1\bin>instance1 start
C:\apache-activemq-5.11.1\instance1\bin>instance2 start
Run Code Online (Sandbox Code Playgroud)
其中我试图启动的第二个实例给出了以下kahadb锁定问题.....
INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@7209d9af: startup date [Thu May 07 16:16:23 IST 2015]; root of context hierarchy
INFO | PListStore:[C:\apache-activemq-5.11.1\data\localhost\tmp_storage] started …Run Code Online (Sandbox Code Playgroud) 我在启动主机时收到WARN消息,主机是连接到域控制器(DC)的主机控制器(HC)之一....
[服务器:server-two] 14:06:13,822 WARN [org.jboss.as.txn](ServerService线程池 - 33)JBAS010153:节点标识符属性设置为默认值.请确保它是独一无二的.
我的host-slave.xml有以下配置...
<server-identities>
<!-- Replace this with either a base64 password of your own, or use a vault with a vault expression -->
<secret value="c2xhdmVfdXNlcl9wYXNzd29yZA=="/>
</server-identities>
Run Code Online (Sandbox Code Playgroud)
我希望这个配置是原因......也许我不明白.....但我找不到node identifier property这是默认的秘密值,我希望可能是这个WARN消息的原因... .
但是我没有提到HC来查找host-slave.xml.....我运行启动我的HC的命令是.....
[host-~-\-\-\bin]$./domain.sh -Djboss.domain.master.address=nnn.nn.nn.88 -b nnn.nn.nn.89 -bmanagement nnn.nn.nn.89 &
nnn.nn.nn.88是我的DC
否则请告知WARN消息的原因是什么........
请告诉我这条WARN消息的含义,并告诉我们所需的配置,以克服和理清本次WARN绑定的任何连续后果....
这应该是每个人在部署时都会遇到的非常普遍的问题.如果(.war)在/上下文中部署Web存档,则会失败.
JBoss控制台中的错误是这样的,
内部服务器错误{"结果"=>"失败","失败描述"=> {"JBAS014671:失败的服务"=> {"jboss.web.deployment.default-host./"=>"org.jboss.服务jboss.web.deployment.default-host./中的msc.service.StartException:无法启动服务引起:java.lang.IllegalArgumentException:JBWEB000250:名称已存在的子容器"}},"roll-back"= > true}
问题来自于以下配置 standalone.xml
<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
Run Code Online (Sandbox Code Playgroud) 我已经在JBoss中部署了耳朵,其中包含很少的战争(Web Archive).基本上,部署的ear文件是由ant通过在启动ant构建之前设置TOMCAT_HOME构建的.
set TOMCAT_HOME=C:\apache-tomcat-6.0.32
Run Code Online (Sandbox Code Playgroud)
我收到了以下错误.我在JBoss EAP 6.4.0.GA(AS 7.5.0.Final-redhat-21)中部署了它
11:38:34,340 ERROR [org.jboss.msc.service.fail](MSC服务主题1-5)MSC000001:无法启动服务jboss.web.deployment.default-host./:org.jboss.msc.service服务中的.StartException jboss.web.deployment.default-host./:无法在org.jboss.msc.service.ServiceControllerImpl $ StartTask.run(ServiceControllerImpl.java:1936)[jboss-msc-1.1.5.在java.util.concurrent的java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[rt.jar:1.8.0_45]上的Final-redhat-1.jar:1.1.5.Final-redhat-1] .ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)[rt.jar:1.8.0_45] at java.lang.Thread.run(Thread.java:745)[rt.jar:1.8.0_45]
引起:java.lang.IllegalArgumentException:JBWEB000250:名称已存在的子容器
引起:java.lang.IllegalArgumentException:JBWEB000250:名称已存在于org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:794)org.apache.catalina.core.ContainerBase.addChild(ContainerBase)的子容器.java:785)在org.jboss的org.apache.catalina.core.StandardHost.addChild(StandardHost.java:353)org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:62). as.web.deployment.WebContextInjector.inject(WebContextInjector.java:38)at org.jboss.msc.inject.CastingInjector.inject(CastingInjector.java:55)[jboss-msc-1.1.5.Final-redhat-1. jar:1.1.5.Final-redhat-1]在org.jboss.msc.service.ServiceControllerImpl.doInject(ServiceControllerImpl.java:1704)[jboss-msc-1.1.5.Final-redhat-1.jar:1.1. 5.Final-redhat-1]在org.jboss.msc.service.ServiceControllerImpl.access $ 2000(ServiceControllerImpl.java:52)[jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final -redhat-1]在org.jboss.msc.service.ServiceControllerImpl $ StartTask.performInjection s(ServiceControllerImpl.java:1949)[jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]在org.jboss.msc.service.ServiceControllerImpl $ StartTask.run( ServiceControllerImpl.java:1908) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1] ... 3更多
该项目是一个遗留项目.它有项目lib目录中的Struts 1.2.9,Springs-2.0.8,Hibernate-3.2.6 jar文件,以及Web Archive(.war)的\ WEB-INF \下的配置.
基本上我将应用程序从Websphere移植到JBoss
我该如何解决或克服这个问题.
我收到以下错误。
java.lang.RuntimeException: java.lang.RuntimeException: 请求的属性未通过 JMX 公开:setEnabled
我该如何解决这个问题。
这是我在 WLST(Weblogic Scripting Tool)中尝试过的一组命令。
wls:/MiCommApp/serverConfig> cd('/Servers/' 'AdminServer' '/SSL/' 'AdminServer' )
wls:/MiCommApp/serverConfig/Servers/AdminServer/SSL/AdminServer> cmo.setEnabled(true)
Traceback (innermost last):
File "<console>", line 1, in ?
at weblogic.management.jmx.ExceptionMapper.matchJMXException(ExceptionMapper.java:74)
at weblogic.management.jmx.MBeanServerInvocationHandler.doInvoke(MBeanServerInvocationHandler.java:508)
at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:382)
at com.sun.proxy.$Proxy16.setEnabled(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
java.lang.RuntimeException: java.lang.RuntimeException: The requested attribute
is not exposed through JMX: setEnabled
Run Code Online (Sandbox Code Playgroud) jboss ×2
python ×2
wlst ×2
ant ×1
apache ×1
command-line ×1
java ×1
java-ee ×1
jbehave ×1
jboss-eap-6 ×1
jboss7.x ×1
powershell ×1
tomcat ×1
weblogic12c ×1
windows ×1