You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Kay Wrobel <kw...@hawkusa.com> on 2012/12/13 21:12:05 UTC

Simple Netbeans CDI Web Application Not Working

Hi everybody.

I am new to TomEE and am having problems with the very basics of getting 
a simple CDI Application to work from Netbeans 7.2. I have added TomEE 
Plus 1.5.0 as a server via the Tools->Servers->Add Server... steps. The 
problem I have is as follows:

I create a simple Web Application with Context and Dependency Injection 
enabled and server-supplied JSF 2.1 implementation activated. I proceed 
to adding a very simple WelcomeBean.java file that looks like this:
> package beans;
>
> import java.io.Serializable;
> import javax.enterprise.context.SessionScoped;
> import javax.inject.Named;
>
> /**
>  *
>  * @author kuw
>  */
> @Named(value = "welcomeBean")
> @SessionScoped
> public class WelcomeBean implements Serializable {
>
>     private int counter;
>
>     /**
>      * Creates a new instance of WelcomeBean
>      */
>     public WelcomeBean() {
>     }
>
>     public String getMessage() {
>         return super.toString() + String.format(" You called me %d 
> times", ++counter);
>     }
> }
and then access that bean from the index.xhtml page like this:
> <h:body>
>         <h:form>
>             Message is: <h:outputText value="#{welcomeBean.message}"/>
>         </h:form>
>     </h:body>
When I run the project, the page simply shows this: "Message is:" and 
the nothing. I can't see anything in the project files that is missing. 
I have the empty shell of beans.xml file to enable CDI, web.xml is 
fairly standard only that I changed the url-pattern for the Faces 
Servlet. Here's the complete web.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
>     <context-param>
> <param-name>javax.faces.PROJECT_STAGE</param-name>
>         <param-value>Development</param-value>
>     </context-param>
>     <listener>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>     </listener>
>     <servlet>
>         <servlet-name>Faces Servlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Faces Servlet</servlet-name>
>         <url-pattern>*.xhtml</url-pattern>
>     </servlet-mapping>
>     <session-config>
>         <session-timeout>
>             30
>         </session-timeout>
>     </session-config>
>     <welcome-file-list>
>         <welcome-file>index.xhtml</welcome-file>
>     </welcome-file-list>
> </web-app>

So my question now is: what is going on? I don't see any obvious error 
messages in the different Output tabs in Netbeans.

Btw. If I target the project to the Glassfish server, it works as expected:
> Message is: beans.WelcomeBean@77431c1f You called me 3 times
(after reloading page two times).

Anyone here have any idea what I am missing? It has to be something 
essential.

Thanks,

Kay


-- 

------------------------------
The information in this e-mail is confidential and is intended solely for 
the addressee(s). Access to this email by anyone else is unauthorized. If 
you are not an intended recipient, you may not print, save or otherwise 
store the e-mail or any of the contents thereof in electronic or physical 
form, nor copy, use or disseminate the information contained in the email. 
 If you are not an intended recipient,  please notify the sender of this 
email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by Kay Wrobel <kw...@hawkusa.com>.
Romain + Howard:
I completely removed 1.5.0 and downloaded latest 1.5.1 snapshot 
(apache-tomee-1.5.1-20121212.041901-106-plus.tar.gz), extracted it to 
/usr/local/java, started the server and copied the war file to the 
webapps folder. I then opened the app URL again and now I get:
> Message is: beans.WelcomeBean@655d267a You called me 3 times
So, yeah. Thanks and that works. But this is a snapshot and not a 
release, so i.d.k. if that's got production stability or not.

Regarding the jars you both mentioned: none of them are in the libs (or 
endorsed) directories except for joda-time-1.6.2.jar.

This leaves me kinda hanging now: I am happy that it works, but I also 
don't know why it didn't work with the official build on TomEE's web 
site. I will have a hard time pitching this to management (not really 
your concern, I know). Just saying: I wish something like this wasn't 
broken out of the box.

Thanks,

Kay

On 12/13/2012 02:55 PM, Romain Manni-Bucau wrote:
> well as said by oward first give a try to the last version
>
> then don't move/remove/add these jar before you need it:
>
> asm-3.3.1.jar (added that when I was evaluating batoo jpa)
> derby.jar
> eclipselink.jar
> el-api-2.2
> el-impl-2.2
> javax.mail
> joda-time-2.0 (to replace joda-time-1.6.2 which already exists in tomee/lib)
> juel-2.2.5 (since I'm using JUEL with MyFaces for faster/better EL
> performance)
>
> (sorry Howard :p)
>
> basically: derby is needed only if you use derby database (never found
> a good reason to do so...maybe cause i dont use eclipselink), el stuff
> is already here (and doesnt hurt AFAIK so dont modify the server
> before needing it), same for eclipselink, if openjpa matches your need
> just use it
>
> about your sample, please test it in standalone, if it doesn't work
> just share it (if you cant) and well have a look
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
>> @Romain:
>> Well, the <listener-class> tag was automatically added by Netbeans when I
>> created the project. I commented it out when I re-targeted the project to
>> Glassfish or Glassfish would throw a deploy exception.
>>
>> So with the project targeted to Glassfish, I clicked in "Clean and Build" on
>> the Project node and exited out of Netbeans. I then started the TomEE
>> instance from the command line with bin/startup.sh. Then I cd'ed into
>> webapps and copied the war file from my dist directory in the Netbeans
>> project, triggering a deploy as follows:
>>> INFO: Deploying web application archive
>>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest.war
>>> Dec 13, 2012 2:45:21 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
>>> INFO: -------------------------
>>> TomcatWebAppBuilder.init /CDITest
>>> Dec 13, 2012 2:45:21 PM org.apache.openejb.util.JarExtractor extract
>>> INFO: Extracting jar:
>>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest.war
>>> Dec 13, 2012 2:45:21 PM org.apache.openejb.util.JarExtractor extract
>>> INFO: Extracted path:
>>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
>>> Dec 13, 2012 2:45:22 PM org.apache.openejb.config.ConfigurationFactory
>>> configureApplication
>>> INFO: Configuring enterprise application:
>>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
>>> Dec 13, 2012 2:45:22 PM org.apache.openejb.config.AppInfoBuilder build
>>> INFO: Enterprise application
>>> "/usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest" loaded.
>>> Dec 13, 2012 2:45:22 PM org.apache.openejb.assembler.classic.Assembler
>>> createApplication
>>> INFO: Assembling app:
>>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
>>> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.CdiBuilder initSingleton
>>> INFO: Existing thread singleton service in SystemInstance()
>>> org.apache.openejb.cdi.ThreadSingletonServiceImpl@3083e8d
>>> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.OpenEJBLifecycle
>>> startApplication
>>> INFO: OpenWebBeans Container is starting...
>>> Dec 13, 2012 2:45:22 PM org.apache.webbeans.plugins.PluginLoader startUp
>>> INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
>>> Dec 13, 2012 2:45:22 PM org.apache.webbeans.plugins.PluginLoader startUp
>>> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
>>> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.BeansDeployer
>>> validateInjectionPoints
>>> INFO: All injection points are validated successfully.
>>> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.OpenEJBLifecycle
>>> startApplication
>>> INFO: OpenWebBeans Container has started, it took 6 ms.
>>> Dec 13, 2012 2:45:22 PM org.apache.tomee.catalina.TomcatWebAppBuilder
>>> deployWebApps
>>> INFO: using context file
>>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest/META-INF/context.xml
>>> Dec 13, 2012 2:45:22 PM org.apache.openejb.assembler.classic.Assembler
>>> createApplication
>>> INFO: Deployed
>>> Application(path=/usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest)
>>> Dec 13, 2012 2:45:22 PM
>>> org.apache.myfaces.config.DefaultFacesConfigurationProvider
>>> getStandardFacesConfig
>>> INFO: Reading standard config META-INF/standard-faces-config.xml
>>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.LogMetaInfUtils
>>> logArtifact
>>> INFO: Artifact 'myfaces-api' was found in version '2.1.9' from path
>>> 'file:/usr/local/java/apache-tomee-plus-1.5.0/lib/myfaces-api-2.1.9.jar'
>>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.LogMetaInfUtils
>>> logArtifact
>>> INFO: Artifact 'myfaces-impl' was found in version '2.1.9' from path
>>> 'file:/usr/local/java/apache-tomee-plus-1.5.0/lib/myfaces-impl-2.1.9.jar'
>>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.FacesConfigurator
>>> handleSerialFactory
>>> INFO: Serialization provider : class
>>> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
>>> Dec 13, 2012 2:45:22 PM
>>> org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory
>>> getLifecycleProvider
>>> INFO: Using LifecycleProvider
>>> org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider
>>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.webapp.AbstractFacesInitializer
>>> initFaces
>>> INFO: ServletContext initialized.
>>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.webapp.AbstractFacesInitializer
>>> initFaces
>>> WARNING:
>>>
>>> *******************************************************************
>>> *** WARNING: Apache MyFaces-2 is running in DEVELOPMENT mode. ***
>>> ***                                         ^^^^^^^^^^^ ***
>>> *** Do NOT deploy to your live server(s) without changing this. ***
>>> *** See Application#getProjectStage() for more information. ***
>>> *******************************************************************
>>>
>> I go the the app URL ( http://localhost:8080/CDITest/) and still get nothing
>> other than the hard-coded text, not the text from the bean method.
>>
>> So, yeah, I guess the <listener-class> tag was not necessary. Actually makes
>> it easier for me to switch between Glassfish and TomEE in Netbeans. Anyway,
>> do you have other suggestions?
>>
>> Thanks,
>>
>> Kay
>>
>>
>> On 12/13/2012 02:37 PM, Romain Manni-Bucau wrote:
>>> hmm,
>>>
>>>
>>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>>> is useless but that's not it
>>>
>>> did yuo put a beans.xml?
>>>
>>> does it work in manual mode (put your war in webapps then bin/catalina.sh
>>> run)?
>>>
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>>
>>>
>>> 2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
>>>>>
>>>>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>>
>>
>> --
>>
>> ------------------------------
>> The information in this e-mail is confidential and is intended solely for
>> the addressee(s). Access to this email by anyone else is unauthorized. If
>> you are not an intended recipient, you may not print, save or otherwise
>> store the e-mail or any of the contents thereof in electronic or physical
>> form, nor copy, use or disseminate the information contained in the email.
>> If you are not an intended recipient,  please notify the sender of this
>> email immediately.


-- 

------------------------------
The information in this e-mail is confidential and is intended solely for 
the addressee(s). Access to this email by anyone else is unauthorized. If 
you are not an intended recipient, you may not print, save or otherwise 
store the e-mail or any of the contents thereof in electronic or physical 
form, nor copy, use or disseminate the information contained in the email. 
 If you are not an intended recipient,  please notify the sender of this 
email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by Romain Manni-Bucau <rm...@gmail.com>.
well as said by oward first give a try to the last version

then don't move/remove/add these jar before you need it:

asm-3.3.1.jar (added that when I was evaluating batoo jpa)
derby.jar
eclipselink.jar
el-api-2.2
el-impl-2.2
javax.mail
joda-time-2.0 (to replace joda-time-1.6.2 which already exists in tomee/lib)
juel-2.2.5 (since I'm using JUEL with MyFaces for faster/better EL
performance)

(sorry Howard :p)

basically: derby is needed only if you use derby database (never found
a good reason to do so...maybe cause i dont use eclipselink), el stuff
is already here (and doesnt hurt AFAIK so dont modify the server
before needing it), same for eclipselink, if openjpa matches your need
just use it

about your sample, please test it in standalone, if it doesn't work
just share it (if you cant) and well have a look

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
> @Romain:
> Well, the <listener-class> tag was automatically added by Netbeans when I
> created the project. I commented it out when I re-targeted the project to
> Glassfish or Glassfish would throw a deploy exception.
>
> So with the project targeted to Glassfish, I clicked in "Clean and Build" on
> the Project node and exited out of Netbeans. I then started the TomEE
> instance from the command line with bin/startup.sh. Then I cd'ed into
> webapps and copied the war file from my dist directory in the Netbeans
> project, triggering a deploy as follows:
>>
>> INFO: Deploying web application archive
>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest.war
>> Dec 13, 2012 2:45:21 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
>> INFO: -------------------------
>> TomcatWebAppBuilder.init /CDITest
>> Dec 13, 2012 2:45:21 PM org.apache.openejb.util.JarExtractor extract
>> INFO: Extracting jar:
>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest.war
>> Dec 13, 2012 2:45:21 PM org.apache.openejb.util.JarExtractor extract
>> INFO: Extracted path:
>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
>> Dec 13, 2012 2:45:22 PM org.apache.openejb.config.ConfigurationFactory
>> configureApplication
>> INFO: Configuring enterprise application:
>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
>> Dec 13, 2012 2:45:22 PM org.apache.openejb.config.AppInfoBuilder build
>> INFO: Enterprise application
>> "/usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest" loaded.
>> Dec 13, 2012 2:45:22 PM org.apache.openejb.assembler.classic.Assembler
>> createApplication
>> INFO: Assembling app:
>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
>> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.CdiBuilder initSingleton
>> INFO: Existing thread singleton service in SystemInstance()
>> org.apache.openejb.cdi.ThreadSingletonServiceImpl@3083e8d
>> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.OpenEJBLifecycle
>> startApplication
>> INFO: OpenWebBeans Container is starting...
>> Dec 13, 2012 2:45:22 PM org.apache.webbeans.plugins.PluginLoader startUp
>> INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
>> Dec 13, 2012 2:45:22 PM org.apache.webbeans.plugins.PluginLoader startUp
>> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
>> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.BeansDeployer
>> validateInjectionPoints
>> INFO: All injection points are validated successfully.
>> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.OpenEJBLifecycle
>> startApplication
>> INFO: OpenWebBeans Container has started, it took 6 ms.
>> Dec 13, 2012 2:45:22 PM org.apache.tomee.catalina.TomcatWebAppBuilder
>> deployWebApps
>> INFO: using context file
>> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest/META-INF/context.xml
>> Dec 13, 2012 2:45:22 PM org.apache.openejb.assembler.classic.Assembler
>> createApplication
>> INFO: Deployed
>> Application(path=/usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest)
>> Dec 13, 2012 2:45:22 PM
>> org.apache.myfaces.config.DefaultFacesConfigurationProvider
>> getStandardFacesConfig
>> INFO: Reading standard config META-INF/standard-faces-config.xml
>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.LogMetaInfUtils
>> logArtifact
>> INFO: Artifact 'myfaces-api' was found in version '2.1.9' from path
>> 'file:/usr/local/java/apache-tomee-plus-1.5.0/lib/myfaces-api-2.1.9.jar'
>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.LogMetaInfUtils
>> logArtifact
>> INFO: Artifact 'myfaces-impl' was found in version '2.1.9' from path
>> 'file:/usr/local/java/apache-tomee-plus-1.5.0/lib/myfaces-impl-2.1.9.jar'
>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.FacesConfigurator
>> handleSerialFactory
>> INFO: Serialization provider : class
>> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
>> Dec 13, 2012 2:45:22 PM
>> org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory
>> getLifecycleProvider
>> INFO: Using LifecycleProvider
>> org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider
>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.webapp.AbstractFacesInitializer
>> initFaces
>> INFO: ServletContext initialized.
>> Dec 13, 2012 2:45:22 PM org.apache.myfaces.webapp.AbstractFacesInitializer
>> initFaces
>> WARNING:
>>
>> *******************************************************************
>> *** WARNING: Apache MyFaces-2 is running in DEVELOPMENT mode. ***
>> ***                                         ^^^^^^^^^^^ ***
>> *** Do NOT deploy to your live server(s) without changing this. ***
>> *** See Application#getProjectStage() for more information. ***
>> *******************************************************************
>>
> I go the the app URL ( http://localhost:8080/CDITest/) and still get nothing
> other than the hard-coded text, not the text from the bean method.
>
> So, yeah, I guess the <listener-class> tag was not necessary. Actually makes
> it easier for me to switch between Glassfish and TomEE in Netbeans. Anyway,
> do you have other suggestions?
>
> Thanks,
>
> Kay
>
>
> On 12/13/2012 02:37 PM, Romain Manni-Bucau wrote:
>>
>> hmm,
>>
>>
>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>> is useless but that's not it
>>
>> did yuo put a beans.xml?
>>
>> does it work in manual mode (put your war in webapps then bin/catalina.sh
>> run)?
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
>>>>
>>>>
>>>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>
>
>
> --
>
> ------------------------------
> The information in this e-mail is confidential and is intended solely for
> the addressee(s). Access to this email by anyone else is unauthorized. If
> you are not an intended recipient, you may not print, save or otherwise
> store the e-mail or any of the contents thereof in electronic or physical
> form, nor copy, use or disseminate the information contained in the email.
> If you are not an intended recipient,  please notify the sender of this
> email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by Kay Wrobel <kw...@hawkusa.com>.
@Romain:
Well, the <listener-class> tag was automatically added by Netbeans when 
I created the project. I commented it out when I re-targeted the project 
to Glassfish or Glassfish would throw a deploy exception.

So with the project targeted to Glassfish, I clicked in "Clean and 
Build" on the Project node and exited out of Netbeans. I then started 
the TomEE instance from the command line with bin/startup.sh. Then I 
cd'ed into webapps and copied the war file from my dist directory in the 
Netbeans project, triggering a deploy as follows:
> INFO: Deploying web application archive 
> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest.war
> Dec 13, 2012 2:45:21 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
> INFO: -------------------------
> TomcatWebAppBuilder.init /CDITest
> Dec 13, 2012 2:45:21 PM org.apache.openejb.util.JarExtractor extract
> INFO: Extracting jar: 
> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest.war
> Dec 13, 2012 2:45:21 PM org.apache.openejb.util.JarExtractor extract
> INFO: Extracted path: 
> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
> Dec 13, 2012 2:45:22 PM org.apache.openejb.config.ConfigurationFactory 
> configureApplication
> INFO: Configuring enterprise application: 
> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
> Dec 13, 2012 2:45:22 PM org.apache.openejb.config.AppInfoBuilder build
> INFO: Enterprise application 
> "/usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest" loaded.
> Dec 13, 2012 2:45:22 PM org.apache.openejb.assembler.classic.Assembler 
> createApplication
> INFO: Assembling app: 
> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest
> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.CdiBuilder initSingleton
> INFO: Existing thread singleton service in SystemInstance() 
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@3083e8d
> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.OpenEJBLifecycle 
> startApplication
> INFO: OpenWebBeans Container is starting...
> Dec 13, 2012 2:45:22 PM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
> Dec 13, 2012 2:45:22 PM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.BeansDeployer 
> validateInjectionPoints
> INFO: All injection points are validated successfully.
> Dec 13, 2012 2:45:22 PM org.apache.openejb.cdi.OpenEJBLifecycle 
> startApplication
> INFO: OpenWebBeans Container has started, it took 6 ms.
> Dec 13, 2012 2:45:22 PM org.apache.tomee.catalina.TomcatWebAppBuilder 
> deployWebApps
> INFO: using context file 
> /usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest/META-INF/context.xml
> Dec 13, 2012 2:45:22 PM org.apache.openejb.assembler.classic.Assembler 
> createApplication
> INFO: Deployed 
> Application(path=/usr/local/java/apache-tomee-plus-1.5.0/webapps/CDITest)
> Dec 13, 2012 2:45:22 PM 
> org.apache.myfaces.config.DefaultFacesConfigurationProvider 
> getStandardFacesConfig
> INFO: Reading standard config META-INF/standard-faces-config.xml
> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.LogMetaInfUtils 
> logArtifact
> INFO: Artifact 'myfaces-api' was found in version '2.1.9' from path 
> 'file:/usr/local/java/apache-tomee-plus-1.5.0/lib/myfaces-api-2.1.9.jar'
> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.LogMetaInfUtils 
> logArtifact
> INFO: Artifact 'myfaces-impl' was found in version '2.1.9' from path 
> 'file:/usr/local/java/apache-tomee-plus-1.5.0/lib/myfaces-impl-2.1.9.jar'
> Dec 13, 2012 2:45:22 PM org.apache.myfaces.config.FacesConfigurator 
> handleSerialFactory
> INFO: Serialization provider : class 
> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> Dec 13, 2012 2:45:22 PM 
> org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory 
> getLifecycleProvider
> INFO: Using LifecycleProvider 
> org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider
> Dec 13, 2012 2:45:22 PM 
> org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
> INFO: ServletContext initialized.
> Dec 13, 2012 2:45:22 PM 
> org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
> WARNING:
>
> *******************************************************************
> *** WARNING: Apache MyFaces-2 is running in DEVELOPMENT mode. ***
> ***                                         ^^^^^^^^^^^ ***
> *** Do NOT deploy to your live server(s) without changing this. ***
> *** See Application#getProjectStage() for more information. ***
> *******************************************************************
>
I go the the app URL ( http://localhost:8080/CDITest/) and still get 
nothing other than the hard-coded text, not the text from the bean method.

So, yeah, I guess the <listener-class> tag was not necessary. Actually 
makes it easier for me to switch between Glassfish and TomEE in 
Netbeans. Anyway, do you have other suggestions?

Thanks,

Kay

On 12/13/2012 02:37 PM, Romain Manni-Bucau wrote:
> hmm,
>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> is useless but that's not it
>
> did yuo put a beans.xml?
>
> does it work in manual mode (put your war in webapps then bin/catalina.sh run)?
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
>>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>


-- 

------------------------------
The information in this e-mail is confidential and is intended solely for 
the addressee(s). Access to this email by anyone else is unauthorized. If 
you are not an intended recipient, you may not print, save or otherwise 
store the e-mail or any of the contents thereof in electronic or physical 
form, nor copy, use or disseminate the information contained in the email. 
 If you are not an intended recipient,  please notify the sender of this 
email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm,

<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
is useless but that's not it

did yuo put a beans.xml?

does it work in manual mode (put your war in webapps then bin/catalina.sh run)?

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
>>
>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>

Re: Simple Netbeans CDI Web Application Not Working

Posted by Romain Manni-Bucau <rm...@gmail.com>.
personally i use Intellij Idea (Ultimate but to be honest i only use
community features excepting for spring integration which is awesome).

i love the tomee maven plugin (@others: i know :p) and abuse of it

I think Jon is using eclipse
@Jon: right?

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
> Hey, that's good. I take it you're an Eclipse user then? I really want to
> like Eclipse, but I find there are just too many things where I have to lay
> my hands on that would work out of the box with Netbeans. At the same time,
> Netbeans currentlt doesn't let me generate JSF pages from Entity Beans if
> the server is not a full Java EE server, and it just doesn't recognize TomEE
> as one. That's I think handled better in Eclipse. So yeah, I'm like
> inbetween because I'm new to Java EE development. I come from Visual Studio
> .NET 2010 and, well, it is mighty refined let me tell you. But we're
> investigating getting away from that to a more open platform-independent
> solution. And Java EE fits really well. Plus Primefaces... it's sweet sweet
> sweet.
>
> Kay
>
>
> On 12/13/2012 03:15 PM, Romain Manni-Bucau wrote:
>>
>> you'll not get issue with your management, the 1.5.1 release passed,
>> we just wait Jean-Louis to push binaries on repo1 :)
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
>>>
>>> It does when you check the "Enable Context and Dependency Injection"
>>> check
>>> box.
>>>
>>>
>>>       Kay Wrobel
>>>
>>> MIS Associate
>>> *Hawk Electronics, Inc.*
>>> 800-THE-HAWK
>>> 800-843-4295
>>> kwrobel@hawkusa.com
>>>
>>>
>>> On 12/13/2012 03:08 PM, Romain Manni-Bucau wrote:
>>>>
>>>> Question from a none netbeans user: when creating a new JavaEE 6
>>>> project netbeans doesn't create a beans.xml?
>>>>
>>>> Romain Manni-Bucau
>>>> Twitter: @rmannibucau
>>>> Blog: http://rmannibucau.wordpress.com/
>>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>>> Github: https://github.com/rmannibucau
>>>>
>>>>
>>>>
>>>> 2012/12/13 Howard W. Smith, Jr. <sm...@gmail.com>:
>>>>>
>>>>> I struggled getting mine to work as well, but I was advised to either
>>>>> add
>>>>> beans.xml to WEB-INF or META-INF folder.
>>>>>
>>>>> I learned that in NetBeans, for META-INF, you create a new folder in
>>>>> the
>>>>> same folder that contain all your java code. Netbeans does not like
>>>>> META-INF/beans.xml, you get squiggly lines etc when trying to code, so
>>>>> the
>>>>> full path of mine is as follows:
>>>>>
>>>>> C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml
>>>>>
>>>>> Empty beans.xml would be like the following:
>>>>>
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <beans xmlns="http://java.sun.com/xml/ns/javaee"
>>>>>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>>>> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
>>>>> </beans>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <kw...@hawkusa.com>
>>>>> wrote:
>>>>>
>>>>>> Now CDI is item number one in the feature list of TomEE Web Profile
>>>>>> and
>>>>>> has been since version 1.0 if I remember correctly. I just can't get
>>>>>> it
>>>>>> to
>>>>>> work...
>>>
>>>
>>>
>>> --
>>>
>>> ------------------------------
>>> The information in this e-mail is confidential and is intended solely for
>>> the addressee(s). Access to this email by anyone else is unauthorized. If
>>> you are not an intended recipient, you may not print, save or otherwise
>>> store the e-mail or any of the contents thereof in electronic or physical
>>> form, nor copy, use or disseminate the information contained in the
>>> email.
>>> If you are not an intended recipient,  please notify the sender of this
>>> email immediately.
>
>
>
> --
>
> ------------------------------
> The information in this e-mail is confidential and is intended solely for
> the addressee(s). Access to this email by anyone else is unauthorized. If
> you are not an intended recipient, you may not print, save or otherwise
> store the e-mail or any of the contents thereof in electronic or physical
> form, nor copy, use or disseminate the information contained in the email.
> If you are not an intended recipient,  please notify the sender of this
> email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by Kay Wrobel <kw...@hawkusa.com>.
Hey, that's good. I take it you're an Eclipse user then? I really want 
to like Eclipse, but I find there are just too many things where I have 
to lay my hands on that would work out of the box with Netbeans. At the 
same time, Netbeans currentlt doesn't let me generate JSF pages from 
Entity Beans if the server is not a full Java EE server, and it just 
doesn't recognize TomEE as one. That's I think handled better in 
Eclipse. So yeah, I'm like inbetween because I'm new to Java EE 
development. I come from Visual Studio .NET 2010 and, well, it is mighty 
refined let me tell you. But we're investigating getting away from that 
to a more open platform-independent solution. And Java EE fits really 
well. Plus Primefaces... it's sweet sweet sweet.

Kay

On 12/13/2012 03:15 PM, Romain Manni-Bucau wrote:
> you'll not get issue with your management, the 1.5.1 release passed,
> we just wait Jean-Louis to push binaries on repo1 :)
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
>> It does when you check the "Enable Context and Dependency Injection" check
>> box.
>>
>>
>>       Kay Wrobel
>>
>> MIS Associate
>> *Hawk Electronics, Inc.*
>> 800-THE-HAWK
>> 800-843-4295
>> kwrobel@hawkusa.com
>>
>>
>> On 12/13/2012 03:08 PM, Romain Manni-Bucau wrote:
>>> Question from a none netbeans user: when creating a new JavaEE 6
>>> project netbeans doesn't create a beans.xml?
>>>
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>>
>>>
>>> 2012/12/13 Howard W. Smith, Jr. <sm...@gmail.com>:
>>>> I struggled getting mine to work as well, but I was advised to either add
>>>> beans.xml to WEB-INF or META-INF folder.
>>>>
>>>> I learned that in NetBeans, for META-INF, you create a new folder in the
>>>> same folder that contain all your java code. Netbeans does not like
>>>> META-INF/beans.xml, you get squiggly lines etc when trying to code, so
>>>> the
>>>> full path of mine is as follows:
>>>>
>>>> C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml
>>>>
>>>> Empty beans.xml would be like the following:
>>>>
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <beans xmlns="http://java.sun.com/xml/ns/javaee"
>>>>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>>> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
>>>> </beans>
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <kw...@hawkusa.com> wrote:
>>>>
>>>>> Now CDI is item number one in the feature list of TomEE Web Profile and
>>>>> has been since version 1.0 if I remember correctly. I just can't get it
>>>>> to
>>>>> work...
>>
>>
>> --
>>
>> ------------------------------
>> The information in this e-mail is confidential and is intended solely for
>> the addressee(s). Access to this email by anyone else is unauthorized. If
>> you are not an intended recipient, you may not print, save or otherwise
>> store the e-mail or any of the contents thereof in electronic or physical
>> form, nor copy, use or disseminate the information contained in the email.
>> If you are not an intended recipient,  please notify the sender of this
>> email immediately.


-- 

------------------------------
The information in this e-mail is confidential and is intended solely for 
the addressee(s). Access to this email by anyone else is unauthorized. If 
you are not an intended recipient, you may not print, save or otherwise 
store the e-mail or any of the contents thereof in electronic or physical 
form, nor copy, use or disseminate the information contained in the email. 
 If you are not an intended recipient,  please notify the sender of this 
email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by Kay Wrobel <kw...@hawkusa.com>.
So, I haven't settled on any particular EE container. I like the fact I 
can manage the different Glassfish aspects via a web interface and that 
it is so "reference" and just works. I disagree with the not working 
statement as the nature of this thread is: it didn't work out of the box 
with TomEE for me. I know Tomcat has a web interface, too, but it' s 
very basic. Obviously I have been spoiled by point'n'click M$ software, 
but I am also running a Linux workstation with a Windows 7 VM just for 
the .NET stuff. So you see my clear preference right there. And 
command-line is second nature to me.

Anyway, this is for a different discussion, I think.

Thanks guys for helping me with this. It probably won't be the last time 
I'm posting to this user group as I clearly intend on getting more 
involved with Java and TomEE.

Kay

On 12/13/2012 03:25 PM, Howard W. Smith, Jr. wrote:
> I recommend 1.5.1 and I prefer it over Glassfish? Why, because I don't make
> sticking with it...to make it work.
>
> TomEE and CDI-managed-beans and the not-so-real Apache Derby database on my
> slow/old Windows Server 2003 32bit 4GB RAM is performing just as good as
> Glassfish 3.1.2.2. I'm just learning 'how' to use TomEE, correctly and
> efficiently.
>
> Please make that sale.. TomEE/CDI... defintely not .NET. :)
>
> Glassfish/WELD for CDI? i was not able to make it work at all, too hard,
> too complicated... someone else told me recently, they heard all my
> buzz/chatter in many different forums, they had/have Glassfish/WELD for CDI
> and it's working good in production forthem, but they tried
> TomEE/CDI-managed-beans, and that person said... it 'feels' faster than
> Glassfish/WELD.
>
> I like the tomEE committers big time! go with tomEE. :)
>
>
> On Thu, Dec 13, 2012 at 4:15 PM, Romain Manni-Bucau
> <rm...@gmail.com>wrote:
>
>> you'll not get issue with your management, the 1.5.1 release passed,
>> we just wait Jean-Louis to push binaries on repo1 :)
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
>>> It does when you check the "Enable Context and Dependency Injection"
>> check
>>> box.
>>>
>>>
>>>       Kay Wrobel
>>>
>>> MIS Associate
>>> *Hawk Electronics, Inc.*
>>> 800-THE-HAWK
>>> 800-843-4295
>>> kwrobel@hawkusa.com
>>>
>>>
>>> On 12/13/2012 03:08 PM, Romain Manni-Bucau wrote:
>>>> Question from a none netbeans user: when creating a new JavaEE 6
>>>> project netbeans doesn't create a beans.xml?
>>>>
>>>> Romain Manni-Bucau
>>>> Twitter: @rmannibucau
>>>> Blog: http://rmannibucau.wordpress.com/
>>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>>> Github: https://github.com/rmannibucau
>>>>
>>>>
>>>>
>>>> 2012/12/13 Howard W. Smith, Jr. <sm...@gmail.com>:
>>>>> I struggled getting mine to work as well, but I was advised to either
>> add
>>>>> beans.xml to WEB-INF or META-INF folder.
>>>>>
>>>>> I learned that in NetBeans, for META-INF, you create a new folder in
>> the
>>>>> same folder that contain all your java code. Netbeans does not like
>>>>> META-INF/beans.xml, you get squiggly lines etc when trying to code, so
>>>>> the
>>>>> full path of mine is as follows:
>>>>>
>>>>> C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml
>>>>>
>>>>> Empty beans.xml would be like the following:
>>>>>
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <beans xmlns="http://java.sun.com/xml/ns/javaee"
>>>>>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>>>> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
>>>>> </beans>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <kw...@hawkusa.com>
>> wrote:
>>>>>> Now CDI is item number one in the feature list of TomEE Web Profile
>> and
>>>>>> has been since version 1.0 if I remember correctly. I just can't get
>> it
>>>>>> to
>>>>>> work...
>>>
>>>
>>> --
>>>
>>> ------------------------------
>>> The information in this e-mail is confidential and is intended solely for
>>> the addressee(s). Access to this email by anyone else is unauthorized. If
>>> you are not an intended recipient, you may not print, save or otherwise
>>> store the e-mail or any of the contents thereof in electronic or physical
>>> form, nor copy, use or disseminate the information contained in the
>> email.
>>> If you are not an intended recipient,  please notify the sender of this
>>> email immediately.


