[EJB 3.0] - EJB3.0 and Web container - this should be easy, but...
by kimbaltrue
I have an EAR file that contains an EJB 3.0 Stateless bean, a Persistence Unit, (currently a shard JAR), and a WAR file.
The persistence unit loads, the EJB 3.0 bean loads, and references both the persistence unit and the shared jar.
The WAR file will not load as long as it tries to access the EJB bean.
Here is my Application file
<?xml version="1.0" encoding="utf-8"?>
| <application xmlns:ns0="http://www.w3.org/2001/XMLSchema-instance" ns0:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee">
| <display-name>athenaeum</display-name>
| <module>
| <ejb>athenaeumEJB.jar</ejb>
| </module>
| <module>
| <java>athenaeumModel.jar</java>
| </module>
| <module>
| <java>athenaeumShare.jar</java>
| </module>
| <module>
| <web>
| <web-uri>athenaeum.war</web-uri>
| <context-root>/athenaeum</context-root>
| </web>
| </module>
| </application>
Here is my bean declaration
@Stateless
| @Remote(org.ccf.athenaeum.ejb.Collection.class)
| @Local(org.ccf.athenaeum.ejb.Collection.class)
| @TransactionManagement(TransactionManagementType.BEAN)
| @Interceptors(org.ccf.service.ServiceMetrics.class)
| public class CollectionBean extends ServiceSupport implements Collection
I have an application exception
@ApplicationException
| public class ServiceException
| extends Exception
In the WAR file I have a faces bean that attempts to access the EJB.
| Collection result = null;
|
| InitialContext context = new InitialContext();
| result = (Collection)context.lookup("athenaeum/CollectionBean/local");
|
| return result;
|
At first I didn't have the shared library. I had all the EJB code and interface in the EJB Jar file, but as soon as I put a reference to the bean in the Faces code I got a NoClassDefFoundException - classic right.
So, after trying serveral things including putting <ejb-ref> in the Web.xml, I finally tried splitting the EJB interface and the exception class into a shared JAR. The EJB jar loaded fine. The WAR failed.
I even added a reference to the shared jar into the WAR file's manifest.
| Manifest-Version: 1.0
| Ant-Version: Apache Ant 1.6.5
| Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)
| Built-By: Owner
| Class-Path: athenaeumShare.jar
|
I still get:
2007-06-16 12:48:11,156 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/athenaeum]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
| java.lang.NoClassDefFoundError: org/ccf/athenaeum/ejb/Collection
| at java.lang.Class.getDeclaredMethods0(Native Method)
| at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
| at java.lang.Class.getDeclaredMethods(Class.java:1763)
| at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1140)
| at com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:156)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:507)
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy45.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy46.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
What do I have to do the access an EJB 3.0 Bean from my JSF Bean?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054973#4054973
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054973
18Â years, 10Â months
[JBoss Seam] - Re: selectItems and enums
by Sammy8306
Here's the code for the enum:
| public enum Enum_level
| {
| GOOD("Good"), AVERAGE("Average"), BAD("Baaad!") ;
|
| private String label;
|
| Enum_level (String label)
| {
| this.label = label;
| }
|
| public String getLabel()
| {
| return label;
| }
|
| public Enum_level[] getValues() {
|
| return Enum_level.values();
|
| }
|
| public String toString()
| {
| return label;
| }
| }
|
|
and here's the accompanying jsf code:
| <h:selectOneMenu id="level" value="#{ViewBlogComponent.reply_r.level}">
| <s:selectItems value="#{ViewBlogComponent.reply_r.level.values}" var="enum" label="#{enum.label}" noSelectionLabel="Please select : "/>
| <s:convertEnum/>
| </h:selectOneMenu>
|
However, it turns out that the problem of not being able to get enum values from non-initialized references is still there. I think the EL-resolver just refuses to call getValues(), when (in this case) getLevel() returns null. Though it can safely do so, since it is a static accessor. Bummer :-( I really hoped this would work... this should be possible, right??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054970#4054970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054970
18Â years, 10Â months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: JBOSS 4.2.0 & MySQL
by jdijkmeijer
I have had the same a few times: configuring jboss to use mysql as default database, so I wrote a simple ant task
Not sure if 4.2 is complete, it worked well for 4.0.2 (I made a few changes, for 4.2 standardjaws has been replaces by standardjbosscmp-jdbc) but the server starts without a error.
have funnn
| <?xml version="1.0"?>
|
| <project name="mysql" default="mysql" basedir=".">
|
| <property name="jboss_home" value="/Applications/jboss-4.2.0.GA/"/>
| <property name="server_conf" value="server/default"/>
| <property name="dburl" value="jdbc:mysql://localhost/jboss"/>
| <property name="dbuser" value="jboss"/>
| <property name="dbpassword" value="jboss"/>
| <property name="mysql_lib_dir" value="/Users/jahoo/dev/testsvn/resources/lib12GA"/>
| <property name="mysql_file" value="mysql-connector-java-5.0.5-bin.jar"/>
|
| <target name="mysql"
| description="does change mysql to standard db">
| <copy file="${mysql_lib_dir}/${mysql_file}" tofile="${jboss_home}/${server_conf}/lib/${mysql_file}"/>
| <delete file="${jboss_home}/${server_conf}/deploy/hsqldb-ds.xml"/>
| <copy file="${jboss_home}/docs/examples/jca/mysql-ds.xml" tofile="${jboss_home}/${server_conf}/deploy/mysql-ds.xml"/>
| <replaceregexp file="${jboss_home}/${server_conf}/deploy/mysql-ds.xml" match="MySqlDS" replace="DefaultDS"/>
| <replaceregexp file="${jboss_home}/${server_conf}/deploy/mysql-ds.xml" match="<connection-url>.*</connection-url>" replace="<connection-url>${dburl}</connection-url>"/>
| <replaceregexp file="${jboss_home}/${server_conf}/deploy/mysql-ds.xml" match="user-name>.*<" replace="user-name>${dbuser}<"/>
| <replaceregexp file="${jboss_home}/${server_conf}/deploy/mysql-ds.xml" match="password>.*<" replace="password>${dbpassword}<"/>
| <replace file="${jboss_home}/${server_conf}/conf/standardjbosscmp-jdbc.xml" token="<type-mapping>Hypersonic SQL</type-mapping>" value="<type-mapping>mySQL</type-mapping>"/>
| <replace file="${jboss_home}/${server_conf}/conf/standardjbosscmp-jdbc.xml" token="<fk-constraint>false</fk-constraint>" value="<fk-constraint>true</fk-constraint>"/>
| <delete file="${jboss_home}/${server_conf}/deploy/jms/hsqldb-jdbc2-service.xml"/>
| <delete file="${jboss_home}/${server_conf}/deploy/jms/hsql-jdbc2-service.xml"/>
| <copy file="${jboss_home}/docs/examples/jms/mysql-jdbc2-service.xml" tofile="${jboss_home}/${server_conf}/deploy/jms/mysql-jdbc2-service.xml"/>
| <replace file="${jboss_home}/${server_conf}/deploy/jms/mysql-jdbc2-service.xml" token="MySqlDS" value="DefaultDS" />
| <replace file="${jboss_home}/${server_conf}/conf/login-config.xml" token="<policy>">
| <replacetoken><![CDATA[<policy>
| <application-policy name = "MySqlDbRealm">
| <authentication>
| <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
| <module-option name = "principal">jboss</module-option>
| <module-option name = "userName">jboss</module-option>
| <module-option name = "password">jboss</module-option>
| <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
| </login-module>
| </authentication>
| </application-policy>
| ]]></replacetoken>
| </replace>
| </target>
| </project>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054967#4054967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054967
18Â years, 10Â months
[JBoss jBPM] - Re: How to install the jbpm-jpdl-suite-3.2.GA on linux?
by koen.aersï¼ jboss.com
There are some special switches in jBPM making sure that it doesn't run on Ubuntu... :-p
No seriously, I also experienced that some of the build scripts are not running on linux as I switched to Fedora 7 recently. Here is the manual process:
- extract the jbpm-jpdl-suite-3.2.GA bundle in your preferenced folder. you'll see the newly created jbpm-jpdl-3.2.GA folder which I call ${JBPM_HOME}.
- extract the correct Eclipse version (e.g. 3.2.1) in the folder ${JBPM_HOME}/designer.
- make sure all the extracted scripts are executable:
[blah@localhost ~]$ chmod 755 ${JBPM_HOME}/server/start.sh
| [blah@localhost ~]$ chmod 755 ${JBPM_HOME}/server/bin/run.sh
- start the server with the command ${JBPM_HOME}/server/start.sh
- start the designer with the command ${JBPM_HOME}/designer/eclipse/eclipse -data ${JBPM_HOME}/designer/workspace
You could create a start.sh script in the ${JBPM_HOME}/designer folder containing the above command. Use ${JBPM_HOME}/designer/start.bat as the example.
Regardss
Koen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054964#4054964
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054964
18Â years, 10Â months
[EJB 3.0] - Re: Create timer -
by nlmarco
Hello wolfc,
thanks a lot for your quick and very helpful reply!!! It works!
I know that it's bad to turn on this option, but I need it for a development system (when we'll go productive, there will be solely xa-resources).
For other readers browsing this thread, here a short summary:
I edited the file "jboss/server/default/conf/jbossjta-properties.xml" and added the property "com.arjuna.ats.jta.allowMultipleLastResources" with value "true":
<properties depends="arjuna" name="jta">
| <property name="com.arjuna.ats.jta.allowMultipleLastResources" value="true"/>
|
| <!-- ... other properties ... -->
| </properties>
Note, that it must be "true", even though other properties in the same file use the values "YES"/"NO".
Best regards, Marco :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054963#4054963
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054963
18Â years, 10Â months
[Installation, Configuration & Deployment] - Problem when configuring virtual hosts in jboss-4.2.0.GA
by ataud
I need to configure 2 virtual hosts (mydomain1.com and mydomain2.com).
I write in JBOSS_HOME/server/default/deploy/jboss-web.deployer/server.xml:
| ....
| <Connector port="80" address="the IP adress" ...protocol="HTTP/1.1".../>
| <Connector port="8009" .... protocol="AJP/1.3"... />
| <Enginee name="jboss.web" defaultHost="mydomain1.com">
| <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm".../>
|
| <Host name="mydomain1.com" autoDeploy="false"
| deployOnStartup="false" deployXML="false"
| configClass="org.jboss.web.tomcat.security.config.JBossContextConfig">
| <Alias>www.mydomain1.com</Alias>
| <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
| cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
| transactionManagerObjectName="jboss:service=TransactionManager" />
| </Host>
|
| <Host name="mydomain2.com" autoDeploy="false"
| deployOnStartup="false" deployXML="false"
| configClass="org.jboss.web.tomcat.security.config.JBossContextConfig">
| <Alias>www.mydomain2.com</Alias>
| <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
| cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
| transactionManagerObjectName="jboss:service=TransactionManager" />
| </Host>
|
| </Engine>
|
I deploy mydomain1.war containing :
- jboss-web.xml
| <context-root>/mydomain1</context-root>
| <virtual-host>mydomain1.com</virtual-host>
| </jboss-web>
|
- index.jsp
| <body>
| wellcome to mydomain1.com
| </body>
| ...
|
I deploy mydomain2.war containing :
- jboss-web.xml
| <context-root>/mydomain2</context-root>
| <virtual-host>mydomain2.com</virtual-host>
| </jboss-web>
|
- index.jsp
| <body>
| wellcome to mydomain2.com
| </body>
| ...
|
But when I populate www.mydomain1.com and www.mydomain2.com in the browser I obtain an empty page !!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054962#4054962
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054962
18Â years, 10Â months