Re: Geronimo 2.0: customize EJB-Container settings
Hello Mario, I do not know. I forward your email to the OpenEJB user list, where experts should be able to help. Thanks, Gianny On 28/01/2008, at 1:21 AM, the666pack wrote: hello, thank you, these values are quite helpful already to specify important performance values. however i am missing some configuration settings.. in particular: - container settings for entity beans (maximum pool size, commit option) - cache settings (not pool-settings but merely what happens when the pool is full) is it possible to set such settings in geronimo or openejb? thanks very much for helping, mario. Gianny Damour wrote: Hello Mario, EJB Container properties along with their default values are defined by the resource META-INF/org.apache.openejb.embedded/service-jar.xml within the openejb-core.jar archive. Here is an URL pointing to this resource: http://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/ openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/ service-jar.xml I believe you are after the TimeOut and PoolSize properties. Thanks, Gianny On 26/01/2008, at 10:28 PM, the666pack wrote: thanks, where can i get a full listing of the possible properties for the openejb container? in particular i would need properties like MaxCacheSize for how many beans can be kept at the same time by the ejb-container or a RemoveTimeout which defines the time after which the beans are removed from the pool when not needed. i didnt find a list where i can see the properties that are possible for openejb. thanks for helping, mario Gianny Damour wrote: Hello, You can change these settings in var/config/config.xml. This file defines overrides for the GBeans, i.e. services such as EJB- Containers, running within Geronimo. EJB Containers are declared by the org.apache.geronimo.configs/ openejb//car confiiguration and here are there default configuration: gbean name=DefaultStatelessContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateless Container/ attribute attribute name=typeSTATELESS/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultStatefulContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateful Container/ attribute attribute name=typeSTATEFUL/attribute attribute name=propertiesPoolSize=1000/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultBMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault BMP Container/attribute attribute name=typeBMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultCMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault CMP Container/attribute attribute name=typeCMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean To override the PoolSize attribute of DefaultStatefulContainer, you need to update the org.apache.geronimo.configs/openejb//car confiiguration as follows in var/config/config.xm: module name=org.apache.geronimo.configs/openejb/2.1- SNAPSHOT/ car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/ attribute attribute name=host${ServerHostname}/attribute /gbean !-- Start Overrides DefaultStatefulContainer settings -- gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=100/ attribute /gbean !-- End Overrides DefaultStatefulContainer settings -- /module Properties declared there are passed as-is to OpenEJB; hence, you can use the same property names defined by OpenEJB. Thanks, Gianny On 25/01/2008, at 6:19 AM, the666pack wrote: Hello, Can anybody tell me how i can customize the EJB-Container settings in Geronimo? I dont find an entry in the admin-console and i dont have an idea which files i can search for change. Basically i would like to set values like Bean-Pool Size or Maximum Cache Size as well as Timeout values. I hope someone can help, thank you, Mario -- View this message in context: http://www.nabble.com/ Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15072400.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15106943.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15119677.html
Re: Geronimo 2.0: customize EJB-Container settings
hello, thank you, these values are quite helpful already to specify important performance values. however i am missing some configuration settings.. in particular: - container settings for entity beans (maximum pool size, commit option) - cache settings (not pool-settings but merely what happens when the pool is full) is it possible to set such settings in geronimo or openejb? thanks very much for helping, mario. Gianny Damour wrote: Hello Mario, EJB Container properties along with their default values are defined by the resource META-INF/org.apache.openejb.embedded/service-jar.xml within the openejb-core.jar archive. Here is an URL pointing to this resource: http://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/ openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/ service-jar.xml I believe you are after the TimeOut and PoolSize properties. Thanks, Gianny On 26/01/2008, at 10:28 PM, the666pack wrote: thanks, where can i get a full listing of the possible properties for the openejb container? in particular i would need properties like MaxCacheSize for how many beans can be kept at the same time by the ejb-container or a RemoveTimeout which defines the time after which the beans are removed from the pool when not needed. i didnt find a list where i can see the properties that are possible for openejb. thanks for helping, mario Gianny Damour wrote: Hello, You can change these settings in var/config/config.xml. This file defines overrides for the GBeans, i.e. services such as EJB- Containers, running within Geronimo. EJB Containers are declared by the org.apache.geronimo.configs/ openejb//car confiiguration and here are there default configuration: gbean name=DefaultStatelessContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateless Container/attribute attribute name=typeSTATELESS/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultStatefulContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateful Container/attribute attribute name=typeSTATEFUL/attribute attribute name=propertiesPoolSize=1000/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultBMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault BMP Container/attribute attribute name=typeBMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultCMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault CMP Container/attribute attribute name=typeCMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean To override the PoolSize attribute of DefaultStatefulContainer, you need to update the org.apache.geronimo.configs/openejb//car confiiguration as follows in var/config/config.xm: module name=org.apache.geronimo.configs/openejb/2.1-SNAPSHOT/ car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/ attribute attribute name=host${ServerHostname}/attribute /gbean !-- Start Overrides DefaultStatefulContainer settings -- gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=100/attribute /gbean !-- End Overrides DefaultStatefulContainer settings -- /module Properties declared there are passed as-is to OpenEJB; hence, you can use the same property names defined by OpenEJB. Thanks, Gianny On 25/01/2008, at 6:19 AM, the666pack wrote: Hello, Can anybody tell me how i can customize the EJB-Container settings in Geronimo? I dont find an entry in the admin-console and i dont have an idea which files i can search for change. Basically i would like to set values like Bean-Pool Size or Maximum Cache Size as well as Timeout values. I hope someone can help, thank you, Mario -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15072400.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15106943.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A-customize-EJB-Container-settings-tp15072400s134p15119677.html Sent from the Apache Geronimo - Users mailing list archive at
Re: Geronimo 2.0: customize EJB-Container settings
another thing, geronimo seems to cut out the parts of the config.xml file which i entered. so i try to alter the properties: gbean name=DefaultStatelessContainer attribute name=propertiesPoolSize=100/attribute attribute name=propertiesStrictPooling=true/attribute /gbean and after starting and shutting down geronimo i end up without the PoolSize line.. same happens with TimeOut values and also in the StatefulContainer gbean. any idea? thanks, mario. Gianny Damour wrote: Hello Mario, EJB Container properties along with their default values are defined by the resource META-INF/org.apache.openejb.embedded/service-jar.xml within the openejb-core.jar archive. Here is an URL pointing to this resource: http://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/ openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/ service-jar.xml I believe you are after the TimeOut and PoolSize properties. Thanks, Gianny On 26/01/2008, at 10:28 PM, the666pack wrote: thanks, where can i get a full listing of the possible properties for the openejb container? in particular i would need properties like MaxCacheSize for how many beans can be kept at the same time by the ejb-container or a RemoveTimeout which defines the time after which the beans are removed from the pool when not needed. i didnt find a list where i can see the properties that are possible for openejb. thanks for helping, mario Gianny Damour wrote: Hello, You can change these settings in var/config/config.xml. This file defines overrides for the GBeans, i.e. services such as EJB- Containers, running within Geronimo. EJB Containers are declared by the org.apache.geronimo.configs/ openejb//car confiiguration and here are there default configuration: gbean name=DefaultStatelessContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateless Container/attribute attribute name=typeSTATELESS/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultStatefulContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateful Container/attribute attribute name=typeSTATEFUL/attribute attribute name=propertiesPoolSize=1000/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultBMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault BMP Container/attribute attribute name=typeBMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultCMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault CMP Container/attribute attribute name=typeCMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean To override the PoolSize attribute of DefaultStatefulContainer, you need to update the org.apache.geronimo.configs/openejb//car confiiguration as follows in var/config/config.xm: module name=org.apache.geronimo.configs/openejb/2.1-SNAPSHOT/ car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/ attribute attribute name=host${ServerHostname}/attribute /gbean !-- Start Overrides DefaultStatefulContainer settings -- gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=100/attribute /gbean !-- End Overrides DefaultStatefulContainer settings -- /module Properties declared there are passed as-is to OpenEJB; hence, you can use the same property names defined by OpenEJB. Thanks, Gianny On 25/01/2008, at 6:19 AM, the666pack wrote: Hello, Can anybody tell me how i can customize the EJB-Container settings in Geronimo? I dont find an entry in the admin-console and i dont have an idea which files i can search for change. Basically i would like to set values like Bean-Pool Size or Maximum Cache Size as well as Timeout values. I hope someone can help, thank you, Mario -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15072400.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15106943.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context:
Re: Geronimo 2.0: customize EJB-Container settings
thanks, where can i get a full listing of the possible properties for the openejb container? in particular i would need properties like MaxCacheSize for how many beans can be kept at the same time by the ejb-container or a RemoveTimeout which defines the time after which the beans are removed from the pool when not needed. i didnt find a list where i can see the properties that are possible for openejb. thanks for helping, mario Gianny Damour wrote: Hello, You can change these settings in var/config/config.xml. This file defines overrides for the GBeans, i.e. services such as EJB- Containers, running within Geronimo. EJB Containers are declared by the org.apache.geronimo.configs/ openejb//car confiiguration and here are there default configuration: gbean name=DefaultStatelessContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateless Container/attribute attribute name=typeSTATELESS/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultStatefulContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateful Container/attribute attribute name=typeSTATEFUL/attribute attribute name=propertiesPoolSize=1000/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultBMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault BMP Container/attribute attribute name=typeBMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultCMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault CMP Container/attribute attribute name=typeCMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean To override the PoolSize attribute of DefaultStatefulContainer, you need to update the org.apache.geronimo.configs/openejb//car confiiguration as follows in var/config/config.xm: module name=org.apache.geronimo.configs/openejb/2.1-SNAPSHOT/ car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/ attribute attribute name=host${ServerHostname}/attribute /gbean !-- Start Overrides DefaultStatefulContainer settings -- gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=100/attribute /gbean !-- End Overrides DefaultStatefulContainer settings -- /module Properties declared there are passed as-is to OpenEJB; hence, you can use the same property names defined by OpenEJB. Thanks, Gianny On 25/01/2008, at 6:19 AM, the666pack wrote: Hello, Can anybody tell me how i can customize the EJB-Container settings in Geronimo? I dont find an entry in the admin-console and i dont have an idea which files i can search for change. Basically i would like to set values like Bean-Pool Size or Maximum Cache Size as well as Timeout values. I hope someone can help, thank you, Mario -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15072400.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A-customize-EJB-Container-settings-tp15072400s134p15106943.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo 2.0: customize EJB-Container settings
Hello Mario, EJB Container properties along with their default values are defined by the resource META-INF/org.apache.openejb.embedded/service-jar.xml within the openejb-core.jar archive. Here is an URL pointing to this resource: http://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/ openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/ service-jar.xml I believe you are after the TimeOut and PoolSize properties. Thanks, Gianny On 26/01/2008, at 10:28 PM, the666pack wrote: thanks, where can i get a full listing of the possible properties for the openejb container? in particular i would need properties like MaxCacheSize for how many beans can be kept at the same time by the ejb-container or a RemoveTimeout which defines the time after which the beans are removed from the pool when not needed. i didnt find a list where i can see the properties that are possible for openejb. thanks for helping, mario Gianny Damour wrote: Hello, You can change these settings in var/config/config.xml. This file defines overrides for the GBeans, i.e. services such as EJB- Containers, running within Geronimo. EJB Containers are declared by the org.apache.geronimo.configs/ openejb//car confiiguration and here are there default configuration: gbean name=DefaultStatelessContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateless Container/attribute attribute name=typeSTATELESS/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultStatefulContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateful Container/attribute attribute name=typeSTATEFUL/attribute attribute name=propertiesPoolSize=1000/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultBMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault BMP Container/attribute attribute name=typeBMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultCMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault CMP Container/attribute attribute name=typeCMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean To override the PoolSize attribute of DefaultStatefulContainer, you need to update the org.apache.geronimo.configs/openejb//car confiiguration as follows in var/config/config.xm: module name=org.apache.geronimo.configs/openejb/2.1-SNAPSHOT/ car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/ attribute attribute name=host${ServerHostname}/attribute /gbean !-- Start Overrides DefaultStatefulContainer settings -- gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=100/attribute /gbean !-- End Overrides DefaultStatefulContainer settings -- /module Properties declared there are passed as-is to OpenEJB; hence, you can use the same property names defined by OpenEJB. Thanks, Gianny On 25/01/2008, at 6:19 AM, the666pack wrote: Hello, Can anybody tell me how i can customize the EJB-Container settings in Geronimo? I dont find an entry in the admin-console and i dont have an idea which files i can search for change. Basically i would like to set values like Bean-Pool Size or Maximum Cache Size as well as Timeout values. I hope someone can help, thank you, Mario -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15072400.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15106943.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo 2.0
Jithesh, This problem should be fixed but but I would appreciate if you could test it by deploying your app with a latest snapshot build of 2.1 or 2.0.3. The latest binary snapshots should be published under http://geronimo.apache.org/maven/server/binaries/ in a few hours. Jarek On Jan 24, 2008 12:04 PM, David Jencks [EMAIL PROTECTED] wrote: If this original tld file is valid according to that dtd then you have found a bug in our tld handling. I've opened GERONIMO-3782 to track this. thanks david jencks On Jan 24, 2008, at 12:41 AM, jithesh wrote: Hi , Thanks for ur responses... I have modified those parts and its not shown any error this time. Here is the content on the \META-INF\scriptfree.tld. ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2// EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; taglib tlib-version1.0/tlib-version jsp-version1.2/jsp-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri Thanks , Jithesh djencks wrote: umm, isn't it fairly clear from the error message? WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld Can you tell us if this file starts out with taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; or if it uses earlier xmlns or version? thanks david jencks On Jan 23, 2008, at 10:28 PM, jithesh wrote: Thanks for your response... Will u please provide the file name that i need to modify the text. Thanks, Jithesh PM Jarek Gawor-2 wrote: Move the description element to the top of the init-param element. For example, change: init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param to: init-param descriptionControls whether or not declarations are considered valid./description param-nameallowDeclarations/param-name param-valuefalse/param-value /init-param Jarek On Jan 24, 2008 12:48 AM, jithesh [EMAIL PROTECTED] wrote: Hi, Thanks for your response. Here is my server log description 15:45:25,078 WARN [JspModuleBuilderExtension] Invalid transformed taglib org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:21:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:28:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:35:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee Descriptor: taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; descriptionValidates JSP pages to prohibit use of scripting elements./description tlib-version1.0/tlib-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri validator descriptionValidates prohibitions against scripting elements./description validator-classjavax.servlet.jsp.jstl.tlv.ScriptFreeTLV/ validator-class init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param init-param param-nameallowScriptlets/param-name param-valuefalse/param-value descriptionControls whether or not
Re: Geronimo 2.0
Hi , Thanks for ur responses... I have modified those parts and its not shown any error this time. Here is the content on the \META-INF\scriptfree.tld. ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; taglib tlib-version1.0/tlib-version jsp-version1.2/jsp-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri Thanks , Jithesh djencks wrote: umm, isn't it fairly clear from the error message? WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld Can you tell us if this file starts out with taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; or if it uses earlier xmlns or version? thanks david jencks On Jan 23, 2008, at 10:28 PM, jithesh wrote: Thanks for your response... Will u please provide the file name that i need to modify the text. Thanks, Jithesh PM Jarek Gawor-2 wrote: Move the description element to the top of the init-param element. For example, change: init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param to: init-param descriptionControls whether or not declarations are considered valid./description param-nameallowDeclarations/param-name param-valuefalse/param-value /init-param Jarek On Jan 24, 2008 12:48 AM, jithesh [EMAIL PROTECTED] wrote: Hi, Thanks for your response. Here is my server log description 15:45:25,078 WARN [JspModuleBuilderExtension] Invalid transformed taglib org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:21:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:28:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:35:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee Descriptor: taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; descriptionValidates JSP pages to prohibit use of scripting elements./description tlib-version1.0/tlib-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri validator descriptionValidates prohibitions against scripting elements./description validator-classjavax.servlet.jsp.jstl.tlv.ScriptFreeTLV/ validator-class init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param init-param param-nameallowScriptlets/param-name param-valuefalse/param-value descriptionControls whether or not scriptlets are considered valid./description /init-param init-param param-nameallowExpressions/param-name param-valuefalse/param-value descriptionControls whether or not top-level expressions are considered valid./description /init-param init-param descriptionControls whether or not expressions used to supply request-time attribute values are considered valid./description param-nameallowRTExpressions/param-name param-valuefalse/param-value /init-param /validator !--Every TLD needs at least one 'tag' element. We happily oblige.-- tag descriptionDoes nothing./description namenoop/name
Re: Geronimo 2.0
If this original tld file is valid according to that dtd then you have found a bug in our tld handling. I've opened GERONIMO-3782 to track this. thanks david jencks On Jan 24, 2008, at 12:41 AM, jithesh wrote: Hi , Thanks for ur responses... I have modified those parts and its not shown any error this time. Here is the content on the \META-INF\scriptfree.tld. ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2// EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; taglib tlib-version1.0/tlib-version jsp-version1.2/jsp-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri Thanks , Jithesh djencks wrote: umm, isn't it fairly clear from the error message? WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld Can you tell us if this file starts out with taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; or if it uses earlier xmlns or version? thanks david jencks On Jan 23, 2008, at 10:28 PM, jithesh wrote: Thanks for your response... Will u please provide the file name that i need to modify the text. Thanks, Jithesh PM Jarek Gawor-2 wrote: Move the description element to the top of the init-param element. For example, change: init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param to: init-param descriptionControls whether or not declarations are considered valid./description param-nameallowDeclarations/param-name param-valuefalse/param-value /init-param Jarek On Jan 24, 2008 12:48 AM, jithesh [EMAIL PROTECTED] wrote: Hi, Thanks for your response. Here is my server log description 15:45:25,078 WARN [JspModuleBuilderExtension] Invalid transformed taglib org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:21:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:28:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:35:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee Descriptor: taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; descriptionValidates JSP pages to prohibit use of scripting elements./description tlib-version1.0/tlib-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri validator descriptionValidates prohibitions against scripting elements./description validator-classjavax.servlet.jsp.jstl.tlv.ScriptFreeTLV/ validator-class init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param init-param param-nameallowScriptlets/param-name param-valuefalse/param-value descriptionControls whether or not scriptlets are considered valid./description /init-param init-param param-nameallowExpressions/param-name param-valuefalse/param-value descriptionControls whether or not top-level expressions are considered valid./description /init-param init-param descriptionControls whether or not expressions used to supply request-time attribute values are considered valid./description param-nameallowRTExpressions/param-name param-valuefalse/param-value /init-param /validator !--Every TLD needs at least one 'tag' element. We happily oblige.--
Re: Geronimo 2.0: customize EJB-Container settings
Hello, You can change these settings in var/config/config.xml. This file defines overrides for the GBeans, i.e. services such as EJB- Containers, running within Geronimo. EJB Containers are declared by the org.apache.geronimo.configs/ openejb//car confiiguration and here are there default configuration: gbean name=DefaultStatelessContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateless Container/attribute attribute name=typeSTATELESS/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultStatefulContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault Stateful Container/attribute attribute name=typeSTATEFUL/attribute attribute name=propertiesPoolSize=1000/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultBMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault BMP Container/attribute attribute name=typeBMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean gbean name=DefaultCMPContainer class=org.apache.geronimo.openejb.EjbContainer attribute name=idDefault CMP Container/attribute attribute name=typeCMP_ENTITY/attribute reference name=OpenEjbSystem nameOpenEjbSystem/name /reference /gbean To override the PoolSize attribute of DefaultStatefulContainer, you need to update the org.apache.geronimo.configs/openejb//car confiiguration as follows in var/config/config.xm: module name=org.apache.geronimo.configs/openejb/2.1-SNAPSHOT/ car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/ attribute attribute name=host${ServerHostname}/attribute /gbean !-- Start Overrides DefaultStatefulContainer settings -- gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=100/attribute /gbean !-- End Overrides DefaultStatefulContainer settings -- /module Properties declared there are passed as-is to OpenEJB; hence, you can use the same property names defined by OpenEJB. Thanks, Gianny On 25/01/2008, at 6:19 AM, the666pack wrote: Hello, Can anybody tell me how i can customize the EJB-Container settings in Geronimo? I dont find an entry in the admin-console and i dont have an idea which files i can search for change. Basically i would like to set values like Bean-Pool Size or Maximum Cache Size as well as Timeout values. I hope someone can help, thank you, Mario -- View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15072400.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo 2.0
On Jan 23, 2008, at 2:33 AM, jithesh wrote: Hi guys, This is my first post in this forum. I was using geronimo 1.1 for deploying my appfuse(v1.9.4) application. Recently i upgraded the server to geronimo 2.0. But the application is throwing errors while deploying. My appfuse application is using taglibrary version 1.0. Would that be a reason for the errors. How can i resolve it? Hi Jithesh, Can you post the exceptions (with their stack traces) that you're receiving? --kevan
Re: Geronimo 2.0
Move the description element to the top of the init-param element. For example, change: init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param to: init-param descriptionControls whether or not declarations are considered valid./description param-nameallowDeclarations/param-name param-valuefalse/param-value /init-param Jarek On Jan 24, 2008 12:48 AM, jithesh [EMAIL PROTECTED] wrote: Hi, Thanks for your response. Here is my server log description 15:45:25,078 WARN [JspModuleBuilderExtension] Invalid transformed taglib org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:21:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:28:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:35:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee Descriptor: taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; descriptionValidates JSP pages to prohibit use of scripting elements./description tlib-version1.0/tlib-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri validator descriptionValidates prohibitions against scripting elements./description validator-classjavax.servlet.jsp.jstl.tlv.ScriptFreeTLV/validator-class init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param init-param param-nameallowScriptlets/param-name param-valuefalse/param-value descriptionControls whether or not scriptlets are considered valid./description /init-param init-param param-nameallowExpressions/param-name param-valuefalse/param-value descriptionControls whether or not top-level expressions are considered valid./description /init-param init-param descriptionControls whether or not expressions used to supply request-time attribute values are considered valid./description param-nameallowRTExpressions/param-name param-valuefalse/param-value /init-param /validator !--Every TLD needs at least one 'tag' element. We happily oblige.-- tag descriptionDoes nothing./description namenoop/name tag-classjavax.servlet.jsp.tagext.TagSupport/tag-class body-contentempty/body-content /tag /taglib at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:223) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.convertToTaglibSchema(JspModuleBuilderExtension.java:675) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:433) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getListenerClasses(JspModuleBuilderExtension.java:420) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder(JspModuleBuilderExtension.java:180) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(JspModuleBuilderExtension.java:149) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension$$FastClassByCGLIB$$1f60ab3b.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) Please provide a solution to resolve this Thanks and regards Jithesh PM -- View this message in context: http://www.nabble.com/Geronimo-2.0-tp15036324s134p15059152.html Sent from the Apache Geronimo - Users mailing
Re: Geronimo 2.0
Hi, Thanks for your response. Here is my server log description 15:45:25,078 WARN [JspModuleBuilderExtension] Invalid transformed taglib org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:21:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:28:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:35:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee Descriptor: taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; descriptionValidates JSP pages to prohibit use of scripting elements./description tlib-version1.0/tlib-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri validator descriptionValidates prohibitions against scripting elements./description validator-classjavax.servlet.jsp.jstl.tlv.ScriptFreeTLV/validator-class init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param init-param param-nameallowScriptlets/param-name param-valuefalse/param-value descriptionControls whether or not scriptlets are considered valid./description /init-param init-param param-nameallowExpressions/param-name param-valuefalse/param-value descriptionControls whether or not top-level expressions are considered valid./description /init-param init-param descriptionControls whether or not expressions used to supply request-time attribute values are considered valid./description param-nameallowRTExpressions/param-name param-valuefalse/param-value /init-param /validator !--Every TLD needs at least one 'tag' element. We happily oblige.-- tag descriptionDoes nothing./description namenoop/name tag-classjavax.servlet.jsp.tagext.TagSupport/tag-class body-contentempty/body-content /tag /taglib at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:223) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.convertToTaglibSchema(JspModuleBuilderExtension.java:675) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:433) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getListenerClasses(JspModuleBuilderExtension.java:420) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder(JspModuleBuilderExtension.java:180) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(JspModuleBuilderExtension.java:149) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension$$FastClassByCGLIB$$1f60ab3b.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) Please provide a solution to resolve this Thanks and regards Jithesh PM -- View this message in context: http://www.nabble.com/Geronimo-2.0-tp15036324s134p15059152.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo 2.0
Thanks for your response... Will u please provide the file name that i need to modify the text. Thanks, Jithesh PM Jarek Gawor-2 wrote: Move the description element to the top of the init-param element. For example, change: init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param to: init-param descriptionControls whether or not declarations are considered valid./description param-nameallowDeclarations/param-name param-valuefalse/param-value /init-param Jarek On Jan 24, 2008 12:48 AM, jithesh [EMAIL PROTECTED] wrote: Hi, Thanks for your response. Here is my server log description 15:45:25,078 WARN [JspModuleBuilderExtension] Invalid transformed taglib org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:21:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:28:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld:35:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee Descriptor: taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; descriptionValidates JSP pages to prohibit use of scripting elements./description tlib-version1.0/tlib-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri validator descriptionValidates prohibitions against scripting elements./description validator-classjavax.servlet.jsp.jstl.tlv.ScriptFreeTLV/validator-class init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param init-param param-nameallowScriptlets/param-name param-valuefalse/param-value descriptionControls whether or not scriptlets are considered valid./description /init-param init-param param-nameallowExpressions/param-name param-valuefalse/param-value descriptionControls whether or not top-level expressions are considered valid./description /init-param init-param descriptionControls whether or not expressions used to supply request-time attribute values are considered valid./description param-nameallowRTExpressions/param-name param-valuefalse/param-value /init-param /validator !--Every TLD needs at least one 'tag' element. We happily oblige.-- tag descriptionDoes nothing./description namenoop/name tag-classjavax.servlet.jsp.tagext.TagSupport/tag-class body-contentempty/body-content /tag /taglib at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:223) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.convertToTaglibSchema(JspModuleBuilderExtension.java:675) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:433) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getListenerClasses(JspModuleBuilderExtension.java:420) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder(JspModuleBuilderExtension.java:180) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(JspModuleBuilderExtension.java:149) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension$$FastClassByCGLIB$$1f60ab3b.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) Please provide a solution to resolve this Thanks and
Re: Geronimo 2.0
umm, isn't it fairly clear from the error message? WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld Can you tell us if this file starts out with taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; or if it uses earlier xmlns or version? thanks david jencks On Jan 23, 2008, at 10:28 PM, jithesh wrote: Thanks for your response... Will u please provide the file name that i need to modify the text. Thanks, Jithesh PM Jarek Gawor-2 wrote: Move the description element to the top of the init-param element. For example, change: init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param to: init-param descriptionControls whether or not declarations are considered valid./description param-nameallowDeclarations/param-name param-valuefalse/param-value /init-param Jarek On Jan 24, 2008 12:48 AM, jithesh [EMAIL PROTECTED] wrote: Hi, Thanks for your response. Here is my server log description 15:45:25,078 WARN [JspModuleBuilderExtension] Invalid transformed taglib org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:21:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:28:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee D:\Program Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D: \Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\default \securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib \standard.jar!\META-INF\scriptfree.tld:35:7: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee Descriptor: taglib xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd; version=2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; descriptionValidates JSP pages to prohibit use of scripting elements./description tlib-version1.0/tlib-version short-namescriptfree/short-name urihttp://jakarta.apache.org/taglibs/standard/scriptfree/uri validator descriptionValidates prohibitions against scripting elements./description validator-classjavax.servlet.jsp.jstl.tlv.ScriptFreeTLV/ validator-class init-param param-nameallowDeclarations/param-name param-valuefalse/param-value descriptionControls whether or not declarations are considered valid./description /init-param init-param param-nameallowScriptlets/param-name param-valuefalse/param-value descriptionControls whether or not scriptlets are considered valid./description /init-param init-param param-nameallowExpressions/param-name param-valuefalse/param-value descriptionControls whether or not top-level expressions are considered valid./description /init-param init-param descriptionControls whether or not expressions used to supply request-time attribute values are considered valid./description param-nameallowRTExpressions/param-name param-valuefalse/param-value /init-param /validator !--Every TLD needs at least one 'tag' element. We happily oblige.-- tag descriptionDoes nothing./description namenoop/name tag-classjavax.servlet.jsp.tagext.TagSupport/tag-class body-contentempty/body-content /tag /taglib at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD (XmlBeansUtil.java:223) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.conv ertToTaglibSchema(JspModuleBuilderExtension.java:675) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.pars eTldFile(JspModuleBuilderExtension.java:433) at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getL istenerClasses(JspModuleBuilderExtension.java:420) at
Re: Geronimo 2.0/openejb/postgresql
ok, first of all the problem was the database connection with the geronimo-specific deployment descriptors. but after this was solved by help of your wiki i faced this No registered metadata for type class vt.bean.entity.Director error. so the problem was, that in my application (which was first deployed on jboss) i have a 1:n relation between Directors and Movies. this relation i was modelling by an @ManyToOne annotation in Movie and a @OneToMany relation in Director (i don't really know why). this was accepted by jboss but in geronimo i got some error and when i finally pinpointed the error to the annotation i simply commented out the annotation... leaving the CollectionMovie as attribute in the Director. that Collection was not annotated now, leading to the above mentioned error. while i was searching through deployment plans and descriptors over and over again changing values and attributes, i just realized the problem is in the app after i was modifying the simple entity ejb example from the documentation. thanks for your help, mario Jacek Laskowski wrote: On Jan 15, 2008 10:44 PM, the666pack [EMAIL PROTECTED] wrote: Wait. What was the attribute that stirred up the trouble? I must admit I'm still unable to figure that out from the entire thread. Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl -- View this message in context: http://www.nabble.com/Geronimo-2.0-openejb-postgresql-tp14710209s134p14873589.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo 2.0/openejb/postgresql
ok, it seems to me that the only reason i got the no No registered metadata for type class vt.bean.entity.Director error was because in my persistence.xml file the following property was set: property name=openjpa.jdbc.SynchronizeMappings value=false/ can you tell me what this property is good for? as soon as i dont set this property or set it to some other value (like in your mdb-tutorial to value=buildSchema(SchemaAction='add,deleteTableContents'))i get an error again as soon as i call emf.createEntityManager(): [exec] WAITING... to see if entitymanager is created successfully [exec] 12:47:49,858 ERROR [OpenEJB] The bean instances business method encountered a system exception: null [exec] 1.0.0-r561970-r561970 nonfatal general error org.apache.openjpa.persistence.PersistenceException: null [exec] at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:204) [exec] at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142) [exec] at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:190) [exec] at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:143) [exec] at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:55) [exec] at vt.bean.stateful.WriteDataBean.writeToDB(WriteDataBean.java:89) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [exec] at java.lang.reflect.Method.invoke(Method.java:597) [exec] at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:146) [exec] at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:129) [exec] at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67) [exec] at org.apache.openejb.core.stateful.StatefulContainer._invoke(StatefulContainer.java:427) [exec] at org.apache.openejb.core.stateful.StatefulContainer.businessMethod(StatefulContainer.java:389) [exec] at org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:246) [exec] at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:211) [exec] at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:65) [exec] at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:244) [exec] at org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49) [exec] at $Proxy57.writeToDB(Unknown Source) [exec] at org.apache.jsp.addTool_jsp._jspService(addTool_jsp.java:108) [exec] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [exec] at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) [exec] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) [exec] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) [exec] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) [exec] at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) [exec] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [exec] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [exec] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [exec] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [exec] at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) [exec] at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351) [exec] at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) [exec] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) [exec] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) [exec] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [exec] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) [exec] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) [exec] at
Re: Geronimo 2.0/openejb/postgresql
hello, problem solved. the last error where i spent a lot of time with, No registered metadata for type class vt.bean.entity.Director was in fact created by some attribute in the Director entity bean which should not have been there. i was just searching on the wrong side of the tracks for a long long time. thanks for your help with setting up the connection to postgresql, i come back for MDBs later ;) greetings, mario. the666pack wrote: ok, it seems to me that the only reason i got the no No registered metadata for type class vt.bean.entity.Director error was because in my persistence.xml file the following property was set: property name=openjpa.jdbc.SynchronizeMappings value=false/ can you tell me what this property is good for? as soon as i dont set this property or set it to some other value (like in your mdb-tutorial to value=buildSchema(SchemaAction='add,deleteTableContents'))i get an error again as soon as i call emf.createEntityManager(): [exec] WAITING... to see if entitymanager is created successfully [exec] 12:47:49,858 ERROR [OpenEJB] The bean instances business method encountered a system exception: null [exec] 1.0.0-r561970-r561970 nonfatal general error org.apache.openjpa.persistence.PersistenceException: null [exec] at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:204) [exec] at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142) [exec] at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:190) [exec] at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:143) [exec] at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:55) [exec] at vt.bean.stateful.WriteDataBean.writeToDB(WriteDataBean.java:89) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [exec] at java.lang.reflect.Method.invoke(Method.java:597) [exec] at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:146) [exec] at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:129) [exec] at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67) [exec] at org.apache.openejb.core.stateful.StatefulContainer._invoke(StatefulContainer.java:427) [exec] at org.apache.openejb.core.stateful.StatefulContainer.businessMethod(StatefulContainer.java:389) [exec] at org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:246) [exec] at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:211) [exec] at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:65) [exec] at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:244) [exec] at org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49) [exec] at $Proxy57.writeToDB(Unknown Source) [exec] at org.apache.jsp.addTool_jsp._jspService(addTool_jsp.java:108) [exec] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [exec] at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) [exec] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) [exec] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) [exec] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) [exec] at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) [exec] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [exec] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [exec] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [exec] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [exec] at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) [exec] at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351) [exec] at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) [exec]
Re: Geronimo 2.0/openejb/postgresql
On Jan 15, 2008 10:44 PM, the666pack [EMAIL PROTECTED] wrote: problem solved. the last error where i spent a lot of time with, No registered metadata for type class vt.bean.entity.Director was in fact created by some attribute in the Director entity bean which should not have been there. Wait. What was the attribute that stirred up the trouble? I must admit I'm still unable to figure that out from the entire thread. Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl
Re: Geronimo 2.0 MDB is not Triggering
On 11/1/07, jthinaka [EMAIL PROTECTED] wrote: The core of my problem is that I know that a message is being enqueued on the queue, and yet the MDB doesn't get triggered. Hi, How do you know that? What steps do you perform to check it out. I could deploy mdb on the latest Geronimo version built from the trunk without any troubles, but even if it worked I didn't know how to find out the queue content. @MessageDriven(mappedName = CallFinishMDB, I'm not sure if mappedName means anything to Geronimo. Remove it and give it a try again. If it changes nothing, it's expected. If not you will have found an exception. @ActivationConfigProperty(propertyName = acknowledgeMode, propertyValue = Auto-acknowledge), Unless I'm mistaken It's a default setting - no need to specify it explicitly. What's your openejb-jar.xml file? What's Geronimo version? How do you deploy/create the managed objects - jms queue factory and the queue itself? How do you send messages to the queue? I think I could help you nail it down, but not much information to go on. If you speak Polish call yourself lucky as you may find the following docs quite useful ;-) * Uruchomienie ziarna MDB w Apache Geronimo (http://www.jaceklaskowski.pl/wiki/Uruchomienie_ziarna_MDB_w_Apache_Geronimo) * Aplikacja Java EE 5 z MDB z JPA w trybie JTA i PostgreSQL w Apache Geronimo 2 (http://www.jaceklaskowski.pl/wiki/Aplikacja_Java_EE_5_z_MDB_z_JPA_w_trybie_JTA_i_PostgreSQL_w_Apache_Geronimo_2) I'm working on translating them, but I don't think you want to wait that long ;-) Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl
Re: Geronimo 2.0 released?
On Aug 7, 2007, at 10:32 AM, Titi Wangsa wrote: according to http://issues.apache.org/jira/browse/GERONIMO 2.0 - 47 of 47 issues have been resolved is geronimo 2.0 finally released? Soon. A release candidate is being prepared. Final testing and voting on the release remain. You should see a vote on our dev list, shortly. --kevan
Re: Geronimo 2.0, OpenJPA and DB2
I can't tell what's going on without knowing the structure of your ear and the manifest classpath in your war. It looks like the manifest cp in the war is ../APP-INF/lib/commons-beanutils-1.7.0.jar This would be correct if your war was at something like foo/lunchinator-web-2.0.war in which case the resolved path of ../../APP-INF/lib/commons- beanutils-1.7.0.jar would be correct. If your war is actually at /lunchinator- web-2.0.war then the manifest cp should be APP-INF/lib/commons-beanutils-1.7.0.jar; that's starting at the same place in the ear as the war file. The resolved path for a manifest cp entry from a war has to have an extra ../ in it since we unpack the war as we deploy it in the car file. thanks david jencks On Aug 2, 2007, at 5:53 PM, Adam OGorman wrote: Thanks Dave, You were absolutely right - removing the Non JTA Data source fixed the problem, and when I upgraded my Geronimo 2.0 server to the latest build, the deployer did not like the way that I had specified the external path, but using the complex type format fixed this problem also. However, the latest version of Geronimo (I'm actually using WASCE 2.0 based on geronimo-2.0_Rev562004 openejb-3.0_Rev561991 and openjpa-1.0.0_Rev561970) now gives the following error, which I have researched a fair bit, and suspect that it may be a Geronimo bug, is this the case? or am I missing something here the error is as follows: Error: Unable to distribute lunchinator-ear-2.0.ear: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=../APP-INF/lib/commons-beanutils-1.7.0.jar, resolved to targetURI=../APP-INF/lib/commons-beanutils-1.7.0.jar looking at: lunchinator-web-2.0.warcurrent classpath: [WEB-INF/lib/ajax4jsf-1.1.1.jar, WEB-INF/lib/jsf-facelets-1.1.11.jar, WEB-INF/lib/mysql-connector-java-5.0.5-bin.jar, WEB-INF/lib/oscache-2.3.2.jar, WEB-INF/lib/richfaces-3.0.1.jar, WEB-INF/classes/, ../../APP-INF/lib/commons-beanutils-1.7.0.jar] ignoring modules: [lunchinator-web-2.0.war, lunchinator-domain-2.0.jar] org.apache.geronimo.common.DeploymentException: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=../APP-INF/lib/commons-beanutils-1.7.0.jar, resolved to targetURI=../APP-INF/lib/commons-beanutils-1.7.0.jar looking at: lunchinator-web-2.0.warcurrent classpath: [WEB-INF/lib/ajax4jsf-1.1.1.jar, WEB-INF/lib/jsf-facelets-1.1.11.jar, WEB-INF/lib/mysql-connector-java-5.0.5-bin.jar, WEB-INF/lib/oscache-2.3.2.jar, WEB-INF/lib/richfaces-3.0.1.jar, WEB-INF/classes/, ../../APP-INF/lib/commons-beanutils-1.7.0.jar] ignoring modules: [lunchinator-web-2.0.war, lunchinator-domain-2.0.jar] at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestCl assPath(DeploymentContext.java:367) at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestCl assPath(DeploymentContext.java:286) at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicIni tContext(AbstractWebModuleBuilder.java:332) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext( TomcatModuleBuilder.java:290) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$ $FastClassByCGLIB$$6f85ec2c.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke (FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke (GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke (GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke (RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke (RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept (ProxyMethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$ $5ba4e66e.initContext(generated) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext (SwitchingModuleBuilder.java:159) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$ $FastClassByCGLIB$$d0c31844.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke (FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke (GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke (GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke (RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke (RawOperationInvoker.java:35)
Re: Geronimo 2.0, OpenJPA and DB2
I think most likely the problem is that you have the same datasource for jta-datasource and non-jta-datasource. I suggest you create another datasource with no-transaction support for the non-jta- datasource. db2 might work OK without the non-jta-datasource, I haven't tried, but I can't get derby to work at all for schema creation and sequence values with only a jta-datasource Also note that when you update your g version you will find that external-path is now a pattern rather than a string representation of an artifactId, i.e. it will look more like external-path xmlns:dep=http://geronimo.apache.org/xml/ns/ deployment-1.2 dep:groupIdorg.tranql/dep:groupId dep:artifactIdtranql-connector-db2-embed-xa/dep:artifactId dep:version1.3/dep:version dep:typerar/dep:type /external-path (you can leave out the version) hope this helps david jencks On Aug 1, 2007, at 6:11 PM, Adam OGorman wrote: I am using the following geronimo-application.xml to deploy an EAR file. The EAR deploys and starts OK, but the datasource that it creates is called jdbc/LunchinatorDataSource i.e. this is literally the string that shows up in the admin console, not LunchinatorDataSource. What is more, the deployment does not populate the database with the relevant tables, using openJPA. Are these two things related? Or should I be looking elsewhere to get openJPA working correctly? I am using Geronimo 2.0 and DB2 v9.1 on Windows XP Thanks in advance! geronimo-application.xml: ?xml version=1.0 encoding=UTF-8? application xmlns=http://geronimo.apache.org/xml/ns/j2ee/ application-1.2 environment moduleId groupIdcom.maketechnologies.applications/groupId artifactIdlunchinator-ear/artifactId version2.0/version typeear/type /moduleId dependencies dependency groupIdorg.apache.geronimo.configs/groupId artifactIdopenjpa/artifactId typecar/type /dependency dependency groupIdorg.apache.geronimo.configs/groupId artifactIdj2ee-corba-yoko/artifactId typecar/type /dependency dependency groupIdorg.apache.geronimo.configs/groupId artifactIdsystem-database/artifactId typecar/type /dependency dependency groupIdcom.ibm.db2/groupId artifactIddb2jcc/artifactId version9.1/version typejar/type /dependency dependency groupIdcom.ibm.db2/groupId artifactIddb2jcc_license_cu/artifactId version9.1/version typejar/type /dependency /dependencies /environment module weblunchinator-web-2.0.war/web web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/ web-1.2 context-root/lunchinator/context-root !-- This is how we set up JNDI access to EntityManagerFactory -- persistence-unit-ref persistence-unit-ref-namelunchinator/EntityManagerFactory/ persistence-unit-ref-name persistence-unit-nameLunchinatorPU/persistence-unit- name /persistence-unit-ref /web-app /module module ejblunchinator-domain-2.0.jar/ejb openejb-jar xmlns=http://openejb.apache.org/xml/ns/openejb-jar-2.2; enterprise-beans session ejb-nameHelloWorld/ejb-name /session /enterprise-beans persistence xmlns=http://java.sun.com/xml/ns/ persistence version=1.0 persistence-unit transaction-type=JTA name=LunchinatorPU providerorg.apache.openjpa.persistence.PersistenceProviderImpl/ provider jta-data-sourcejdbc/LunchinatorDataSource/jta-data-source non-jta-data-sourcejdbc/LunchinatorDataSource/non-jta-data-source properties property name=openjpa.jdbc.DBDictionary value=org.apache.openjpa.jdbc.sql.DB2Dictionary/ !-- Use this if you want to push mappings down to DB (create tables etc) -- property name=openjpa.jdbc.SynchronizeMappings value=buildSchema(ForeignKeys=true)/ !-- Use this if you have already created schema -- !-- property name=openjpa.jdbc.SynchronizeMappings value=false / -- property name=openjpa.Sequence value=table(Table=OPENJPASEQ, Increment=100)/ property name=openjpa.Log value=File=C:\temp\db2openjpa.log, Runtime=TRACE, Tool=INFO, SQL=TRACE/ /properties /persistence-unit /persistence /openejb-jar /module ext-module connectorLunchinatorDataSource/connector external-pathorg.tranql/tranql-connector-db2-embed-xa/1.3/rar/ external-path
Re: Geronimo 2.0, OpenJPA and DB2
Thanks Dave, You were absolutely right - removing the Non JTA Data source fixed the problem, and when I upgraded my Geronimo 2.0 server to the latest build, the deployer did not like the way that I had specified the external path, but using the complex type format fixed this problem also. However, the latest version of Geronimo (I'm actually using WASCE 2.0 based on geronimo-2.0_Rev562004 openejb-3.0_Rev561991 and openjpa-1.0.0_Rev561970) now gives the following error, which I have researched a fair bit, and suspect that it may be a Geronimo bug, is this the case? or am I missing something here the error is as follows: Error: Unable to distribute lunchinator-ear-2.0.ear: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=../APP-INF/lib/commons-beanutils-1.7.0.jar, resolved to targetURI=../APP-INF/lib/commons-beanutils-1.7.0.jar looking at: lunchinator-web-2.0.warcurrent classpath: [WEB-INF/lib/ajax4jsf-1.1.1.jar, WEB-INF/lib/jsf-facelets-1.1.11.jar, WEB-INF/lib/mysql-connector-java-5.0.5-bin.jar, WEB-INF/lib/oscache-2.3.2.jar, WEB-INF/lib/richfaces-3.0.1.jar, WEB-INF/classes/, ../../APP-INF/lib/commons-beanutils-1.7.0.jar] ignoring modules: [lunchinator-web-2.0.war, lunchinator-domain-2.0.jar] org.apache.geronimo.common.DeploymentException: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=../APP-INF/lib/commons-beanutils-1.7.0.jar, resolved to targetURI=../APP-INF/lib/commons-beanutils-1.7.0.jar looking at: lunchinator-web-2.0.warcurrent classpath: [WEB-INF/lib/ajax4jsf-1.1.1.jar, WEB-INF/lib/jsf-facelets-1.1.11.jar, WEB-INF/lib/mysql-connector-java-5.0.5-bin.jar, WEB-INF/lib/oscache-2.3.2.jar, WEB-INF/lib/richfaces-3.0.1.jar, WEB-INF/classes/, ../../APP-INF/lib/commons-beanutils-1.7.0.jar] ignoring modules: [lunchinator-web-2.0.war, lunchinator-domain-2.0.jar] at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:367) at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:286) at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicInitContext(AbstractWebModuleBuilder.java:332) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext(TomcatModuleBuilder.java:290) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$5ba4e66e.initContext(generated) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext(SwitchingModuleBuilder.java:159) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$5ba4e66e.initContext(generated) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:576) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at
Re: Geronimo 2.0 release date?
On 6/30/07, Titi Wangsa [EMAIL PROTECTED] wrote: hello to all.. any ideas on the geronimo 2.0 release date? July 2007 is the latest anticipated date. In the meantime, have you run into any issues with the recent daily builds of Geronimo [1] that should be taken care of? The less issues with the final 2.0 release the better. Do you work with Eclipse, NetBeans, IDEA, emacs, vi? What's your opinion on the state of the art of Geronimo's IDE support? [1] http://people.apache.org/~prasad/binaries Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl
Re: Geronimo 2.0-M3 Interceptors
On Mar 19, 2007, at 5:26 AM, t.maus wrote: Hi there ... I am trying to use EJB3 Initerceptors for a poc project. I was properly able to add and execute a @PostConstruct annotation to my Stateless Session Bean. Adding a @AroundInvoke or a manually create Annotation like @SpringBean however failed to work. Is the complete Interceptor framework already implemented and available for M3 or should I stop playing around within for now ?? I'm pretty sure the interceptor support is in trunk (openejb3 + geronimo) but not yet implemented in g 2.0M3. The Openejb developers have been quite good at pushing snapshots so if you build geronimo trunk online you should get something with interceptor support. thanks david jencks Please find my used impl. below --- used class --- @Stateless @Interceptors(SpringBeanInterceptor.class) public class Calculator implements CalculatorLocal { private EchoBean echoBean; private static Log log = LogFactory.getLog(Calculator.class); @PostConstruct public void init() { System.out.println(PostConstruct is properly working !!!); } @AroundInvoke public Object invoke(InvocationContext ctx) throws Exception { System.out.println(***invoked); return ctx.proceed(); } public int sum(int add1, int add2) { return add1+add2; } public int multiply(int mul1, int mul2) { return mul1*mul2; } @SpringBean public void setEchoBean(EchoBean bean) { log.debug(entered setEchoBean); System.out.println(entering setEchoBean); this.echoBean = bean; } } thanks for your help -- View this message in context: http://www.nabble.com/Geronimo-2.0-M3- Interceptors-tf3425894s134.html#a9548679 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.