-- 

------------------------------
The information in this e-mail is confidential and is intended solely for 
the addressee(s). Access to this email by anyone else is unauthorized. If 
you are not an intended recipient, you may not print, save or otherwise 
store the e-mail or any of the contents thereof in electronic or physical 
form, nor copy, use or disseminate the information contained in the email. 
 If you are not an intended recipient,  please notify the sender of this 
email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
I recommend 1.5.1 and I prefer it over Glassfish? Why, because I don't make
sticking with it...to make it work.

TomEE and CDI-managed-beans and the not-so-real Apache Derby database on my
slow/old Windows Server 2003 32bit 4GB RAM is performing just as good as
Glassfish 3.1.2.2. I'm just learning 'how' to use TomEE, correctly and
efficiently.

Please make that sale.. TomEE/CDI... defintely not .NET. :)

Glassfish/WELD for CDI? i was not able to make it work at all, too hard,
too complicated... someone else told me recently, they heard all my
buzz/chatter in many different forums, they had/have Glassfish/WELD for CDI
and it's working good in production forthem, but they tried
TomEE/CDI-managed-beans, and that person said... it 'feels' faster than
Glassfish/WELD.

I like the tomEE committers big time! go with tomEE. :)


On Thu, Dec 13, 2012 at 4:15 PM, Romain Manni-Bucau
<rm...@gmail.com>wrote:

