[Beginners Corner] - How to swich application server from Weblogic to JBoss
by Mayuko
Hi everybody,I'm going to switch my application server from Weblogic to JBoss.
Then, there are problems how to make the sentence of <judi-name> in the weblogic-ejb-jar.xml.
This is the source.
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN'
'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>AcceptProcInvoker</ejb-name>
<stateful-session-descriptor>
<stateful-session-cache>
<max-beans-in-cache>1000</max-beans-in-cache>
<idle-timeout-seconds>180</idle-timeout-seconds>
<cache-type>NRU</cache-type>
</stateful-session-cache>
@EJB_CLUSTER_SETTING@
<allow-concurrent-calls>true</allow-concurrent-calls>
</stateful-session-descriptor>
<jndi-name>jp.co.ABCproduct.beans.ejb.test.accept.AcceptProcInvoker</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
I find a sample from JBoss source which may be able to replace it with.
There is the sentence about "Standard Stateful SessionBean" in the "standardjboss.xml".
Is this correct sample which can be used for replacing "weblogic-ejb-jar.xml"?
If so, how can I make a sentence of <jndi-name>?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC
"-//JBoss//DTD JBOSS 3.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
<!-- ===================================================================== -->
<!-- Standard JBoss EJB Configurations -->
<!-- ===================================================================== -->
<!-- $Id: standardjboss.xml,v 1.47.2.24 2005/10/12 12:05:36 aloubyansky Exp $ -->
<enforce-ejb-restrictions>false</enforce-ejb-restrictions>
<container-configuration>
<container-name>Clustered Stateless SessionBean</container-name>
<call-logging>false</call-logging>
<invoker-proxy-binding-name>clustered-stateless-rmi-invoker</invoker-proxy-binding-name>
<container-interceptors>
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
org.jboss.ejb.plugins.CleanShutdownInterceptor
org.jboss.ejb.plugins.LogInterceptor
org.jboss.ejb.plugins.SecurityInterceptor
<!-- CMT -->
org.jboss.ejb.plugins.TxInterceptorCMT
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
</container-interceptors>
<instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
<instance-cache></instance-cache>
<persistence-manager></persistence-manager>
<container-pool-conf>
100
</container-pool-conf>
</container-configuration>
<container-configuration>
<container-name>Standard Stateful SessionBean</container-name>
<call-logging>false</call-logging>
<invoker-proxy-binding-name>stateful-rmi-invoker</invoker-proxy-binding-name>
<container-interceptors>
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
org.jboss.ejb.plugins.LogInterceptor
<!-- CMT -->
org.jboss.ejb.plugins.TxInterceptorCMT
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor
<!-- BMT -->
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor
org.jboss.ejb.plugins.TxInterceptorBMT
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
org.jboss.ejb.plugins.SecurityInterceptor
</container-interceptors>
<instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache</instance-cache>
<persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager</persistence-manager>
<container-cache-conf>
<cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy>
<cache-policy-conf>
<min-capacity>50</min-capacity>
<max-capacity>1000000</max-capacity>
<remover-period>1800</remover-period>
<max-bean-life>1800</max-bean-life>
<overager-period>300</overager-period>
<max-bean-age>600</max-bean-age>
<resizer-period>400</resizer-period>
<max-cache-miss-period>60</max-cache-miss-period>
<min-cache-miss-period>1</min-cache-miss-period>
<cache-load-factor>0.75</cache-load-factor>
</cache-policy-conf>
</container-cache-conf>
<container-pool-conf>
100
</container-pool-conf>
</container-configuration>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125075#4125075
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125075
18 years, 5 months
[Installation, Configuration & DEPLOYMENT] - Connection timed out
by sven.waibel
Hi,
i got an exception while deploying my ear.
I saw that the same problem is a resolved bug, but i got it in jboss 4.2.2 again.
| 11:36:19,057 INFO [NativeServerConfig] JBoss Web Services - Native
| 11:36:19,059 INFO [NativeServerConfig] jbossws-native-2.0.3.GA (build=200801251318)
| 11:36:20,125 INFO [Embedded] Catalina naming disabled
| 11:36:20,312 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/ibm/java2-i386-50/jre/bin:/opt/ibm/java2-i386-50/jre/bin/j9vm:/opt/ibm/java2-i386-50/jre/bin:/usr/lib
| 11:36:20,393 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-9619
| 11:36:20,394 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-9409
| 11:36:20,395 INFO [Catalina] Initialization processed in 269 ms
| 11:36:20,395 INFO [StandardService] Starting service jboss.web
| 11:36:20,398 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
|
Here the exception:
| javax.xml.ws.WebServiceException: org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out
| at org.jboss.wsf.container.jboss42.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:95)
| at org.jboss.wsf.container.jboss42.ModifyWebMetaDataDeploymentAspect.create(ModifyWebMetaDataDeploymentAspect.java:53)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| 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 $Proxy45.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:615)
| 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.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:615)
| 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.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:615)
| 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:64)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:615)
| 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:797)
| Caused by:
| org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out
| at org.dom4j.io.SAXReader.read(SAXReader.java:484)
| at org.dom4j.io.SAXReader.read(SAXReader.java:343)
| at org.jboss.wsf.container.jboss42.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:108)
| at org.jboss.wsf.container.jboss42.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:87)
| ... 80 more
|
Any suggestions?
Thanks
Sven
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125074#4125074
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125074
18 years, 5 months
[JBoss Seam] - Re: why list empty
by luc_yuan
i change a little about my getList()
| public List getList() {
| if(list != null)
| System.out.println(list.size() + "***************");
| else
| System.out.println("sssssssssssssssssss");
| return list;
| }
|
and i got
| 19:36:30,656 INFO [STDOUT] Hibernate:
| select
| kokyaku0_.kokyaku_cd as kokyaku1_17_,
| kokyaku0_.start_date as start2_17_,
| kokyaku0_.kokyaku_tel as kokyaku3_17_,
| kokyaku0_.kokyaku_fax as kokyaku4_17_,
| kokyaku0_.tanto_cd as tanto17_17_,
| kokyaku0_.kokyaku_name as kokyaku5_17_,
| kokyaku0_.kokyaku_kana as kokyaku6_17_,
| kokyaku0_.kokyaku_addr as kokyaku7_17_,
| kokyaku0_.kokyaku_mail as kokyaku8_17_,
| kokyaku0_.kokyaku_ninzu as kokyaku9_17_,
| kokyaku0_.kokyaku_president_name as kokyaku10_17_,
| kokyaku0_.kokyaku_shihon as kokyaku11_17_,
| kokyaku0_.kokyaku_date as kokyaku12_17_,
| kokyaku0_.kokyaku_gyosyu as kokyaku13_17_,
| kokyaku0_.kokyaku_naiyo as kokyaku14_17_,
| kokyaku0_.create_date as create15_17_,
| kokyaku0_.apply_date as apply16_17_
| from
| kokyaku kokyaku0_
| where
| lower(kokyaku0_.kokyaku_cd) like concat(lower(?)) limit ?
| 19:36:30,687 INFO [STDOUT] 1
| 19:36:30,687 INFO [STDOUT] in search------------
| 19:36:31,296 INFO [STDOUT] sssssssssssssssssss
|
so here shows the list have been null when navigation to the page,i wonder if it is something about lifecycle.
and my list is extended from EntityQuery ----Query----PersistenceController----Controller,nothing special about the scope,i am at a lost
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125072#4125072
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125072
18 years, 5 months
[JBossWS] - Error on java.lang.IllegalStateException: Cannot build JAXB
by smathankumar
Hi,
I created a Java WebService implementation java file named as DeviceServiceEventBroker.java with JAX-WS annotations. My Java WebService implementation file is implements with an interface named as DeviceOmi.java of my Web Service class. And My Interface class is extends with the java.io.Serializable.
I am not able to generate the wsdl from java. I got the below error. Any idea? Is there any option to use my Implemtation class with out the extends classes.
D:\MCP-2008\classes>"C:\Program Files\Java\jdk1.6.0_02\bin\java" -Djava.endorsed.dirs="D:\jboss-4.2.2.GA\bin\\..\lib\endorsed" -Dlog4j.configuration=
wstools-log4j.xml -classpath ";D:\jboss-4.2.2.GA\bin\\../client/jboss-xml-binding.jar;D:\jboss-4.2.2.GA\bin\\../client/activation.jar;D:\jboss-4.2.2.G
A\bin\\../client/javassist.jar;D:\jboss-4.2.2.GA\bin\\../client/getopt.jar;D:\jboss-4.2.2.GA\bin\\../client/jaxb-api.jar;D:\jboss-4.2.2.GA\bin\\../cli
ent/jaxb-impl.jar;D:\jboss-4.2.2.GA\bin\\../client/jbossall-client.jar;D:\jboss-4.2.2.GA\bin\\../client/jbossws-client.jar;D:\jboss-4.2.2.GA\bin\\../c
lient/jboss-jaxws.jar;D:\jboss-4.2.2.GA\bin\\../client/jboss-jaxrpc.jar;D:\jboss-4.2.2.GA\bin\\../client/jboss-saaj.jar;D:\jboss-4.2.2.GA\bin\\../clie
nt/log4j.jar;D:\jboss-4.2.2.GA\bin\\../client/mail.jar;D:\jboss-4.2.2.GA\bin\\../client/jbossws-spi.jar" org.jboss.wsf.spi.tools.cmd.WSProvide --show-
traces -o D:\MCP-2008\wsdl -w com.nortelnetworks.mcp.ne.sm.svc.device.impl.DeviceServiceEventBroker
Output directory: D:\MCP-2008\wsdl
Source directory: D:\MCP-2008\wsdl
Generating WSDL:
log4j:WARN No appenders could be found for logger (org.jboss.wsf.framework.DefaultSPIProvider).
log4j:WARN Please initialize the log4j system properly.
Error: Could not generate. (use --show-traces to see full traces)
java.lang.IllegalStateException: Cannot build JAXB context
at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:944) at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:146)
at org.jboss.ws.tools.jaxws.impl.JBossWSProviderImpl.provide(JBossWSProviderImpl.java:108)
at org.jboss.ws.tools.jaxws.impl.JBossWSProviderImpl.provide(JBossWSProviderImpl.java:124)
at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:184)
at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:77)
Caused by: org.jboss.ws.WSException: Failed to create JAXBContext
at org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:111)
at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:935)
... 5 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
java.io.Serializable is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at java.io.Serializable
at public java.io.Serializable com.nortelnetworks.mcp.ne.share.svc.filter.data.PropertyFilterDataObject.getPropertyValue()
at com.nortelnetworks.mcp.ne.share.svc.filter.data.PropertyFilterDataObject
at public com.nortelnetworks.mcp.ne.share.svc.filter.data.PropertyFilterDataObject[] com.nortelnetworks.mcp.ne.share.svc.filter.data.F
ilterDataObject.getPropertyFilters()
at com.nortelnetworks.mcp.ne.share.svc.filter.data.FilterDataObject
at com.nortelnetworks.mcp.ne.share.svc.device.data.DeviceMtcDataFilter
at private com.nortelnetworks.mcp.ne.share.svc.device.data.DeviceMtcDataFilter com.nortelnetworks.mcp.ne.sm.svc.device.impl.jaxws.GetF
ilteredDeviceListFromIPCM.arg1
at com.nortelnetworks.mcp.ne.sm.svc.device.impl.jaxws.GetFilteredDeviceListFromIPCM
java.io.Serializable does not have a no-arg default constructor.
this problem is related to the following location:
at java.io.Serializable
at public java.io.Serializable com.nortelnetworks.mcp.ne.share.svc.filter.data.PropertyFilterDataObject.getPropertyValue()
at com.nortelnetworks.mcp.ne.share.svc.filter.data.PropertyFilterDataObject
at public com.nortelnetworks.mcp.ne.share.svc.filter.data.PropertyFilterDataObject[] com.nortelnetworks.mcp.ne.share.svc.filter.data.F
ilterDataObject.getPropertyFilters()
at com.nortelnetworks.mcp.ne.share.svc.filter.data.FilterDataObject
at com.nortelnetworks.mcp.ne.share.svc.device.data.DeviceMtcDataFilter
at private com.nortelnetworks.mcp.ne.share.svc.device.data.DeviceMtcDataFilter com.nortelnetworks.mcp.ne.sm.svc.device.impl.jaxws.GetF
ilteredDeviceListFromIPCM.arg1
at com.nortelnetworks.mcp.ne.sm.svc.device.impl.jaxws.GetFilteredDeviceListFromIPCM
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
at org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:102)
... 6 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125071#4125071
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125071
18 years, 5 months
[JBoss Seam] - Re: why list empty
by luc_yuan
also navigation file
| <page xmlns="http://jboss.com/products/seam/pages"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd">
|
| <begin-conversation join="true" />
|
| <param name="firstResult" value="#{kokyakuList.firstResult}" />
| <param name="order" value="#{kokyakuList.order}" />
| <param name="firstLoad" />
|
| <navigation from-action="#{kokyakuHome.createKokyaku}">
| <rule if-outcome="success">
| <redirect view-id="/KokyakuEdit.xhtml" />
| </rule>
| </navigation>
|
| <navigation from-action="#{kokyakuHome.detail}">
| <rule if-outcome="success">
| <redirect view-id="/Kokyaku.xhtml" />
| </rule>
| <rule if-outcome="input">
| <redirect view-id="/KokyakuList.xhtml" />
| </rule>
| </navigation>
|
| <navigation from-action="#{kokyakuHome.modify}">
| <rule if-outcome="success">
| <redirect view-id="/KokyakuEdit.xhtml" />
| </rule>
| <rule if-outcome="input">
| <redirect view-id="/KokyakuList.xhtml" />
| </rule>
| </navigation>
|
| <navigation from-action="#{kokyakuHome.delete}">
| <rule if-outcome="success">
| <redirect view-id="/Kokyaku.xhtml" />
| </rule>
| <rule if-outcome="input">
| <redirect view-id="/KokyakuList.xhtml" />
| </rule>
| </navigation>
|
| <navigation from-action="#{kokyakuList.doSearch}">
| <rule if-outcome="success">
| <redirect view-id="/KokyakuList.xhtml" />
| </rule>
| </navigation>
| </page>
|
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125059#4125059
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125059
18 years, 5 months
[JBoss Seam] - why list empty
by luc_yuan
In order not to use auto search,i make some change to the resultList,in my action i print the resultList info,there are datas,but when it comes to the page,the list becomes empty,why?
list
| package org.domain.demo.session;
|
| import org.domain.demo.entity.*;
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Out;
| import org.jboss.seam.annotations.Scope;
| import org.jboss.seam.annotations.Transactional;
| import org.jboss.seam.framework.EntityQuery;
|
| import java.lang.reflect.Field;
| import java.util.List;
| import java.util.Arrays;
|
| import javax.faces.model.DataModel;
| import javax.persistence.Query;
|
| import org.jboss.seam.faces.DataModels;
|
| @Name("kokyakuList")
| public class KokyakuList extends EntityQuery {
|
| private static final long serialVersionUID = 1L;
|
| private static final String[] RESTRICTIONS = {
| "lower(kokyaku.kokyakuCd) like concat(lower(#{kokyakuList.kokyaku.kokyakuCd}))",
| "lower(kokyaku.kokyakuName) like concat(lower(#{kokyakuList.kokyaku.kokyakuName}),'%')",
| "lower(kokyaku.kokyakuKana) like concat(lower(#{kokyakuList.kokyaku.kokyakuKana}),'%')",
| "lower(kokyaku.kokyakuAddr) like concat(lower(#{kokyakuList.kokyaku.kokyakuAddr}),'%')",
| "lower(kokyaku.kokyakuTel) like concat(lower(#{kokyakuList.kokyaku.kokyakuTel}),'%')",
| "lower(kokyaku.kokyakuFax) like concat(lower(#{kokyakuList.kokyaku.kokyakuFax}),'%')",
| "lower(kokyaku.kokyakuMail) like concat(lower(#{kokyakuList.kokyaku.kokyakuMail}),'%')",
| "lower(kokyaku.kokyakuNinzu) like concat(lower(#{kokyakuList.kokyaku.kokyakuNinzu}),'%')",
| "lower(kokyaku.kokyakuPresidentName) like concat(lower(#{kokyakuList.kokyaku.kokyakuPresidentName}),'%')",
| "lower(kokyaku.kokyakuGyosyu) like concat(lower(#{kokyakuList.kokyaku.kokyakuGyosyu}),'%')",
| "lower(kokyaku.kokyakuNaiyo) like concat(lower(#{kokyakuList.kokyaku.kokyakuNaiyo}),'%')",
| "lower(kokyaku.shain.syainCd) like concat(lower(#{kokyakuList.shainCd}))",};
|
| private Kokyaku kokyaku = new Kokyaku();
|
| private String shainCd;
|
| private SearchCodition searchCodition = new SearchCodition();
|
| public SearchCodition getSearchCodition() {
| return searchCodition;
| }
|
| public void setSearchCodition(SearchCodition searchCodition) {
| this.searchCodition = searchCodition;
| }
|
| public String getShainCd() {
| return shainCd;
| }
|
| public void setShainCd(String shainCd) {
| this.shainCd = shainCd;
| }
|
| @Override
| public String getEjbql() {
| return "select kokyaku from Kokyaku kokyaku";
|
| }
|
| @Override
| public Integer getMaxResults() {
| return 10;
| }
|
| public Kokyaku getKokyaku() {
| return kokyaku;
| }
|
| @Override
| public List<String> getRestrictions() {
| return Arrays.asList(RESTRICTIONS);
| }
|
| public String doSearch(){
|
| list = getResultList();
| System.out.println(list.size());
| return "success";
| }
|
| //i also try @DataModel
| private List list;
|
| public List getList() {
| return list;
| }
|
| public void setList(List list) {
| this.list = list;
| }
|
|
| }
|
|
list
| <?xml version="1.0" encoding="Windows-31J"?>
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.org/rich"
| template="layout/template2.xhtml">
|
| <ui:define name="pageTitle">
| <h4>顧客æ
å ±æ¤ç´¢</h4>
| </ui:define>
|
| <ui:define name="body">
| <h:messages globalOnly="true" styleClass="message" id="globalMessages" />
|
| <h:form id="kokyakuSearch" styleClass="edit"
| style="margin-bottom:5px;">
| <input type="hidden" name="firstLoad" value="2" />
| <input type="hidden" name="firstResult" value="0" />
| <rich:simpleTogglePanel label="æ¤ç´¢æ¡ä»¶" switchType="ajax">
|
| <s:decorate template="layout/display.xhtml">
| <ui:define name="label">顧客CD</ui:define>
| <h:inputText id="kokyakuCd"
| value="#{kokyakuList.kokyaku.kokyakuCd}" />
| </s:decorate>
|
| <s:decorate template="layout/display.xhtml">
| <ui:define name="label">æ
å½ç¤¾å¡CD</ui:define>
| <h:inputText value="#{kokyakuList.shainCd}"></h:inputText>
| </s:decorate>
|
| <div style="clear: both" />
|
| <div class="actionButtons" align="right"><h:commandButton
| id="search" value="æ¤ç´¢" action="#{kokyakuList.doSearch}" /></div>
|
| </rich:simpleTogglePanel>
|
| </h:form>
|
| <!-- Result List -->
|
| <h:form id="update">
| <rich:panel rendered="#{firstLoad != '1'}">
| <f:facet name="header">æ¤ç´¢çµæ</f:facet>
| <div style="width: 100%;" class="results" id="kokyakuList"><h:outputText
| value="No kokyaku exists"
| rendered="#{empty kokyakuList.list}" /> <rich:dataTable
| id="kokyakuList" var="kokyaku" value="#{kokyakuList.list}"
| rows="10" columns="5"
| rendered="#{not empty kokyakuList.list}">
|
| <h:column>
| <f:facet name="header">鏿</f:facet>
| <input type="radio" name="pid" id="pid"
| value="#{kokyaku.kokyakuCd}" />
| </h:column>
| <h:column>
| <f:facet name="header">
| <s:link styleClass="columnHeader"
| value="顧客CD #{kokyakuList.order=='kokyakuCd asc' ? messages.down : ( kokyakuList.order=='kokyakuCd desc' ? messages.up : '' )}">
| <f:param name="order"
| value="#{kokyakuList.order=='kokyakuCd asc' ? 'kokyakuCd desc' : 'kokyakuCd asc'}" />
| </s:link>
| </f:facet>
| #{kokyaku.kokyakuCd}
| </h:column>
| <h:column>
| <f:facet name="header">
| <s:link styleClass="columnHeader"
| value="顧客åç§° #{kokyakuList.order=='kokyakuName asc' ? messages.down : ( kokyakuList.order=='kokyakuName desc' ? messages.up : '' )}">
| <f:param name="order"
| value="#{kokyakuList.order=='kokyakuName asc' ? 'kokyakuName desc' : 'kokyakuName asc'}" />
| </s:link>
| </f:facet>
| #{kokyaku.kokyakuName}
| </h:column>
| <h:column>
| <f:facet name="header">
| <s:link styleClass="columnHeader"
| value="æ
å½ç¤¾å¡CD #{kokyakuList.order=='shain.syainCd asc' ? messages.down : ( kokyakuList.order=='shain.syainCd desc' ? messages.up : '' )}">
| <f:param name="order"
| value="#{kokyakuList.order=='shain.syainCd asc' ? 'shain.syainCd desc' : 'shain.syainCd asc'}" />
| </s:link>
| </f:facet>
| #{kokyaku.shain.syainCd}
| </h:column>
| <h:column>
| <f:facet name="header">
| <s:link styleClass="columnHeader"
| value="æ
å½ç¤¾å¡å #{kokyakuList.order=='shain.syainName asc' ? messages.down : ( kokyakuList.order=='shain.syainName desc' ? messages.up : '' )}">
| <f:param name="order"
| value="#{kokyakuList.order=='shain.syainName asc' ? 'shain.syainName desc' : 'shain.syainName asc'}" />
| </s:link>
| </f:facet>
| #{kokyaku.shain.syainName}
| </h:column>
| <h:column>
| <f:facet name="header">
| <s:link styleClass="columnHeader"
| value="åå¼éå§æ¥ #{kokyakuList.order=='startDate asc' ? messages.down : ( kokyakuList.order=='startDate desc' ? messages.up : '' )}">
| <f:param name="order"
| value="#{kokyakuList.order=='startDate asc' ? 'startDate desc' : 'startDate asc'}" />
| </s:link>
| </f:facet>
| <h:outputLabel value="#{kokyaku.startDate}">
| <s:convertDateTime type="date" pattern="yyyy/MM/dd" />
| </h:outputLabel>
| </h:column>
| </rich:dataTable>
| <div class="tableControl" align="right">
| <div class="icon-h" align="right"><s:div styleClass="icon"
| rendered="#{kokyakuList.previousExists}">
| <s:link action="/KokyakuList.xhtml">
| <h:graphicImage value="/img/dleft.png" width="15" height="15"
| align="middle" />
| <f:param name="firstResult" value="0" />
| </s:link>
| <s:link view="/KokyakuList.xhtml" value=" First Page"
| id="firstPage">
| <f:param name="firstResult" value="0" />
| </s:link>
| </s:div> <s:div styleClass="icon" rendered="#{kokyakuList.previousExists}">
| <s:link action="/KokyakuList.xhtml">
| <h:graphicImage value="/img/left.png" width="15" height="15"
| align="middle" />
| <f:param name="firstResult"
| value="#{kokyakuList.previousFirstResult}" />
| </s:link>
| <s:link view="/KokyakuList.xhtml" value=" Previous Page"
| id="previousPage">
| <f:param name="firstResult"
| value="#{kokyakuList.previousFirstResult}" />
| </s:link>
| </s:div> <s:div styleClass="icon" rendered="#{kokyakuList.nextExists}">
| <s:link view="/KokyakuList.xhtml" value="Next Page " id="nextPage">
| <f:param name="firstResult" value="#{kokyakuList.nextFirstResult}" />
| </s:link>
| <s:link action="/KokyakuList.xhtml">
| <h:graphicImage value="/img/right.png" width="15" height="15"
| align="middle" />
| <f:param name="firstResult" value="#{kokyakuList.nextFirstResult}" />
| </s:link>
| </s:div> <s:div styleClass="icon-s" rendered="#{kokyakuList.nextExists}">
| <s:link view="/KokyakuList.xhtml" value="Last Page " id="lastPage">
| <f:param name="firstResult" value="#{kokyakuList.lastFirstResult}" />
| </s:link>
| <s:link action="/KokyakuList.xhtml">
| <h:graphicImage value="/img/dright.png" width="15" height="15"
| align="middle" />
| <f:param name="firstResult" value="#{kokyakuList.lastFirstResult}" />
| </s:link>
| </s:div></div>
|
| </div>
| </div>
| <div class="actionButtons" align="right"><h:commandButton
| id="detailButton" value="詳細表示" action="#{kokyakuHome.detail}"
| rendered="#{not empty kokyakuList.list}">
| </h:commandButton> <h:commandButton id="updateButton" value="æ´æ°"
| action="#{kokyakuHome.modify}"
| rendered="#{not empty kokyakuList.list}">
| </h:commandButton> <h:commandButton id="deleteButton" value="åé¤"
| action="#{kokyakuHome.delete}"
| rendered="#{not empty kokyakuList.list}">
| </h:commandButton></div>
|
|
| </rich:panel>
| <div class="actionButtons" align="right"><h:commandButton
| action="#{kokyakuHome.createKokyaku}" id="create" value="æ°è¦ç»é²">
| </h:commandButton></div>
| </h:form>
|
|
| </ui:define>
|
| </ui:composition>
|
|
|
can someone give me some advice?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125057#4125057
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125057
18 years, 5 months
[JBoss Messaging] - Re: Understanding JBoss Messaging and SPOF (Single Point of
by timfox
"seattle.golfer" wrote :
| I've been away from JBoss for about 4+ years (working in Weblogic), and am finally coming back home.
|
Glad to hear it! :)
anonymous wrote :
| I'm trying to get a better handle on JBoss Messaging's clustering capabilities. They way I read the documentation/installation guide, you still need to have a shared database instance. From the 1.4B1 docs, "For a clustered installation it is mandatory that a shared database is available to all nodes in the cluster."
|
| Which (to me) appears to be Single Point of Failure (SPOF). I realize the database itself could be clustered, but still..
|
Yes, JBoss Messaging 1.x uses a shared database for persistence. If it's not clustered that could provide a SPOF.
JBossMessaging 2.0, which is what we are currently at work on has major improvements in the area of persistence.
We will support:
1) Shared JDBC database - like in 1.x
2) Unshared JDBC database per node (already working in TRUNK)
3) Unshared file based journal per node
For HA we will also support replication between nodes for a "shared nothing" approach.
Also we'll support failover via a shared file sytem (e.g., GFS over a SAN) in the case one is available.
Lots of other great new things in JBM 2.0 including a brand new super fast NIO transport using Apache MINA. (Trustin Lee the author of MINA is now a JBoss employee), and many other features.
Also see JIRA for JBM 2.0 tasks and provisional timescales. We should have a GA released towards the end of the year.
There is also a little bit more info on the jboss labs JBM project page.
JBM 2.0 is the subject of my talk at JBoss World in a couple of weeks. Why don't you come along and find out more?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125039#4125039
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125039
18 years, 5 months
[JBoss Portal] - Re: Clear/reset render parameters or re-initialise all portl
by dewara
Right, for anybody interested I eventually solved my problem and I don't think for one minute that it's elegant but it does the job.
EssentiallyI created a custom CommandInterceptor (see code below). The interceptor clears the navigational state of all portlet windows in the portal if there there is an action request to the portlet window called "DNSCustomerContextSelectionPortletWindow". Fortunately in my scenario an action request targetting this portlet window will mean I need to clear the navigational state of all portlet windows in the portal.
The interceptor needs to be built to a jar file and the jar file placed in :
| /jboss-4.0.4.GA/server/default/deploy/jboss-portal.sar/lib/
|
The interceptor then needs to be added to the Command interceptor stack defined in
| /jboss-4.0.4.GA/server/default/deploy/jboss-portal.sar/META-INF/jboss-service.xml
|
|
This is done as follows:
| <mbean
| code="com.dns.jboss.portal.interceptor.DNSCustomerContextChangeInterceptor"
| name="portal:service=Interceptor,type=Command,name=DNSCustomerContextChangeCheck"
| xmbean-dd=""
| xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
| <xmbean/>
| </mbean>
|
| <mbean
| code="org.jboss.portal.server.impl.invocation.JBossInterceptorStack"
| name="portal:service=InterceptorStack,type=Command"
| xmbean-dd=""
| xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
| <xmbean/>
| <depends-list optional-attribute-name="InterceptorNames">
| <depends-list-element>portal:service=Interceptor,type=Command,name=PortalNode</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Command,name=PolicyEnforcement</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Command,name=PageNavigation</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Command,name=EventBroadcaster</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Command,name=DNSCustomerContextChangeCheck</depends-list-element>
| </depends-list>
| </mbean>
|
|
|
|
| package com.dns.jboss.portal.interceptor;
|
| import java.util.Collection;
| import java.util.Iterator;
|
| import org.apache.log4j.Logger;
| import org.jboss.portal.common.invocation.InvocationException;
| import org.jboss.portal.core.command.CommandInterceptor;
| import org.jboss.portal.core.command.ControllerCommand;
| import org.jboss.portal.core.command.InvokeWindowActionCommand;
| import org.jboss.portal.core.model.portal.Page;
| import org.jboss.portal.core.model.portal.Window;
| import org.jboss.portal.server.ServerInvocation;
|
|
| public class DNSCustomerContextChangeInterceptor extends CommandInterceptor
| {
| private static final Logger log = Logger.getLogger( DNSCustomerContextChangeInterceptor.class );
|
| public void invoke( ControllerCommand cmd ) throws Exception, InvocationException
| {
| if ( customerContextChange( cmd ) )
| clearPortalNavigationalState( (InvokeWindowActionCommand)cmd );
| cmd.invokeNext();
| }
|
| private boolean customerContextChange( ControllerCommand command )
| {
| if (command instanceof InvokeWindowActionCommand)
| {
| InvokeWindowActionCommand iwac = (InvokeWindowActionCommand)command;
| if ( iwac.getWindow().getName().equals( "DNSCustomerContextSelectionPortletWindow" ) )
| return true;
| }
| return false;
| }
|
| private void clearPortalNavigationalState( InvokeWindowActionCommand iwac )
| {
| Collection portalChildren = iwac.getPortal().getChildren();
|
| for( Iterator i = portalChildren.iterator(); i.hasNext(); )
| {
| Object portalChild = i.next();
| if ( portalChild instanceof Page )
| {
| Page page = (Page)portalChild;
| Collection pageChildren = ( (Page) portalChild ).getChildren();
| for ( Iterator j = pageChildren.iterator(); j.hasNext(); )
| {
| Object pageChild = j.next();
| if ( pageChild instanceof Window )
| {
| Window window = (Window)pageChild;
| if ( !window.equals( iwac.getWindow() ) )
| {
| ServerInvocation sinv = iwac.getContext().getExecutionContext().getServerInvocation();
| log.debug( "CLEARING NAV STATE OF WINDOW: " + window.getName() );
| sinv.getRequest().getNavigationContext().setNavigationalState(window.getInstanceRef(), null );
|
| //WindowNavigationalState windowNavState = (WindowNavigationalState)sinv.getRequest().getNavigationContext().getNavigationalState( window.getId() + "_window");
| //windowNavState = new WindowNavigationalState();
| //sinv.getRequest().getNavigationContext().setNavigationalState(window.getId() + "_window", windowNavState);
| }
| }
| }
| }
| }
| }
|
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125037#4125037
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125037
18 years, 5 months
[Beginners Corner] - Re: Please help with switching DefaultDS to MySql
by jaikiran
anonymous wrote : Caused by: java.sql.SQLException: Unexpected token JMS_MESSAGES, requires FROM in statement [DELETE JMS_MESSAGES FROM JMS_MESSAGES, JMS_TRANSACTIONS WHERE JMS_MESSAGES.TXID = JMS_TRANSACTIONS.TXID AND JMS_MESSAGES.TXOP=?]
| at org.hsqldb.jdbc.Util.throwError(Unknown Source)
| at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
| at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
Delete the contents of %JBOSS_HOME%\server\xxx\data\hypersonic folder. JBoss (when HSqlDB is used) persists JMS related stuff in files under this folder. Restart JBoss.
anonymous wrote : 19:26:34,619 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
|
| ....
|
| 19:26:34,888 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.2.2.GA/server/default/deploy/mysql-ds.xml
| org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=DefaultDS
Looks like you did not delete the hsqldb-ds.xml file from your deploy folder as suggested in that wiki entry
anonymous wrote :
| Replace <jndi-name>MySqlDS</jndi-name> with your datasource name. If you choose to make mySQL your default database (DefaultDS), then call this DefaultDS and be sure to delete the example $JBOSS_HOME/server/xxx/deploy/hsqldb-ds.xml which is also configured to be DefaultDS.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125030#4125030
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125030
18 years, 5 months
[Clustering/JBoss] - Using mod_jk in AS 4.2.1.GA
by ReKie
Hi all,
I am trying to build a cluster using IIS 6.0 and JBoss AS 4.2.1.GA. I read the clustering guides for 4.2.x and 5.0 beta (which are allmost the same) as well as the relevant wikipages.
In all documents I find to tell JBoss to use mod_jk to edit a specific jboss-service.xml
anonymous wrote : Edit the
| JBOSS_HOME/server/all/deploy/jbossweb-tomcat50.sar/META-INF/jboss-service.
| xml file (replace /all with your own server name). Locate the
| element with a name of UseJK, and set its value to true:
Unfortunately in JBoss 4.2.1.GA ther is no jbossweb-tomcat50.sar, and so of course no jboss-service.xml.
Am I missing something??? Did I not look close enough? Or is there an other way to tell JBoss to make use of mod_jk?
Thank you
Reinhard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125020#4125020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125020
18 years, 5 months
[JNDI/Naming/Network] - javax.naming.NameNotFoundException: MySqlDS not bound
by narenderreddy
Hi
the exception is MySqlDS not bound where is the wrong ? if any one can identify please send the correct way ?
and i have one doubt ? i already placed the mysql-connector-java-5.0.4-bin.jar in client folder and server/lib folder is there any additional configuration is required for this ? the jboss server is already started and but i am getting the error
I am configuring in mysql-ds.xml file like this
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://10.0.3.155:3306/narender</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>narender</user-name>
narender
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
and i try to get the connection from the connection pool like this
public class TestConnection {
public static void main(String[] args) {
try {
Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
env.setProperty(Context.PROVIDER_URL,"jnp://localhost:1099");
env.setProperty(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
Context ctx = new InitialContext(env);
System.out.println("Created InitialContext, env=" + env);
Object data = ctx.lookup("java:/MySqlDS");
}
catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
when ever we are running the main method it gives error like this
javax.naming.NameNotFoundException: MySqlDS not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.gss.naru.TestConnection.main(TestConnection.java:46)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125001#4125001
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125001
18 years, 5 months
[JBoss Portal] - Re: Half working SSO with Portal 2.6.2
by sohil.shah@jboss.com
Soon5-
I am in the process of fixing the second browser window issue and am not being able to reproduce this. Its working fine for me in firefox
anonymous wrote :
| 2. When I logged in, and I open a second Browser Window and want to log into a second instance of the Portal, I have to type in my Username / Password again. Not realy SSO ;-). Or is it normal, that I have to log in for each Browser Window?
|
Just to be clear, you open a second browser window (I am assuming the same type of browser like Firefox opening another window of FireFox and not IE), and connect to a *different* instance of the Portal other than the one in the first window?
Are you sure the second instance is also integrated properly with the CAS valve as mentioned in the reference guide?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124996#4124996
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124996
18 years, 5 months