X. Li

Ranch Hand
+ Follow
since Jan 31, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by X. Li

I am trying to configure Weblogic 8.1 server with Eclipse 3.1 /WTP 0.7 so that I could start weblogic from Eclipce and use Start Script file. However it is failed.

Here are my steps:

1. Preferences --> Server --> Installed Runtimes --> Add --> Select "Generic Examples" --> Generic BEA Weblogic Server 8.1.

2. Click 'Next", browse "Application Server Directory" to my WL directory ( say : C:/bea8/weblogic81 ), click finish.

3. Check the checkbox for the selected Server. HOWEVER, when I use mouse to point the server at this point, I noticed that "C:/bea/weblogic81/samples/domains/workshop" is always displayed underneath the box. This is not what I specified. After other configuration, and trying to run the server, I got error message saying "C:/bea/weblogic81/samples/domains/workshop does not exist". I also tried to fix it from server instance configuration, but default working directory is always set to "C:/bea/weblogic81/samples/domains/workshop".

Is this a bug or I made any mistake for configuration?

Thanks in advance.

X Li.
14 years ago
Hi,

I am trying to practice coding JMS with Websphere 5. I have Websphere server 5 (Base version) installed with MQ, but I can't find MQ Explorer from Start mean.

Could you tell me where I can download it?

Thanks in advance.

X. Li
15 years ago
Anyone help me on this?
I have no problem to run it in wsad4.1, but for WSAD 5.1, I got it. (I am using Oracle 10 ).

Thanks.....


X. Li
15 years ago
Create a shortcut of wsad on Desttop, right click it, select "properties", in "Target", enter your workspace location like this:
"C:\Program Files\IBM\Application Developer\wsappdev.exe" -data c:\yourWorkSpace

Hope this help.
X. Li
15 years ago
I was ever confused by <ejb-ref> and <ejb-local-ref> before. Actually, <ejb-ref> and <ejb-local-ref> mean that you want to use other bean <ejb-ref> inside a bean and you have to specify it in DD. For example, in a Message Driven bean, you want to use a Session Bean (MySessionBeanRemoteHome), then you must define this session bean as <ejb-ref> or <eib-local-ref>, just like above DD written by Ravindra Janapareddy.

Hope this help.
Hi,
I am trying to get Oracle datasource WSAD5.1.
First, I followed the steps described here (Stepsin Serevr-->Data source & Security tabs) to set dataSource. Then, in web.xml, I put these lines:


Here is Java code to get datasource,


When it ran on ds.getConnection(), I got these exceptions:

[3/27/05 13:42:32:516 EST] 5194baa4 TraceNLS u No message text associated with key auth.data.not.found.-.null in bundle com.ibm.ejs.resources.security
[3/27/05 13:42:32:500 EST] 5194baa4 WSDefaultPrin W auth data not found - null
[3/27/05 13:42:32:547 EST] 5194baa4 PrivExAction E J2CA0044E: The ConnectionManager failed to get a Subject from the security service associated with connection factory my Oracle datasource. Received exception javax.security.auth.login.LoginException: Incorrect authDataEntry
at com.ibm.ws.security.auth.j2c.WSDefaultPrincipalMapping.getSubject(WSDefaultPrincipalMapping.java:179)
at com.ibm.ejs.j2c.PrivExAction.run(PrivExAction.java:78)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:111)
at com.ibm.ejs.j2c.ConnectionManager.getSubject(ConnectionManager.java:962)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:421)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:216)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:191)
at javafile.OracleTest.testConnection(OracleTest.java:68)
at org.apache.jsp._index._jspService(_index.java:92)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
......
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
.
[3/27/05 13:42:32:625 EST] 5194baa4 ConnectionMan E J2CA0060E: PrivilegedActionException calling doPrivileged: java.security.PrivilegedActionException: javax.resource.ResourceException: LoginException getting Subject
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:115)
at com.ibm.ejs.j2c.ConnectionManager.getSubject(ConnectionManager.java:962)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:421)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:216)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:191)
at javafile.OracleTest.testConnection(OracleTest.java:68)
at org.apache.jsp._index._jspService(_index.java:92)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
.....
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
Caused by: javax.resource.ResourceException: LoginException getting Subject
at com.ibm.ejs.j2c.PrivExAction.run(PrivExAction.java:101)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:111)
... 44 more

[3/27/05 13:42:33:109 EST] 5194baa4 WebGroup E SRVE0026E: [Servlet Error]-[]: java.lang.NullPointerException
at javafile.OracleTest.testConnection(OracleTest.java:102)
at org.apache.jsp._index._jspService(_index.java:92)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.....
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)


Can anyone help me?
Thanks in advance.

X. Li
15 years ago
Do you sponsor TN visa for Canadian and relocation?

Thanks.

XL
15 years ago
Marc is right. I just tested the code :



It's working fine. I am using Struts 1.2.
15 years ago
I don't think there is any existing validation pattern for the time hh:mm. You have to create your own pattern to validate it. You can try this one:



It's used for 24 hours system, like 13:28, 09:59.

X. Li
15 years ago
Thank you, Merrill. Your suggestion is great: it worked.

X. Li
15 years ago
Hi,

I am trying to set a default checked value for a checkbox. Here is my code in jsp:

However, when the page is loaded, the checkbox is NOT checked at all.

Can anybody help me to solve it?

Thanks in advance.

X. Li
15 years ago
It says "you can't use dot notation to return a CMR field". It doesn't mean Path Expression can't terminate with cmr-field. e.g, assume Director is a CMR field, so you can't say:

Select m.Director from.... (this is to "return" CMR field using dot)

but you can say:
Select *** from **** WHERE [I]a.Director[I] IS NOT EMPTY (this Path Expression terminates with cmr-field )

X. Li
Did you modify the Home and Component interfaces so that they entend EJBLocalHome and EJBLocalObject? If you forgot to do it, you might get that exception.
Hi,

I created CMP Entity bean with <ejb-name> = Entity1Bean, and the same name is used as "jndi Name" in "Sun-specific Settings" of Application Server 8.1.
After I deployed it, and run a test client from console (while default Server was started), I got exception:
javax.naming.NameNotFoundException: Entity1Bean

Here is my client code:


BTW, I also tried to use JNDI_NAME="java:comp/env/Entity1Bean" or JNDI_NAME="java:comp/env/ejb/Entity1Bean", but got the same exception.

Did anyone meet the case and solve it? Thanks for any help.

X. Li
beforeCompletion() will not get called if a system exception is thrown from a business method in which a transaction is excuted.