> you'll not get issue with your management, the 1.5.1 release passed,
> we just wait Jean-Louis to push binaries on repo1 :)
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
> > It does when you check the "Enable Context and Dependency Injection"
> check
> > box.
> >
> >
> >      Kay Wrobel
> >
> > MIS Associate
> > *Hawk Electronics, Inc.*
> > 800-THE-HAWK
> > 800-843-4295
> > kwrobel@hawkusa.com
> >
> >
> > On 12/13/2012 03:08 PM, Romain Manni-Bucau wrote:
> >>
> >> Question from a none netbeans user: when creating a new JavaEE 6
> >> project netbeans doesn't create a beans.xml?
> >>
> >> Romain Manni-Bucau
> >> Twitter: @rmannibucau
> >> Blog: http://rmannibucau.wordpress.com/
> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> Github: https://github.com/rmannibucau
> >>
> >>
> >>
> >> 2012/12/13 Howard W. Smith, Jr. <sm...@gmail.com>:
> >>>
> >>> I struggled getting mine to work as well, but I was advised to either
> add
> >>> beans.xml to WEB-INF or META-INF folder.
> >>>
> >>> I learned that in NetBeans, for META-INF, you create a new folder in
> the
> >>> same folder that contain all your java code. Netbeans does not like
> >>> META-INF/beans.xml, you get squiggly lines etc when trying to code, so
> >>> the
> >>> full path of mine is as follows:
> >>>
> >>> C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml
> >>>
> >>> Empty beans.xml would be like the following:
> >>>
> >>>
> >>> <?xml version="1.0" encoding="UTF-8"?>
> >>> <beans xmlns="http://java.sun.com/xml/ns/javaee"
> >>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>>         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> >>> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
> >>> </beans>
> >>>
> >>>
> >>>
> >>>
> >>> On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <kw...@hawkusa.com>
> wrote:
> >>>
> >>>> Now CDI is item number one in the feature list of TomEE Web Profile
> and
> >>>> has been since version 1.0 if I remember correctly. I just can't get
> it
> >>>> to
> >>>> work...
> >
> >
> >
> > --
> >
> > ------------------------------
> > The information in this e-mail is confidential and is intended solely for
> > the addressee(s). Access to this email by anyone else is unauthorized. If
> > you are not an intended recipient, you may not print, save or otherwise
> > store the e-mail or any of the contents thereof in electronic or physical
> > form, nor copy, use or disseminate the information contained in the
> email.
> > If you are not an intended recipient,  please notify the sender of this
> > email immediately.
>

