Hi Mark;

Thanks for interest in OpenWebBeans and welcome :)

As for errors, 

2- Tomcat Context binding is read only, so you got exception while binding 
Manager into the JNDI. But I corrected this, instead of throwing exception, I 
simply logs the error message. So, now it must be run smootly on Tomcat. But 
for Tomcat or other not Java EE appliance application servers, you have to 
include necessary Java EE jars, i.o.w

WEB-INF/lib must contain the 

 - JSF libraries and its dependencies
 - JSF Facelet library
 - webbeans-api
 - webbeans- impl
 - dom4j
 - geronimo-ejb_3.0_spec-1.0-M1.jar
 - geronimo-interceptor_3.0_spec-1.0.1.jar
 - geronimo-jpa_3.0_spec-1.1.1.jar
 - geronimo-jta_1.1_spec-1.1.1.jar
 - javassist-3.8.0.GA.jar
 - jsr250-api-1.0.jar
 - log4j-1.2.14.jar
 - scannotation-1.0.2.jar

I also committed the log4j.properties to the "samples" project 
src/main/resource to get logs messages correctly.

3- Tests seems to be ok in my local.(Ubuntu 8.04,  jdk1.5.0_15-b04)

Gurkan Erdogdu






________________________________
From: Mohammad Nour El-Din <[email protected]>
To: [email protected]
Sent: Monday, January 5, 2009 3:45:29 PM
Subject: Re: CodingStyle question

Hi Mark...

  Thanks for your interest in OpenWebBeans :-). For the coding
standards you can it here You can find our coding standards here
http://incubator.apache.org/openwebbeans/eclipse-formatter.xml . For
the errors I will check them max by tomorrow to see if I have the same
errors on my machine.

On Mon, Jan 5, 2009 at 2:51 PM, Mark Struberg <[email protected]> wrote:
> Hi folks!
>
> First of all a big hands up for OpenWebBeans!
>
> I'm following this project since Matze made the announcement on the myFaces 
> list a few months ago and I'm happy that the source finally found the way to 
> the official apache repo.
>
> Long story told short:
> 1.) what coding style will you use? Which tabsize, spaces only, etc? Maybe 
> we'll provide an idea and eclipse prefs.xml?
>
> 2.) what appsrv are you testing your samples with? I tried tomcat-6.0.14, 
> tomcat-6.0.18 and jetty-6.1.14 and got the following exceptions:
>  jetty:
> 2009-01-05 13:15:24.018::WARN:  Failed startup of context 
> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@13f4cf6f{/guess,/home/msx/develop/java/backwork/openwebbeans/samples/guess/src/main/webapp}
> org.apache.webbeans.exception.WebBeansDeploymentException: 
> org.apache.webbeans.exception.WebBeansException: Unable to bind object with 
> name : java:comp/Manager
>        at 
> org.apache.webbeans.config.WebBeansContainerDeployer.deploy(WebBeansContainerDeployer.java:110)
> ...
> Caused by: javax.naming.NamingException: This context is immutable
>        at org.mortbay.naming.NamingContext.bind(NamingContext.java:324)
>        at org.mortbay.naming.NamingContext.bind(NamingContext.java:397)
>        at org.mortbay.naming.NamingContext.bind(NamingContext.java:417)
>        at 
> org.mortbay.naming.java.javaRootURLContext.bind(javaRootURLContext.java:124)
>
>
>  tomcat-6.0.18:
> SCHWERWIEGEND: Exception sending context initialized event to listener 
> instance of class org.apache.webbeans.servlet.WebBeansConfigurationListener
> org.apache.webbeans.exception.WebBeansDeploymentException: 
> org.apache.webbeans.exception.WebBeansException: Unable to bind object with 
> name : java:comp/Manager
>        at 
> org.apache.webbeans.config.WebBeansContainerDeployer.deploy(WebBeansContainerDeployer.java:110)
> ...
> Caused by: javax.naming.NamingException: Context is read only
>        at 
> org.apache.naming.NamingContext.checkWritable(NamingContext.java:903)
>        at org.apache.naming.NamingContext.unbind(NamingContext.java:243)
>        at org.apache.naming.NamingContext.unbind(NamingContext.java:282)
>        at org.apache.naming.SelectorContext.unbind(SelectorContext.java:241)
>        at javax.naming.InitialContext.unbind(InitialContext.java:416)
>        at org.apache.webbeans.util.JNDIUtil.unbind(JNDIUtil.java:79)
>
>
>
> 3.) Just to make sure I'm working with the right environment: currently a few 
> tests do fail on my machine (Fedora10, sun java x86_64 1.6.0_12-ea-b03):
> Failed tests:
> testAroundInvokeWithSameMethodName(org.apache.webbeans.test.unittests.exception.ExceptionComponentTest)
> nameSpacesNotDeclared(org.apache.webbeans.test.unittests.xml.XMLFieldTest)
> testMultipleInterceptedComponent(org.apache.webbeans.test.unittests.intercept.EJBInterceptComponentTest)
> testInterceptorWithSuperClassComponent(org.apache.webbeans.test.unittests.intercept.EJBInterceptComponentTest)
>
> txs and LieGrue,
> strub
>
>
>
>



-- 
----
Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein



      

Reply via email to