dev@glassfish.java.net

Re: running quicklook tests

From: Carla Mott <Carla.Mott_at_Sun.COM>
Date: Wed, 03 Sep 2008 23:53:40 -0700

I've updated the workspace and rebuilt it using mvn -U clean install and
see many failures.


asadmin_tests (12/1/0) Results

jdbc_user_tx (0/2/0) Results

jpa_inject_emf (0/1/1) Results

jsf_hello_world (0/2/0) Results

jsf_injection (0/1/0) Results

security_hello_jsp (1/3/0) Results

web_jspservlet_war (1/3/0) Results

Any ideas?

stack trace from jdbc_user_tx:

java.lang.Exception: java.io.FileNotFoundException:
http://localhost:8080/jdbcusertx/MyServlet?testcase=noleak
        at
test.jdbc.jdbcusertx.JdbcUserTxTestNG.testNoLeak(JdbcUserTxTestNG.java:145)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
        at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
        at org.testng.TestRunner.runWorkers(TestRunner.java:678)
        at org.testng.TestRunner.privateRun(TestRunner.java:624)
        at org.testng.TestRunner.run(TestRunner.java:495)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
        at org.testng.SuiteRunner.run(SuiteRunner.java:190)
        at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
        at org.testng.TestNG.run(TestNG.java:699)
        at org.testng.TestNG.privateMain(TestNG.java:824)
        at org.testng.TestNG.main(TestNG.java:802)
Caused by: java.io.FileNotFoundException:
http://localhost:8080/jdbcusertx/MyServlet?testcase=noleak
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at
sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1223)
        at java.security.AccessController.doPrivileged(Native Method)
        at
sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1217)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:906)
        at
test.jdbc.jdbcusertx.JdbcUserTxTestNG.testNoLeak(JdbcUserTxTestNG.java:124)
        ... 22 more
Caused by: java.io.FileNotFoundException:
http://localhost:8080/jdbcusertx/MyServlet?testcase=noleak
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1168)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
        at
test.jdbc.jdbcusertx.JdbcUserTxTestNG.testNoLeak(JdbcUserTxTestNG.java:122)
        ... 22 more

Carla Mott wrote:
> Thanks Jane. I'm able to run the tests.
>
> carla
>
> Jane Young wrote:
>> Can you try using absolute path?
>> I've never tried with symbolic link.
>>
>> "mvn -Dglassfish.home=/<your glassfish unzip directory>/glassfish/
>> test | tee runlog"
>>
>>
>> Carla Mott wrote:
>>
>>>
>>> Hi all,
>>>
>>> I followed the instructions on the wiki for V3 Quicklook tests
>>> (http://wiki.glassfish.java.net/Wiki.jsp?page=V3BuildTests#ql) but
>>> can't get them to run. I get errors it can't find my installation of
>>> glassfish.
>>>
>>>
>>> What should V3 Installation Dir be in the following:
>>> mvn -Dglassfish.home={V3 Installation Dir} test | tee run.log
>>>
>>> I tried setting it to the absolute path where I have unzipped
>>> glassfish, a relative path and setting a symbolic link in the current
>>> dir to the installation and passing that but all fail at some point.
>>>
>>> for example I set the symbolic link (glassfish) in the quicklook dir
>>> and ran
>>>
>>> mvn -Dglassfish.home=glassfish test | tee run.log
>>>
>>> I end up getting:
>>> <snip>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] An Ant BuildException has occured: The following error
>>> occurred while executing this line:
>>> /Users/cmott/logging/quicklook/build.xml:61: The following error
>>> occurred while executing this line:
>>> /Users/cmott/logging/quicklook/build.xml:97: The following error
>>> occurred while executing this line:
>>> /Users/cmott/logging/quicklook/web/helloworld/build.xml:52: The
>>> following error occurred while executing this line:
>>> /Users/cmott/logging/quicklook/gfproject/build-impl.xml:140: The
>>> following error occurred while executing this line:
>>> /Users/cmott/logging/quicklook/gfproject/build-impl.xml:174:
>>> /Users/cmott/logging/quicklook/web/helloworld/glassfish not found.
>>>
>>> any help is appreciated.
>>>
>>> Thanks,
>>> Carla
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>