Re: Simple Netbeans CDI Web Application Not Working

Posted by Romain Manni-Bucau <rm...@gmail.com>.
you'll not get issue with your management, the 1.5.1 release passed,
we just wait Jean-Louis to push binaries on repo1 :)

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/12/13 Kay Wrobel <kw...@hawkusa.com>:
> It does when you check the "Enable Context and Dependency Injection" check
> box.
>
>
>      Kay Wrobel
>
> MIS Associate
> *Hawk Electronics, Inc.*
> 800-THE-HAWK
> 800-843-4295
> kwrobel@hawkusa.com
>
>
> On 12/13/2012 03:08 PM, Romain Manni-Bucau wrote:
>>
>> Question from a none netbeans user: when creating a new JavaEE 6
>> project netbeans doesn't create a beans.xml?
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2012/12/13 Howard W. Smith, Jr. <sm...@gmail.com>:
>>>
>>> I struggled getting mine to work as well, but I was advised to either add
>>> beans.xml to WEB-INF or META-INF folder.
>>>
>>> I learned that in NetBeans, for META-INF, you create a new folder in the
>>> same folder that contain all your java code. Netbeans does not like
>>> META-INF/beans.xml, you get squiggly lines etc when trying to code, so
>>> the
>>> full path of mine is as follows:
>>>
>>> C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml
>>>
>>> Empty beans.xml would be like the following:
>>>
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans xmlns="http://java.sun.com/xml/ns/javaee"
>>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
>>> </beans>
>>>
>>>
>>>
>>>
>>> On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <kw...@hawkusa.com> wrote:
>>>
>>>> Now CDI is item number one in the feature list of TomEE Web Profile and
>>>> has been since version 1.0 if I remember correctly. I just can't get it
>>>> to
>>>> work...
>
>
>
> --
>
> ------------------------------
> The information in this e-mail is confidential and is intended solely for
> the addressee(s). Access to this email by anyone else is unauthorized. If
> you are not an intended recipient, you may not print, save or otherwise
> store the e-mail or any of the contents thereof in electronic or physical
> form, nor copy, use or disseminate the information contained in the email.
> If you are not an intended recipient,  please notify the sender of this
> email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by Kay Wrobel <kw...@hawkusa.com>.
It does when you check the "Enable Context and Dependency Injection" 
check box.


      Kay Wrobel

