You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jean-Louis MONTEIRO <je...@atosorigin.com> on 2011/01/03 08:53:05 UTC
Current tasks and status
Hi all,
I've got important issues with OpenEJB, when it's embedded in Tomcat.
For some of them, I created a JIRA OPENEJB-1417 OPENEJB-1416
See also
http://openejb.979440.n4.nabble.com/TR-jira-Created-OPENEJB-1416-Classloading-performance-issue-in-SAAJFactoryFinder-tp3090548p3090548.html
Since OpenEJB 3.1.4 we also have had bad startup performances.
For example, try to add the BcProv 1.5 artifact to a WEB-INF/lib/ directory
of a webapp and you will see what happens. I know that this jar is already
available in OpenEJB/lib and it should not be included in wars but end users
doesn't really know what happens behind the scene with Tomcat + OpenEJB and
classloading issue.
So, in order to increase deployment time, i managed also to solve:
https://issues.apache.org/jira/browse/OPENEJB-1231
https://issues.apache.org/jira/browse/OPENEJB-1230
While digging and fixing those issues with Rniamo, I was repeating again and
again the same code. There is already a lot of duplicate code (which I don't
like at all) specially in Tomcat integration. So i decided to create
https://issues.apache.org/jira/browse/OPENEJB-1418.
By refactoring the code, i resolve implicitly
https://issues.apache.org/jira/browse/OPENEJB-1417
Another good impact is that EAR integration in Tomcat really works now.
Pojo web service management is also better now.
Regarding OPENEJB-1230, I noticed that the behavior is not the same in
standalone versus embedded mode.
In standalone, all is excluded (defaults) and OpenEJB only looks for modules
with descriptors whereas in Tomcat, it scans the whole classloader which is
very time consuming (test with BouncyCastle). Anyway, now the behavior is
the same in Tomcat and in standalone mode. For each webapp we can change
include/exclude pattern or for all webapps if you use the default
context.xml. We can also now exclude a entire webapp from being deployed by
OpenEJB.
The question is about defaults now:
- for standalone, we have include="" and exclude=".*" which is pretty call
for unit tests
- for Tomcat, we have the same which is not really spec compliant because
AFAIR, descriptors are optional.
In standalone mode (MainImpl classes), Tomcat and Jetty, we have the
system.properties where we can override with more relevant defaults.
In unit test (initial context), we can leave those defaults because there
are very useful.
Thoughts?
Regarding JPA 2 support
(https://issues.apache.org/jira/browse/OPENEJB-1236), i think that's now
finished. See also
http://openejb.979440.n4.nabble.com/Fwd-svn-commit-r1052305-1-3-in-openejb-trunk-openejb3-container-openejb-jee-src-main-java-org-apache-tp3162245p3162245.html
Last but not least ;-) Bean Validation integration
https://issues.apache.org/jira/browse/OPENEJB-1352 and the related post
http://openejb.979440.n4.nabble.com/OPENEJB-1352-Bean-Validation-tp3162301p3162301.html
That was a first shoot. It works with some limitations, but before going
ahead i'd like to get an input to know if i'm going fine or if it's totally
wrong to do so.
I order to save my work and allow each one to have a look, I'd like to
create a branch and commit all changes to the branch.
So we can then merge what we want and "spread" all changes to the right
issue.
Otherwize, i can commit on the trunk after another full compile/test.
By the way, all still works for me.
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenEJB ........................................... SUCCESS [1.062s]
[INFO] OpenEJB :: Dependencies ........................... SUCCESS [0.110s]
[INFO] OpenEJB :: Dependencies :: JavaEE API ............. SUCCESS [13.265s]
[INFO] OpenEJB :: iTests ................................. SUCCESS [0.250s]
[INFO] OpenEJB :: iTests Beans ........................... SUCCESS [4.391s]
[INFO] OpenEJB :: iTests Servlets ........................ SUCCESS [1.234s]
[INFO] OpenEJB :: iTests Client .......................... SUCCESS [6.234s]
[INFO] OpenEJB :: iTests Interceptor Beans ............... SUCCESS [1.094s]
[INFO] OpenEJB :: iTests App ............................. SUCCESS [3.094s]
[INFO] OpenEJB :: iTests Web ............................. SUCCESS [1.125s]
[INFO] OpenEJB :: Container .............................. SUCCESS [0.171s]
[INFO] OpenEJB :: Container :: API ....................... SUCCESS [0.829s]
[INFO] OpenEJB :: Container :: Loader .................... SUCCESS [2.312s]
[INFO] OpenEJB :: Container :: Java Agent ................ SUCCESS [1.516s]
[INFO] OpenEJB :: Container :: Java EE ................... SUCCESS [35.436s]
[INFO] OpenEJB :: Container :: Core ...................... SUCCESS
[9:08.162s]
[INFO] OpenEJB :: Container :: Spring .................... SUCCESS [11.484s]
[INFO] OpenEJB :: Container :: OSGi :: Core .............. SUCCESS [3.781s]
[INFO] OpenEJB :: Container :: OSGi ...................... SUCCESS [5.141s]
[INFO] OpenEJB :: Container :: ActiveMQ4 ................. SUCCESS
[1:20.686s]
[INFO] OpenEJB :: Container :: JUnit ..................... SUCCESS [17.437s]
[INFO] OpenEJB :: Server ................................. SUCCESS [0.312s]
[INFO] OpenEJB :: Server :: Client ....................... SUCCESS [13.625s]
[INFO] OpenEJB :: Server :: Core ......................... SUCCESS [7.265s]
[INFO] OpenEJB :: Server :: Multicast Discovery .......... SUCCESS [27.516s]
[INFO] OpenEJB :: Server :: EJBd ......................... SUCCESS [56.483s]
[INFO] OpenEJB :: Server :: Admin ........................ SUCCESS [1.531s]
[INFO] OpenEJB :: Server :: Http ......................... SUCCESS [25.578s]
[INFO] OpenEJB :: Server :: WebAdmin ..................... SUCCESS [5.921s]
[INFO] OpenEJB :: Server :: Telnet ....................... SUCCESS [3.422s]
[INFO] OpenEJB :: Server :: ActiveMQ ..................... SUCCESS [3.344s]
[INFO] OpenEJB :: Server :: CORBA ........................ SUCCESS [1.187s]
[INFO] OpenEJB :: Server :: Derby Network Service ........ SUCCESS [2.985s]
[INFO] OpenEJB :: Server :: Hsql ......................... SUCCESS [3.062s]
[INFO] OpenEJB :: Server :: Webservices .................. SUCCESS [7.172s]
[INFO] OpenEJB :: Server :: Axis ......................... SUCCESS [10.078s]
[INFO] OpenEJB :: Server :: Axis2 ........................ SUCCESS [14.281s]
[INFO] OpenEJB :: Server :: CXF .......................... SUCCESS [17.921s]
[INFO] OpenEJB :: Server :: Daemon ....................... SUCCESS [2.782s]
[INFO] OpenEJB :: Examples :: @ApplicationException inheritance SUCCESS
[6.749s]
[INFO] OpenEJB :: Examples :: Simple Stateful Pojo ....... SUCCESS [4.907s]
[INFO] OpenEJB :: Examples :: Simple Stateless Pojo ...... SUCCESS [4.187s]
[INFO] OpenEJB :: Examples :: Simple Stateless With Deployment Descriptor
SUCCESS [4.781s]
[INFO] OpenEJB :: Examples :: Simple Singleton ........... SUCCESS [4.109s]
[INFO] OpenEJB :: Examples :: Simple MDB Example ......... SUCCESS [5.500s]
[INFO] OpenEJB :: Examples :: Simple MDB Using Deployment Descriptor Example
SUCCESS [6.344s]
[INFO] OpenEJB :: Examples :: Simple CMP2 Entity ......... SUCCESS [7.719s]
[INFO] OpenEJB :: Examples :: Simple Webservice .......... SUCCESS [10.296s]
[INFO] OpenEJB :: Examples :: EJB 2.1 Component Interfaces SUCCESS [4.766s]
[INFO] OpenEJB :: Examples :: @EJB Injection ............. SUCCESS [4.843s]
[INFO] OpenEJB :: Examples :: @Resource env-entry Injection SUCCESS
[5.657s]
[INFO] OpenEJB :: Examples :: @Resource DataSource Injection SUCCESS
[4.249s]
[INFO] OpenEJB :: Examples :: @PersistenceContext EntityManager Injection
SUCCESS [6.688s]
[INFO] OpenEJB :: Examples :: @Resource javax.jms.ConnectionFactory SUCCESS
[6.125s]
[INFO] OpenEJB :: Examples :: Testing Transactions ....... SUCCESS [7.484s]
[INFO] OpenEJB :: Examples :: Testing Security ........... SUCCESS [7.422s]
[INFO] OpenEJB :: Examples :: Testing Security ........... SUCCESS [7.234s]
[INFO] OpenEJB :: Examples :: TestCase Injection ......... SUCCESS [7.265s]
[INFO] OpenEJB :: Examples :: Alternate Descriptors ...... SUCCESS [7.688s]
[INFO] OpenEJB :: Examples :: Ear Testing ................ SUCCESS [0.156s]
[INFO] OpenEJB :: Examples :: Ear Testing :: Business Model SUCCESS
[1.141s]
[INFO] OpenEJB :: Examples :: Ear Testing :: Business Logic SUCCESS
[6.921s]
[INFO] OpenEJB :: Examples :: Interceptors ............... SUCCESS [6.453s]
[INFO] OpenEJB :: Examples :: Expanded support for Env Entries SUCCESS
[5.266s]
[INFO] OpenEJB :: Examples :: Hello World - Weblogic ..... SUCCESS [5.797s]
[INFO] OpenEJB :: Examples :: JPA with Hibernate ......... SUCCESS [12.562s]
[INFO] OpenEJB :: Examples :: JPA with EclipseLink ....... SUCCESS [9.109s]
[INFO] OpenEJB :: Examples :: Spring Integration ......... SUCCESS [11.781s]
[INFO] OpenEJB :: Examples :: Telephone Stateful Pojo .... SUCCESS [6.141s]
[INFO] OpenEJB :: Examples :: Quartz Application ......... SUCCESS [0.125s]
[INFO] Quartz Resource Adapter ........................... SUCCESS [0.937s]
[INFO] Quartz Beans ...................................... SUCCESS [9.016s]
[INFO] OpenEJB :: Examples :: Webservice Attachments ..... SUCCESS [9.296s]
[INFO] OpenEJB :: Web Examples :: EJB Examples War ....... SUCCESS [4.250s]
[INFO] OpenEJB :: Web Examples :: EJB WebService ......... SUCCESS [1.375s]
[INFO] OpenEJB :: Web Examples :: JSF with MyFaces ....... SUCCESS [6.484s]
[INFO] OpenEJB :: Web Examples :: Struts ................. SUCCESS [5.922s]
[INFO] OpenEJB :: Web Examples :: EJB WebService ......... SUCCESS [9.937s]
[INFO] OpenEJB :: Web Examples ........................... SUCCESS [0.172s]
[INFO] OpenEJB :: Web Examples :: EJB WebService with Security SUCCESS
[10.188s]
[INFO] OpenEJB :: Web Examples :: EJB WebService with WS-Security SUCCESS
[20.624s]
[INFO] OpenEJB :: Examples :: Webservice Inheritance ..... SUCCESS [12.391s]
[INFO] OpenEJB :: Examples :: Transaction Rollback ....... SUCCESS [10.874s]
[INFO] OpenEJB :: Examples :: Troubleshooting ............ SUCCESS [8.500s]
[INFO] OpenEJB :: Examples ............................... SUCCESS [0.313s]
[INFO] OpenEJB :: Assembly ............................... SUCCESS [0.172s]
[INFO] OpenEJB :: Assembly :: WebApp :: Common ........... SUCCESS [3.937s]
[INFO] OpenEJB :: Assembly :: iTests Standalone Client ... SUCCESS [12.094s]
[INFO] OpenEJB :: Assembly :: Tomcat ..................... SUCCESS [0.390s]
[INFO] OpenEJB :: Assembly :: Tomcat :: Loader ........... SUCCESS [2.953s]
[INFO] OpenEJB :: Assembly :: Tomcat :: Common ........... SUCCESS [7.219s]
[INFO] OpenEJB :: Assembly :: Tomcat :: Catalina ......... SUCCESS [6.531s]
[INFO] OpenEJB :: Assembly :: Tomcat :: Webapp ........... SUCCESS [29.359s]
[INFO] OpenEJB :: Assembly :: Tomcat :: Bundle ........... SUCCESS
[2:26.435s]
[INFO] OpenEJB :: Assembly :: Webapp ..................... SUCCESS
[1:03.108s]
[INFO] OpenEJB :: Assembly :: Java EE API Libraries ...... SUCCESS [12.968s]
[INFO] OpenEJB :: Assembly :: Standalone ................. SUCCESS [43.640s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 26:13.861s
[INFO] Finished at: Thu Dec 30 16:15:21 CET 2010
[INFO] Final Memory: 492M/989M
[INFO]
------------------------------------------------------------------------
Regards,
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3171647.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi Jon,
It's working :D
Found what's your problem. Actually, filtering now also works in Tomcat.
By default, we filter SystemApps with
if (filterSystemApps){
urlSet =
urlSet.exclude(".*/openejb-[^/]+(.(jar|ear|war)(!/)?|/target/(test-)?classes/?)");
}
In the itest webapp, ejb modules are openejb-itests-(beans|servlet).
So they are just ignore.
To force OpenEJB to also scan beans in those jars, you need to add in the
web.xml
<context-param>
<param-name>openejb.deployments.classpath.include</param-name>
<param-value>.*openejb-itests-.*</param-value>
</context-param>
By the way, I also changed DeploymentResolver to change the order
include/exclude are applied regarding SystemApps.
I will do a full compile/run and give it another try with itest-runner.
I gonna let you know what's the result this afternoon.
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3207001.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
Hi Jean-Louis
Hmmmm. I just run the itest-runner and I'm only getting the PojoWs
failure - I'm not seeing the security errors, did you fix them?
Jon
On 10/01/2011 14:13, Jean-Louis MONTEIRO wrote:
> Hum that's strange.
> When I deploy to a Tomcat + OpenEJB 3.1.4 i get
>
> Tests run: 1360, Failures: 67, Errors: 10
>
> Will try to figure may be tomorrow what's going on with PojoWS
> Jean-Louis
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hum that's strange.
When I deploy to a Tomcat + OpenEJB 3.1.4 i get
Tests run: 1360, Failures: 67, Errors: 10
Will try to figure may be tomorrow what's going on with PojoWS
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3207231.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi Jon,
OK i found the issue with Groovy and the itests-runner script.
Il will commit changes tomorrow morning.
All is compiling and running fine on my computer.
And i'm now also able to run itests with Tomcat 6 and 7.
If everything is still OK tomorrow after the commit, i plan to push a new
snapshot.
Dunno if i need to rebuild geronimo and run tck.
Will push a new post for that point.
Thanks again for helping.
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3214739.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi Jon,
I figured yesterday what was wrong.
I also restored the older way to do.
We just need to add this to afterStart in TomcatWebAppBuilder
// required for Pojo Web Services because when Assembler creates the
application
// the CoreContainerSystem does not contain the WebContext
// see also the start method
getContainerSystem().addWebDeployment(webContext);
WsService wsService =
SystemInstance.get().getComponent(WsService.class);
if (wsService != null) {
List<WebAppInfo> webApps = contextInfo.appInfo.webApps;
for (WebAppInfo webApp : webApps) {
wsService.afterApplicationCreated(webApp);
}
}
The comment is my understanding.
That works fine, but I'd prefer to avoid calling it twice.
So i'm trying to figure if we can add the webDeployment before
a.createApplication(contextInfo.appInfo,
standardContext.getLoader().getClassLoader());
WDYT?
I will also have a look to your patch.
BTW, for WAR in EAR we don't need that hook.
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3208579.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
I've attached a patch, which seems to work for me. What do you think?
Jon
On 10/01/2011 22:22, Jonathan Gallimore wrote:
> I had a quick look at this - looks like the Pojo webservice isn't
> deployed at all. Line 280 of WsSerrvice does this:
>
> WebContext webContext = containerSystem.getWebContext(webApp.moduleId);
> if (webContext == null) return;
>
> Unfortunately, the webcontext hasn't been pushed with
> containerSystem.addWebDeployment() at this point - its invoked by
> Assembler.createApplication(), which in turn is called by
> TomcatWebAppBuilder.start(), line 311. The web deployment is updated
> in the container system later in this method (line 347).
>
> Looks like this used to be done by TomcatWebAppBuilder.afterStart().
> Perhaps we could defer the
> Assembler.fireAfterApplicationCreated(appInfo) call to
> TomcatWebAppBuilder.afterStart when we're running in Tomcat? What do
> you think?
>
> Jon
>
> On 10/01/2011 13:23, Jonathan Gallimore wrote:
>> Jean-Louis,
>>
>> Thanks for getting that in. I'll have a go with it this evening. If
>> you can look at the webservice stuff that would be great - my guess
>> is its something in TomcatWebAppBuilder or TomcatWsRegistry, but I
>> imagine you'll be able to figure it out quicker than I can!
>>
>> Cheers
>>
>> Jon
>>
>> On 10/01/2011 13:08, Jean-Louis MONTEIRO wrote:
>>> Jon,
>>>
>>> All committed!
>>> If you want, i can try looking at WebService stuff?
>>>
>>> BTW, i tested under Tomcat 6.0.24
>>>
>>> Jean-Louis
>>
>
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
I had a quick look at this - looks like the Pojo webservice isn't
deployed at all. Line 280 of WsSerrvice does this:
WebContext webContext = containerSystem.getWebContext(webApp.moduleId);
if (webContext == null) return;
Unfortunately, the webcontext hasn't been pushed with
containerSystem.addWebDeployment() at this point - its invoked by
Assembler.createApplication(), which in turn is called by
TomcatWebAppBuilder.start(), line 311. The web deployment is updated in
the container system later in this method (line 347).
Looks like this used to be done by TomcatWebAppBuilder.afterStart().
Perhaps we could defer the
Assembler.fireAfterApplicationCreated(appInfo) call to
TomcatWebAppBuilder.afterStart when we're running in Tomcat? What do you
think?
Jon
On 10/01/2011 13:23, Jonathan Gallimore wrote:
> Jean-Louis,
>
> Thanks for getting that in. I'll have a go with it this evening. If
> you can look at the webservice stuff that would be great - my guess is
> its something in TomcatWebAppBuilder or TomcatWsRegistry, but I
> imagine you'll be able to figure it out quicker than I can!
>
> Cheers
>
> Jon
>
> On 10/01/2011 13:08, Jean-Louis MONTEIRO wrote:
>> Jon,
>>
>> All committed!
>> If you want, i can try looking at WebService stuff?
>>
>> BTW, i tested under Tomcat 6.0.24
>>
>> Jean-Louis
>
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
Jean-Louis,
Thanks for getting that in. I'll have a go with it this evening. If you
can look at the webservice stuff that would be great - my guess is its
something in TomcatWebAppBuilder or TomcatWsRegistry, but I imagine
you'll be able to figure it out quicker than I can!
Cheers
Jon
On 10/01/2011 13:08, Jean-Louis MONTEIRO wrote:
> Jon,
>
> All committed!
> If you want, i can try looking at WebService stuff?
>
> BTW, i tested under Tomcat 6.0.24
>
> Jean-Louis
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Jon,
All committed!
If you want, i can try looking at WebService stuff?
BTW, i tested under Tomcat 6.0.24
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3207119.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Jon,
All committed!
If you want, i can try looking at WebService stuff?
BTW, i tested under Tomcat 6.0.24
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3207117.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Jon,
All committed!
If you want, i can try looking at WebService stuff?
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3207114.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Jon,
All committed!
If you want, i can try looking at WebService stuff?
BTW, i tested under Tomcat 6.0.24
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3207116.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
Hi Jean-Louis,
I'm afraid so - I had the complete itest suite passing with Tomcat
6.0.29, 7.0.4 and 7.0.5 with my last commit.
From your output it looks like there's a couple of security problems
and a webservice problem - I remember getting the security stuff working
with Tomcat 7 wasn't too bad, but the webservices were a bit of pain, as
it was very picky about the order certain things had to be done in,
otherwise the webservice would fail to deploy correctly (resulting in
null for the endpoint URL).
If the latest changes are committed, I can take a look this evening and
see if I can help fix these few errors.
Thanks for pointing out why the itest.war's bean weren't being picked up
- I should have thought of that!
Jon
On 10/01/2011 12:26, Jean-Louis MONTEIRO wrote:
> Jon,
>
> when running itests i get logs above.
> Did it work for you before my commit?
>
> Jean-Louis
> _________________________________________________
> |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
>
> Running EJB compliance tests on HTTP/Tomcat Server
> _________________________________________________
> ......................F.F.F.F.F.F.F.............
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> ...................
> Time: 122,78
>
> ~~ Failure Results ~~~~~~~~~
>
> There were 7 failures:
>
> Failure Summary:
> 1) Servlet.SecureServlet.invokeGetCallerPrincipal
> 2) Servlet.SecureServlet.invokeIsCallerInRole
> 3) Servlet.SecureServlet.invokeIsAllowed
> 4) Servlet.RunAsServlet.invokeGetCallerPrincipal
> 5) Servlet.RunAsServlet.invokeIsCallerInRole
> 6) Servlet.RunAsServlet.invokeIsAllowed
> 7) Servlet.WebserviceServlet.invokePojoWebservice
>
> Failure Details:
>
> 1) Servlet.SecureServlet.invokeGetCallerPrincipal
> "java.lang.reflect.InvocationTargetException
> 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:597)
> at
> org.apache.openejb.test.servlet.SecureServlet.service(SecureServlet.java:49)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: junit.framework.ComparisonFailure: null expected:<[user]> but
> was:<[guest]>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at junit.framework.Assert.assertEquals(Assert.java:87)
> at
> org.apache.openejb.test.servlet.SecureServlet.invokeGetCallerPrincipal(SecureServlet.java:84)
> ... 20 more"
>
> 2) Servlet.SecureServlet.invokeIsCallerInRole
> "java.lang.reflect.InvocationTargetException
> 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:597)
> at
> org.apache.openejb.test.servlet.SecureServlet.service(SecureServlet.java:49)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: junit.framework.AssertionFailedError: null
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at junit.framework.Assert.assertTrue(Assert.java:27)
> at
> org.apache.openejb.test.servlet.SecureServlet.invokeIsCallerInRole(SecureServlet.java:95)
> ... 20 more"
>
> 3) Servlet.SecureServlet.invokeIsAllowed
> "java.lang.reflect.InvocationTargetException
> 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:597)
> at
> org.apache.openejb.test.servlet.SecureServlet.service(SecureServlet.java:49)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: junit.framework.AssertionFailedError: Method allowUserMethod()
> NOT ALLOWED
> at junit.framework.Assert.fail(Assert.java:47)
> at
> org.apache.openejb.test.servlet.SecureServlet.invokeIsAllowed(SecureServlet.java:105)
> ... 20 more"
>
> 4) Servlet.RunAsServlet.invokeGetCallerPrincipal
> "java.lang.reflect.InvocationTargetException
> 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:597)
> at
> org.apache.openejb.test.servlet.RunAsServlet.service(RunAsServlet.java:49)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: junit.framework.ComparisonFailure: null expected:<[runas]> but
> was:<[guest]>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at junit.framework.Assert.assertEquals(Assert.java:87)
> at
> org.apache.openejb.test.servlet.RunAsServlet.invokeGetCallerPrincipal(RunAsServlet.java:84)
> ... 20 more"
>
> 5) Servlet.RunAsServlet.invokeIsCallerInRole
> "java.lang.reflect.InvocationTargetException
> 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:597)
> at
> org.apache.openejb.test.servlet.RunAsServlet.service(RunAsServlet.java:49)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: junit.framework.AssertionFailedError: null
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at junit.framework.Assert.assertTrue(Assert.java:27)
> at
> org.apache.openejb.test.servlet.RunAsServlet.invokeIsCallerInRole(RunAsServlet.java:98)
> ... 20 more"
>
> 6) Servlet.RunAsServlet.invokeIsAllowed
> "java.lang.reflect.InvocationTargetException
> 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:597)
> at
> org.apache.openejb.test.servlet.RunAsServlet.service(RunAsServlet.java:49)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: junit.framework.AssertionFailedError: Method allowRunasMethod()
> NOT ALLOWED
> at junit.framework.Assert.fail(Assert.java:47)
> at
> org.apache.openejb.test.servlet.RunAsServlet.invokeIsAllowed(RunAsServlet.java:123)
> ... 20 more"
>
> 7) Servlet.WebserviceServlet.invokePojoWebservice
> "java.lang.reflect.InvocationTargetException
> 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:597)
> at
> org.apache.openejb.test.servlet.WebserviceServlet.service(WebserviceServlet.java:50)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: javax.xml.ws.WebServiceException: Could not send Message.
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
> at $Proxy137.hello(Unknown Source)
> at
> org.apache.openejb.test.servlet.WebserviceServlet.invokePojoWebservice(WebserviceServlet.java:77)
> ... 20 more
> Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
> cannot be null.
> at org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
> at org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:815)
> at org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:741)
> at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:496)
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:244)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
> at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
> ... 22 more"
>
> FAILURES!!!
> Tests run: 1372, Failures: 7, Errors: 0
>
>
> _________________________________________________
> CLIENT JNDI PROPERTIES
> java.naming.provider.url = http://127.0.0.1:9080/openejb/ejb
> java.naming.factory.initial =
> org.apache.openejb.client.RemoteInitialContextFactory
> _________________________________________________
>
> Process finished with exit code 1
>
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Jon,
when running itests i get logs above.
Did it work for you before my commit?
Jean-Louis
_________________________________________________
|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
Running EJB compliance tests on HTTP/Tomcat Server
_________________________________________________
......................F.F.F.F.F.F.F.............
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
...................
Time: 122,78
~~ Failure Results ~~~~~~~~~
There were 7 failures:
Failure Summary:
1) Servlet.SecureServlet.invokeGetCallerPrincipal
2) Servlet.SecureServlet.invokeIsCallerInRole
3) Servlet.SecureServlet.invokeIsAllowed
4) Servlet.RunAsServlet.invokeGetCallerPrincipal
5) Servlet.RunAsServlet.invokeIsCallerInRole
6) Servlet.RunAsServlet.invokeIsAllowed
7) Servlet.WebserviceServlet.invokePojoWebservice
Failure Details:
1) Servlet.SecureServlet.invokeGetCallerPrincipal
"java.lang.reflect.InvocationTargetException
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:597)
at
org.apache.openejb.test.servlet.SecureServlet.service(SecureServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: junit.framework.ComparisonFailure: null expected:<[user]> but
was:<[guest]>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.openejb.test.servlet.SecureServlet.invokeGetCallerPrincipal(SecureServlet.java:84)
... 20 more"
2) Servlet.SecureServlet.invokeIsCallerInRole
"java.lang.reflect.InvocationTargetException
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:597)
at
org.apache.openejb.test.servlet.SecureServlet.service(SecureServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: junit.framework.AssertionFailedError: null
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at
org.apache.openejb.test.servlet.SecureServlet.invokeIsCallerInRole(SecureServlet.java:95)
... 20 more"
3) Servlet.SecureServlet.invokeIsAllowed
"java.lang.reflect.InvocationTargetException
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:597)
at
org.apache.openejb.test.servlet.SecureServlet.service(SecureServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: junit.framework.AssertionFailedError: Method allowUserMethod()
NOT ALLOWED
at junit.framework.Assert.fail(Assert.java:47)
at
org.apache.openejb.test.servlet.SecureServlet.invokeIsAllowed(SecureServlet.java:105)
... 20 more"
4) Servlet.RunAsServlet.invokeGetCallerPrincipal
"java.lang.reflect.InvocationTargetException
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:597)
at
org.apache.openejb.test.servlet.RunAsServlet.service(RunAsServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: junit.framework.ComparisonFailure: null expected:<[runas]> but
was:<[guest]>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.openejb.test.servlet.RunAsServlet.invokeGetCallerPrincipal(RunAsServlet.java:84)
... 20 more"
5) Servlet.RunAsServlet.invokeIsCallerInRole
"java.lang.reflect.InvocationTargetException
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:597)
at
org.apache.openejb.test.servlet.RunAsServlet.service(RunAsServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: junit.framework.AssertionFailedError: null
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at
org.apache.openejb.test.servlet.RunAsServlet.invokeIsCallerInRole(RunAsServlet.java:98)
... 20 more"
6) Servlet.RunAsServlet.invokeIsAllowed
"java.lang.reflect.InvocationTargetException
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:597)
at
org.apache.openejb.test.servlet.RunAsServlet.service(RunAsServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: junit.framework.AssertionFailedError: Method allowRunasMethod()
NOT ALLOWED
at junit.framework.Assert.fail(Assert.java:47)
at
org.apache.openejb.test.servlet.RunAsServlet.invokeIsAllowed(RunAsServlet.java:123)
... 20 more"
7) Servlet.WebserviceServlet.invokePojoWebservice
"java.lang.reflect.InvocationTargetException
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:597)
at
org.apache.openejb.test.servlet.WebserviceServlet.service(WebserviceServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.xml.ws.WebServiceException: Could not send Message.
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
at $Proxy137.hello(Unknown Source)
at
org.apache.openejb.test.servlet.WebserviceServlet.invokePojoWebservice(WebserviceServlet.java:77)
... 20 more
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address
cannot be null.
at org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:833)
at org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:815)
at org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:741)
at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:496)
at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:244)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
... 22 more"
FAILURES!!!
Tests run: 1372, Failures: 7, Errors: 0
_________________________________________________
CLIENT JNDI PROPERTIES
java.naming.provider.url = http://127.0.0.1:9080/openejb/ejb
java.naming.factory.initial =
org.apache.openejb.client.RemoteInitialContextFactory
_________________________________________________
Process finished with exit code 1
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3207065.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
I'm attaching my logs from Tomcat in case they're any help. I'm not sure
about the zip file exception when scanning for tag libraries is about, but
the unresolved EJB references and failing to get the persistence units looks
like a problem :S
What I'm seeing should be reproducible by building OpenEJB, and then
changing to the assembly/itest-runner directory and doing a 'mvn clean
install' in there. That will download Tomcat, deploy OpenEJB and the Itest
application and run the tests. Currently it runs against Tomcat 6.0.29 and
7.0.5. The exploded Tomcat directories are left behind in the target/ folder
after the test (which is where I'm getting these files from).
I'll try and have a look at these myself this evening.
Jon
On Sun, Jan 9, 2011 at 10:58 AM, Jonathan Gallimore <
jonathan.gallimore@gmail.com> wrote:
> Hi Jean-Louis,
>
> That seems to build successfully for me now. Unfortunatley I have run into
> some problems deploying the itests application into Tomcat, and it looks
> like there's a problem with this on Geronimo too. I was wondering whether we
> should back this out and get it into a branch so we can fix these couple of
> problems - what do you think?
>
> Jon
>
> On Fri, Jan 7, 2011 at 7:54 PM, Jean-Louis MONTEIRO <
> jean-louis.monteiro@atosorigin.com> wrote:
>
>>
>> Apologize Jon.
>>
>> Once again, a bad usage of IDEA.
>> It should be better now.
>>
>> Jean-Louis
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3192608.html
>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>
>
>
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
Hi Jean-Louis,
That seems to build successfully for me now. Unfortunatley I have run into
some problems deploying the itests application into Tomcat, and it looks
like there's a problem with this on Geronimo too. I was wondering whether we
should back this out and get it into a branch so we can fix these couple of
problems - what do you think?
Jon
On Fri, Jan 7, 2011 at 7:54 PM, Jean-Louis MONTEIRO <
jean-louis.monteiro@atosorigin.com> wrote:
>
> Apologize Jon.
>
> Once again, a bad usage of IDEA.
> It should be better now.
>
> Jean-Louis
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3192608.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Apologize Jon.
Once again, a bad usage of IDEA.
It should be better now.
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3192608.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
Hi Jean-Louis,
I'm getting an error about a missing class: DeploymentFilterable - have
any new files been missed from your commit?
Jon
On 07/01/2011 16:05, Jean-Louis MONTEIRO wrote:
> Rev 1056366
>
> Again, feel free to rollback if you consider that commit to big and/or
> wrong.
>
> Jean-Louis
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Rev 1056366
Again, feel free to rollback if you consider that commit to big and/or
wrong.
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3179350.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi Jon,
thanks for the feedback.
I saw your changes, but it should not break what i did.
I will commit everything ASAP.
If it breaks something feel free to rollback and we can give it another try
later.
Thanks.
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3179274.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Current tasks and status
Posted by Jonathan Gallimore <jo...@gmail.com>.
Its fine by me, I say go for it. I did have a look at the bugs you
mentioned, and have been meaning to reply - looks like you've been busy
getting some useful issues resolved!
Just to give you a heads up - I've just committed some stuff to get all
the itests working in Tomcat 7.0.4 and 7.0.5 (e-mail to follow up
shortly!). Don't think it'll cause any problems for you though - but let
me know if it does.
Jon
On 07/01/2011 14:01, Jean-Louis MONTEIRO wrote:
> Nobody?
> Do you prefer I commit to the trunk?
>
> Jean-Louis
Re: Current tasks and status
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Nobody?
Do you prefer I commit to the trunk?
Jean-Louis
--
View this message in context: http://openejb.979440.n4.nabble.com/Current-tasks-and-status-tp3171647p3179164.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.