[JBoss JIRA] (ARQ-1777) Test hangs on remote Tomcat 6
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1777?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen commented on ARQ-1777:
------------------------------------
Not sure I understand quite what's wrong / how its wrong here..
Could you provide a complete project that shows the error?
I see from your configuration that you're using the Servlet 3.0 protocol on a Tomcat 6 server. Tomcat 6 only support Servlet 2.5. This would result in Tests not begin executed, but I would expect you see a error about not getting a response from the TestRunnerServlet or similar.. ?
> Test hangs on remote Tomcat 6
> -----------------------------
>
> Key: ARQ-1777
> URL: https://issues.jboss.org/browse/ARQ-1777
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Tomcat Containers
> Reporter: Pramod Kankure
>
> I have observed that test hangs when executing on tomcat 6 remote container.
> My arquillian.xml looks like below. ( I don't use authentication for jmx)
> <?xml version="1.0" encoding="UTF-8"?>
> <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://jboss.org/schema/arquillian"
> xsi:schemaLocation="http://jboss.org/schema/arquillian
> http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
> <group qualifier="Grid" default="true">
> <defaultProtocol type="Servlet 3.0" />
> <container qualifier="remote-tomcat1" default="true">
> <configuration>
> <property name="httpPort">1776</property>
> <property name="host">localhost</property>
> <property name="jmxPort">8090</property>
> </configuration>
> </container>
> </group>
> </arquillian>
> The test do stops with an error when the server is down or wrong HTTP port is specified. It does execute @deployment method of the test but never comes to execute the test method annoted with [~test.todd]
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQ-1201) FileNotFound exception when trying to access static web resouces - tomcat-embedded-6
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1201?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen updated ARQ-1201:
-------------------------------
Fix Version/s: tomcat_1.0.0.Final
> FileNotFound exception when trying to access static web resouces - tomcat-embedded-6
> ------------------------------------------------------------------------------------
>
> Key: ARQ-1201
> URL: https://issues.jboss.org/browse/ARQ-1201
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Tomcat Containers
> Affects Versions: tomcat_1.0.0.CR4
> Environment: Embedded
> Reporter: George Vagenas
> Labels: resources, static, tomcat-embedded-6,, webResources
> Fix For: tomcat_1.0.0.Final
>
> Attachments: arquillian-container-tomcat-embedded-6.patch, SimpleArqTest_DefaultWebXML.tar.gz
>
>
> When trying to access static web resource inside WAR, such as hello_world.txt:
> WAR
> |--WEB-INF/
> |--demo/
> |--hello_world.txt
> A FileNotFoundException is fired.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQ-1519) Cannot load configuration with tomcat-managed-1.0.0.CR5
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1519?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen resolved ARQ-1519.
--------------------------------
Assignee: Aslak Knutsen
Resolution: Out of Date
Fixed indirectly by ARQ-1810 as the Adapters exposed versions now match closer to the Arquillian Core versions.
The correct thing here would be to use the Arquillian-BOM to lock the Core expected versions and not let the Tomcat Adapter override the versions that Core depend on.
> Cannot load configuration with tomcat-managed-1.0.0.CR5
> -------------------------------------------------------
>
> Key: ARQ-1519
> URL: https://issues.jboss.org/browse/ARQ-1519
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Tomcat Containers
> Affects Versions: tomcat_1.0.0.CR5
> Reporter: Thomas Diesler
> Assignee: Aslak Knutsen
>
> {code}
> java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
> at org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.fromStream(DescriptorImporterBase.java:155)
> at org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.from(DescriptorImporterBase.java:182)
> at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:54)
> 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)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
> at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:261)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:56)
> {code}
> When debugging this I see
> {code}
> java.lang.NoSuchMethodError: org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.fromStream(Ljava/io/InputStream;Z)Lorg/jboss/shrinkwrap/descriptor/api/Descriptor;{code}
> this is however never fed back to the client
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQ-1519) Cannot load configuration with tomcat-managed-1.0.0.CR5
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1519?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen updated ARQ-1519:
-------------------------------
Fix Version/s: tomcat_1.0.0.Final
> Cannot load configuration with tomcat-managed-1.0.0.CR5
> -------------------------------------------------------
>
> Key: ARQ-1519
> URL: https://issues.jboss.org/browse/ARQ-1519
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Tomcat Containers
> Affects Versions: tomcat_1.0.0.CR5
> Reporter: Thomas Diesler
> Assignee: Aslak Knutsen
> Fix For: tomcat_1.0.0.Final
>
>
> {code}
> java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
> at org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.fromStream(DescriptorImporterBase.java:155)
> at org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.from(DescriptorImporterBase.java:182)
> at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:54)
> 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)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
> at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:261)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:56)
> {code}
> When debugging this I see
> {code}
> java.lang.NoSuchMethodError: org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.fromStream(Ljava/io/InputStream;Z)Lorg/jboss/shrinkwrap/descriptor/api/Descriptor;{code}
> this is however never fed back to the client
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQ-824) Verify Arquillian can run on JDK 1.5
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-824?page=com.atlassian.jira.plugin.sy... ]
Aslak Knutsen updated ARQ-824:
------------------------------
Component/s: (was: Tomcat Containers)
> Verify Arquillian can run on JDK 1.5
> ------------------------------------
>
> Key: ARQ-824
> URL: https://issues.jboss.org/browse/ARQ-824
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Seam2, JBoss AS Containers, Test Protocol SPIs and Implementation
> Affects Versions: 1.0.0.CR7
> Reporter: Aslak Knutsen
> Assignee: Aslak Knutsen
>
> Setting compiler options target/source to 1.5 is not enough to verify that the code can actually run on JDK 1.5 since it ignores API changes. To avoid forcing developers to have JDK 1.5 installed to compile, we can add e.g. the Animal Sniffer Maven Plugin to verify using usage of JDK based on known api signatures.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQ-865) Allow managerUrl (or manager contextPath) to be configured in remote 6 container
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-865?page=com.atlassian.jira.plugin.sy... ]
Aslak Knutsen resolved ARQ-865.
-------------------------------
Labels: (was: starter)
Assignee: Aslak Knutsen
Fix Version/s: tomcat_1.0.0.CR5
Resolution: Out of Date
We now have a separate Tomcat 7 Remote adapter
> Allow managerUrl (or manager contextPath) to be configured in remote 6 container
> --------------------------------------------------------------------------------
>
> Key: ARQ-865
> URL: https://issues.jboss.org/browse/ARQ-865
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Tomcat Containers
> Affects Versions: tomcat_1.0.0.CR3
> Reporter: Dan Allen
> Assignee: Aslak Knutsen
> Fix For: tomcat_1.0.0.CR5
>
>
> Tomcat 7 changed the context path for the manager apps. For the purpose of what the Arquillian adapter uses, the context path changed from /manager to /manager/text.
> Unfortunately, the tomcat adapter does not provide a way to configure the context path of the manager url. It builds it automatically as follows:
> {code}
> protected URL createManagerUrl() throws MalformedURLException
> {
> final String template = "http://%s:%d/manager";
> return new URL(String.format(template, bindAddress, bindHttpPort));
> }
> {code}
> At a minimum, we should add a new property "managerContextPath" and honor that in this method.
> Better would be to also allow the managerUrl to be overridden entirely. This currently does not work because
> 1. arquillian cannot convert a configuration property to a URL
> 2. even if it did, the value is overridden in the validate() method anyway
> This fix will allow the Tomcat 6 remote adapter to work with Tomcat 7.
> Side note:
> The user should also be advised that it is necessary to include the JMX startup properties when starting Tomcat 7.
> -Dcom.sun.management.jmxremote.port=8089 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months