MIS Associate
*Hawk Electronics, Inc.*
800-THE-HAWK
800-843-4295
kwrobel@hawkusa.com

On 12/13/2012 03:08 PM, Romain Manni-Bucau wrote:
> Question from a none netbeans user: when creating a new JavaEE 6
> project netbeans doesn't create a beans.xml?
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/13 Howard W. Smith, Jr. <sm...@gmail.com>:
>> I struggled getting mine to work as well, but I was advised to either add
>> beans.xml to WEB-INF or META-INF folder.
>>
>> I learned that in NetBeans, for META-INF, you create a new folder in the
>> same folder that contain all your java code. Netbeans does not like
>> META-INF/beans.xml, you get squiggly lines etc when trying to code, so the
>> full path of mine is as follows:
>>
>> C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml
>>
>> Empty beans.xml would be like the following:
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns="http://java.sun.com/xml/ns/javaee"
>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
>> </beans>
>>
>>
>>
>>
>> On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <kw...@hawkusa.com> wrote:
>>
>>> Now CDI is item number one in the feature list of TomEE Web Profile and
>>> has been since version 1.0 if I remember correctly. I just can't get it to
>>> work...


-- 

------------------------------
The information in this e-mail is confidential and is intended solely for 
the addressee(s). Access to this email by anyone else is unauthorized. If 
you are not an intended recipient, you may not print, save or otherwise 
store the e-mail or any of the contents thereof in electronic or physical 
form, nor copy, use or disseminate the information contained in the email. 
 If you are not an intended recipient,  please notify the sender of this 
email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Question from a none netbeans user: when creating a new JavaEE 6
project netbeans doesn't create a beans.xml?

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/12/13 Howard W. Smith, Jr. <sm...@gmail.com>:
> I struggled getting mine to work as well, but I was advised to either add
> beans.xml to WEB-INF or META-INF folder.
>
> I learned that in NetBeans, for META-INF, you create a new folder in the
> same folder that contain all your java code. Netbeans does not like
> META-INF/beans.xml, you get squiggly lines etc when trying to code, so the
> full path of mine is as follows:
>
> C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml
>
> Empty beans.xml would be like the following:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
> </beans>
>
>
>
>
> On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <kw...@hawkusa.com> wrote:
>
>> Now CDI is item number one in the feature list of TomEE Web Profile and
>> has been since version 1.0 if I remember correctly. I just can't get it to
>> work...

Re: Simple Netbeans CDI Web Application Not Working

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
I struggled getting mine to work as well, but I was advised to either add
beans.xml to WEB-INF or META-INF folder.

I learned that in NetBeans, for META-INF, you create a new folder in the
same folder that contain all your java code. Netbeans does not like
META-INF/beans.xml, you get squiggly lines etc when trying to code, so the
full path of mine is as follows:

C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml

Empty beans.xml would be like the following:


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
</beans>




On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <kw...@hawkusa.com> wrote:

> Now CDI is item number one in the feature list of TomEE Web Profile and
> has been since version 1.0 if I remember correctly. I just can't get it to
> work...

Re: Simple Netbeans CDI Web Application Not Working

Posted by Kay Wrobel <kw...@hawkusa.com>.
Thanks, Howard.

For this simple example, I don't need to set up and Resources just yet. 
I've seen the documentation pages regarding the topics you mentioned and 
am aware of them. This is just too simple of an example, and it's 
failing miserably right now.

You see, I am evaluating Java EE as a whole right now because I'm 
pitching a completely rewrite of a bigger project currently written in 
.NET to upper management. And as much as I like the reference 
implementation of Glassfish, I'd like to explore TomEE as well. I like 
the idea of it all being licensed under the Apache License.

Now CDI is item number one in the feature list of TomEE Web Profile and 
has been since version 1.0 if I remember correctly. I just can't get it 
to work...

Kay

On 12/13/2012 02:43 PM, Howard W. Smith, Jr. wrote:
> Kay,
>
> Welcome to TomEE, and glad to see someone that is interested in doing what
> I did at least one month ago.
>
> Please note/do the following:
>
> 1. Download TomEE Plus 1.5.1 (SNAPSHOT) instead of 1.5.0; 1.5.0 did not
> work at all for me as my environment is Windows Server 2003 & 2008; 1.5.1
> resolves a file/directory/path issue in TomEE.
>
> 2. tomEE 1.5.1 comes bundled with MyFaces 2.1.10 (few weeks ago, it was
> bundled with MyFaces 2.1.9), and I never had the following 'reference' in
> my web.xml; I think I heard/read that you don't need the following i/fsince
> you are using servlet 3.0 in web.xml
>
>      <listener>
> <listener-class>org.apache.**myfaces.webapp.**StartupServletContextListener<
> **/listener-class>
>      </listener>
>
> 3. Copy any/all dependencies to your tomee/lib folder; whenever I install a
> new SNAPSHOT version of TomEE 1.5.1, I copy the following to tomee /lib
>
> asm-3.3.1.jar (added that when I was evaluating batoo jpa)
> derby.jar
> eclipselink.jar
> el-api-2.2
> el-impl-2.2
> javax.mail
> joda-time-2.0 (to replace joda-time-1.6.2 which already exists in tomee/lib)
> juel-2.2.5 (since I'm using JUEL with MyFaces for faster/better EL
> performance)
>
> 4. take a look at tomee/conf/tomee.xml; at the bottom of that file, you
> will see JDBC resources defined there; put your JDBC resources there
>
> 5. your persistence.xml, make sure you set your persistence provider, or
> TomEE will default it to OpenJPA; i use eclipselink (since Glassfish3.1.2.2
> used eclipselink, by default, and my app performs really well with
> eclipselink)
>
> 6. also, see tomee/conf/tomcat-users.xml; read all the lines below
> (copy/pasted from my file), especially the last line...for Netbeans. :)
>
>
> <!-- Activate those lines to get access to TomEE GUI -->
> <!-- *** DO NOT ENABLE THESE!!! SOMEONE TRIED TO HACK INTO MY SERVER!!! ***
>    <role rolename="tomee-admin" />
>    <user username="tomee" password="tomee" roles="tomee-admin,manager-gui" />
> -->
> <!-- *** DO NOT ENABLE THESE!!! SOMEONE TRIED TO HACK INTO MY SERVER!!! ***
>
> Nov 27, 2012 5:48:08 AM org.apache.catalina.realm.LockOutRealm authenticate
> WARNING: An attempt was made to authenticate the locked user "tomcat"
> Nov 27, 2012 5:48:08 AM org.apache.catalina.realm.LockOutRealm authenticate
> WARNING: An attempt was made to authenticate the locked user "tomcat"
> Nov 27, 2012 5:48:09 AM org.apache.catalina.realm.LockOutRealm authenticate
> WARNING: An attempt was made to authenticate the locked user "both"
> Nov 27, 2012 5:48:09 AM org.apache.catalina.realm.LockOutRealm authenticate
> WARNING: An attempt was made to authenticate the locked user "both"
> Nov 27, 2012 5:48:09 AM org.apache.catalina.realm.LockOutRealm authenticate
> WARNING: An attempt was made to authenticate the locked user "both"
>
> localhost_access_log.txt
> 88.191.100.2 - - [27/Nov/2012:05:47:58 -0500] "HEAD /manager/html HTTP/1.0"
> 401 -
> ...
> 88.191.100.2 - - [27/Nov/2012:05:48:09 -0500] "HEAD /manager/html HTTP/1.0"
> 401 -
> 88.191.100.2 - - [27/Nov/2012:05:48:09 -0500] "HEAD /manager/html HTTP/1.0"
> 401 -
> 88.191.100.2 - - [27/Nov/2012:05:48:09 -0500] "HEAD /manager/html HTTP/1.0"
> 401 -
>
> -->
>    <user password="YourPasswordHereSameAsNetBeans"
> roles="manager-script,admin" username="YourUserNameSameAsNetBeans"/>
> </tomcat-users>
>
>
> Hope this helps,
> Howard
>
>
>
> On Thu, Dec 13, 2012 at 3:12 PM, Kay Wrobel <kw...@hawkusa.com> wrote:
>
>> Hi everybody.
>>
>> I am new to TomEE and am having problems with the very basics of getting a
>> simple CDI Application to work from Netbeans 7.2. I have added TomEE Plus
>> 1.5.0 as a server via the Tools->Servers->Add Server... steps. The problem
>> I have is as follows:
>>
>> I create a simple Web Application with Context and Dependency Injection
>> enabled and server-supplied JSF 2.1 implementation activated. I proceed to
>> adding a very simple WelcomeBean.java file that looks like this:
>>
>>> package beans;
>>>
>>> import java.io.Serializable;
>>> import javax.enterprise.context.**SessionScoped;
>>> import javax.inject.Named;
>>>
>>> /**
>>>   *
>>>   * @author kuw
>>>   */
>>> @Named(value = "welcomeBean")
>>> @SessionScoped
>>> public class WelcomeBean implements Serializable {
>>>
>>>      private int counter;
>>>
>>>      /**
>>>       * Creates a new instance of WelcomeBean
>>>       */
>>>      public WelcomeBean() {
>>>      }
>>>
>>>      public String getMessage() {
>>>          return super.toString() + String.format(" You called me %d
>>> times", ++counter);
>>>      }
>>> }
>>>
>> and then access that bean from the index.xhtml page like this:
>>
>>> <h:body>
>>>          <h:form>
>>>              Message is: <h:outputText value="#{welcomeBean.message}"**/>
>>>          </h:form>
>>>      </h:body>
>>>
>> When I run the project, the page simply shows this: "Message is:" and the
>> nothing. I can't see anything in the project files that is missing. I have
>> the empty shell of beans.xml file to enable CDI, web.xml is fairly standard
>> only that I changed the url-pattern for the Faces Servlet. Here's the
>> complete web.xml:
>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <web-app version="3.0" xmlns="http://java.sun.com/**xml/ns/javaee<http://java.sun.com/xml/ns/javaee>"
>>> xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>"
>>> xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>>> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
>>> ">
>>>      <context-param>
>>> <param-name>javax.faces.**PROJECT_STAGE</param-name>
>>>          <param-value>Development</**param-value>
>>>      </context-param>
>>>      <listener>
>>> <listener-class>org.apache.**myfaces.webapp.**
>>> StartupServletContextListener<**/listener-class>
>>>      </listener>
>>>      <servlet>
>>>          <servlet-name>Faces Servlet</servlet-name>
>>> <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**class>
>>>          <load-on-startup>1</load-on-**startup>
>>>      </servlet>
>>>      <servlet-mapping>
>>>          <servlet-name>Faces Servlet</servlet-name>
>>>          <url-pattern>*.xhtml</url-**pattern>
>>>      </servlet-mapping>
>>>      <session-config>
>>>          <session-timeout>
>>>              30
>>>          </session-timeout>
>>>      </session-config>
>>>      <welcome-file-list>
>>>          <welcome-file>index.xhtml</**welcome-file>
>>>      </welcome-file-list>
>>> </web-app>
>>>
>> So my question now is: what is going on? I don't see any obvious error
>> messages in the different Output tabs in Netbeans.
>>
>> Btw. If I target the project to the Glassfish server, it works as expected:
>>
>>> Message is: beans.WelcomeBean@77431c1f You called me 3 times
>>>
>> (after reloading page two times).
>>
>> Anyone here have any idea what I am missing? It has to be something
>> essential.
>>
>> Thanks,
>>
>> Kay
>>
>>
>> --
>>
>> ------------------------------
>> The information in this e-mail is confidential and is intended solely for
>> the addressee(s). Access to this email by anyone else is unauthorized. If
>> you are not an intended recipient, you may not print, save or otherwise
>> store the e-mail or any of the contents thereof in electronic or physical
>> form, nor copy, use or disseminate the information contained in the email.
>> If you are not an intended recipient,  please notify the sender of this
>> email immediately.
>>


-- 

------------------------------
The information in this e-mail is confidential and is intended solely for 
the addressee(s). Access to this email by anyone else is unauthorized. If 
you are not an intended recipient, you may not print, save or otherwise 
store the e-mail or any of the contents thereof in electronic or physical 
form, nor copy, use or disseminate the information contained in the email. 
 If you are not an intended recipient,  please notify the sender of this 
email immediately.

Re: Simple Netbeans CDI Web Application Not Working

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Kay,

Welcome to TomEE, and glad to see someone that is interested in doing what
I did at least one month ago.

Please note/do the following:

1. Download TomEE Plus 1.5.1 (SNAPSHOT) instead of 1.5.0; 1.5.0 did not
work at all for me as my environment is Windows Server 2003 & 2008; 1.5.1
resolves a file/directory/path issue in TomEE.

2. tomEE 1.5.1 comes bundled with MyFaces 2.1.10 (few weeks ago, it was
bundled with MyFaces 2.1.9), and I never had the following 'reference' in
my web.xml; I think I heard/read that you don't need the following i/fsince
you are using servlet 3.0 in web.xml

    <listener>
<listener-class>org.apache.**myfaces.webapp.**StartupServletContextListener<
**/listener-class>
    </listener>

3. Copy any/all dependencies to your tomee/lib folder; whenever I install a
new SNAPSHOT version of TomEE 1.5.1, I copy the following to tomee /lib

asm-3.3.1.jar (added that when I was evaluating batoo jpa)
derby.jar
eclipselink.jar
el-api-2.2
el-impl-2.2
javax.mail
joda-time-2.0 (to replace joda-time-1.6.2 which already exists in tomee/lib)
juel-2.2.5 (since I'm using JUEL with MyFaces for faster/better EL
performance)

4. take a look at tomee/conf/tomee.xml; at the bottom of that file, you
will see JDBC resources defined there; put your JDBC resources there

5. your persistence.xml, make sure you set your persistence provider, or
TomEE will default it to OpenJPA; i use eclipselink (since Glassfish3.1.2.2
used eclipselink, by default, and my app performs really well with
eclipselink)

6. also, see tomee/conf/tomcat-users.xml; read all the lines below
(copy/pasted from my file), especially the last line...for Netbeans. :)


<!-- Activate those lines to get access to TomEE GUI -->
<!-- *** DO NOT ENABLE THESE!!! SOMEONE TRIED TO HACK INTO MY SERVER!!! ***
  <role rolename="tomee-admin" />
  <user username="tomee" password="tomee" roles="tomee-admin,manager-gui" />
-->
<!-- *** DO NOT ENABLE THESE!!! SOMEONE TRIED TO HACK INTO MY SERVER!!! ***

Nov 27, 2012 5:48:08 AM org.apache.catalina.realm.LockOutRealm authenticate
WARNING: An attempt was made to authenticate the locked user "tomcat"
Nov 27, 2012 5:48:08 AM org.apache.catalina.realm.LockOutRealm authenticate
WARNING: An attempt was made to authenticate the locked user "tomcat"
Nov 27, 2012 5:48:09 AM org.apache.catalina.realm.LockOutRealm authenticate
WARNING: An attempt was made to authenticate the locked user "both"
Nov 27, 2012 5:48:09 AM org.apache.catalina.realm.LockOutRealm authenticate
WARNING: An attempt was made to authenticate the locked user "both"
Nov 27, 2012 5:48:09 AM org.apache.catalina.realm.LockOutRealm authenticate
WARNING: An attempt was made to authenticate the locked user "both"

localhost_access_log.txt
88.191.100.2 - - [27/Nov/2012:05:47:58 -0500] "HEAD /manager/html HTTP/1.0"
401 -
...
88.191.100.2 - - [27/Nov/2012:05:48:09 -0500] "HEAD /manager/html HTTP/1.0"
401 -
88.191.100.2 - - [27/Nov/2012:05:48:09 -0500] "HEAD /manager/html HTTP/1.0"
401 -
88.191.100.2 - - [27/Nov/2012:05:48:09 -0500] "HEAD /manager/html HTTP/1.0"
401 -

-->
  <user password="YourPasswordHereSameAsNetBeans"
roles="manager-script,admin" username="YourUserNameSameAsNetBeans"/>
</tomcat-users>


Hope this helps,
Howard



On Thu, Dec 13, 2012 at 3:12 PM, Kay Wrobel <kw...@hawkusa.com> wrote:

> Hi everybody.
>
> I am new to TomEE and am having problems with the very basics of getting a
> simple CDI Application to work from Netbeans 7.2. I have added TomEE Plus
> 1.5.0 as a server via the Tools->Servers->Add Server... steps. The problem
> I have is as follows:
>
> I create a simple Web Application with Context and Dependency Injection
> enabled and server-supplied JSF 2.1 implementation activated. I proceed to
> adding a very simple WelcomeBean.java file that looks like this:
>
>> package beans;
>>
>> import java.io.Serializable;
>> import javax.enterprise.context.**SessionScoped;
>> import javax.inject.Named;
>>
>> /**
>>  *
>>  * @author kuw
>>  */
>> @Named(value = "welcomeBean")
>> @SessionScoped
>> public class WelcomeBean implements Serializable {
>>
>>     private int counter;
>>
>>     /**
>>      * Creates a new instance of WelcomeBean
>>      */
>>     public WelcomeBean() {
>>     }
>>
>>     public String getMessage() {
>>         return super.toString() + String.format(" You called me %d
>> times", ++counter);
>>     }
>> }
>>
> and then access that bean from the index.xhtml page like this:
>
>> <h:body>
>>         <h:form>
>>             Message is: <h:outputText value="#{welcomeBean.message}"**/>
>>         </h:form>
>>     </h:body>
>>
> When I run the project, the page simply shows this: "Message is:" and the
> nothing. I can't see anything in the project files that is missing. I have
> the empty shell of beans.xml file to enable CDI, web.xml is fairly standard
> only that I changed the url-pattern for the Faces Servlet. Here's the
> complete web.xml:
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <web-app version="3.0" xmlns="http://java.sun.com/**xml/ns/javaee<http://java.sun.com/xml/ns/javaee>"
>> xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>"
>> xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>
>> ">
>>     <context-param>
>> <param-name>javax.faces.**PROJECT_STAGE</param-name>
>>         <param-value>Development</**param-value>
>>     </context-param>
>>     <listener>
>> <listener-class>org.apache.**myfaces.webapp.**
>> StartupServletContextListener<**/listener-class>
>>     </listener>
>>     <servlet>
>>         <servlet-name>Faces Servlet</servlet-name>
>> <servlet-class>javax.faces.**webapp.FacesServlet</servlet-**class>
>>         <load-on-startup>1</load-on-**startup>
>>     </servlet>
>>     <servlet-mapping>
>>         <servlet-name>Faces Servlet</servlet-name>
>>         <url-pattern>*.xhtml</url-**pattern>
>>     </servlet-mapping>
>>     <session-config>
>>         <session-timeout>
>>             30
>>         </session-timeout>
>>     </session-config>
>>     <welcome-file-list>
>>         <welcome-file>index.xhtml</**welcome-file>
>>     </welcome-file-list>
>> </web-app>
>>
>
> So my question now is: what is going on? I don't see any obvious error
> messages in the different Output tabs in Netbeans.
>
> Btw. If I target the project to the Glassfish server, it works as expected:
>
>> Message is: beans.WelcomeBean@77431c1f You called me 3 times
>>
> (after reloading page two times).
>
> Anyone here have any idea what I am missing? It has to be something
> essential.
>
> Thanks,
>
> Kay
>
>
> --
>
> ------------------------------
> The information in this e-mail is confidential and is intended solely for
> the addressee(s). Access to this email by anyone else is unauthorized. If
> you are not an intended recipient, you may not print, save or otherwise
> store the e-mail or any of the contents thereof in electronic or physical
> form, nor copy, use or disseminate the information contained in the email.
> If you are not an intended recipient,  please notify the sender of this
> email immediately.
>