Binh Nguyen

Greenhorn
+ Follow
since Feb 28, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Binh Nguyen

Hi,
I followed all the step to sintall Jboss service using javaservice. Looks like I could install it but when I start jboss as a service I got this below error meesage, please note that if I start jboss from console, I dont have this problem
Thanks



15:30:14,476 INFO [Server] Starting JBoss (MX MicroKernel)...
15:30:14,476 INFO [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)
15:30:14,476 DEBUG [Server] Using config: org.jboss.system.server.ServerConfigImpl@1e893df
15:30:14,476 DEBUG [Server] Server type: class org.jboss.system.server.ServerImpl
15:30:14,476 INFO [Server] Home Dir: C:\jboss-3.2.3
15:30:14,476 INFO [Server] Home URL: file:/C:/jboss-3.2.3/
15:30:14,476 INFO [Server] Library URL: file:/C:/jboss-3.2.3/lib/
15:30:14,476 INFO [Server] Patch URL: null
15:30:14,476 INFO [Server] Server Name: default
15:30:14,476 INFO [Server] Server Home Dir: C:\jboss-3.2.3\server\default
15:30:14,476 INFO [Server] Server Home URL: file:/C:/jboss-3.2.3/server/default/
15:30:14,476 INFO [Server] Server Data Dir: C:\jboss-3.2.3\server\default\data
15:30:14,476 INFO [Server] Server Temp Dir: C:\jboss-3.2.3\server\default\tmp
15:30:14,476 INFO [Server] Server Config URL: file:/C:/jboss-3.2.3/server/default/conf/
15:30:14,476 INFO [Server] Server Library URL: file:/C:/jboss-3.2.3/server/default/lib/
15:30:14,476 INFO [Server] Root Deployment Filename: jboss-service.xml
15:30:14,476 INFO [Server] Starting General Purpose Architecture (GPA)...
15:30:14,695 DEBUG [ModelMBeanInvoker] No persistence-manager descriptor found, null persistence will be used
15:30:14,757 DEBUG [Server] Created MBeanServer: org.jboss.mx.server.MBeanServerImpl@388993
15:30:14,757 DEBUG [Server] Boot url list: [file:/C:/jboss-3.2.3/server/default/conf/]
15:30:14,757 DEBUG [Server] Creating loader for URL: file:/C:/jboss-3.2.3/server/default/conf/
15:30:14,757 DEBUG [UnifiedClassLoader] New jmx UCL with url file:/C:/jboss-3.2.3/server/default/conf/
15:30:14,757 DEBUG [UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@126804e{ url=file:/C:/jboss-3.2.3/server/default/conf/ ,addedOrder=0}
15:30:14,804 DEBUG [Server] Failed to start
java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.system.server.ServerInfo
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:161)
at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClass(UnifiedLoaderRepository3.java:169)
at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClass(UnifiedLoaderRepository3.java:569)
at javax.management.loading.DefaultLoaderRepository.loadClass(DefaultLoaderRepository.java:78)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:822)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:258)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:297)
at org.jboss.system.server.ServerImpl.createMBean(ServerImpl.java:411)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:342)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Thread.java:534)
19 years ago
Can someone tell me what is wrong.
following the instruction, I set the claspath in admin.config file to point to sljc.jar and sljcx.jar. Then I install the Merant Server on the same machine the SQL Server DB runs. Then in the WAS asmin console, I created a JDBC Provider successfully, but when I tried to create a Datasource based on the just created Connection Pool, I got the below error ClassDefNotFound exception for the class javax.swl.Datasource ...
Everything is in the class path because the other Datasources were created and work fine.
Please tell me what is wrong.
Thanks
CNTR0020E: Non-application exception occurred while processing method testConnection on bean BeanId(admin#repository.jar#JDBCDriver, 1018376609978): java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
java.lang.ClassNotFoundException: java.lang.NoClassDefFoundError: javax/sql/DataSource
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.net.URLClassLoader.defineClass(URLClassLoader.java(Compiled Code))
at java.net.URLClassLoader.defineClass(URLClassLoader.java(Compiled Code))
at java.net.URLClassLoader.access$300(URLClassLoader.java(Compiled Code))
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java(Compiled Code))
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.ReloadableClassLoader.loadClass(ReloadableClassLoader.java:71)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at com.ibm.ejs.cm.ConnectionPoolHelper$3.run(ConnectionPoolHelper.java:434)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ejs.cm.ConnectionPoolHelper.loadDataSourceClass(ConnectionPoolHelper.java:431)
at com.ibm.ejs.cm.ConnectionPoolHelper.testConnectionToDataSource(ConnectionPoolHelper.java:538)
at com.ibm.ejs.sm.active.ActiveNode.testConnection(ActiveNode.java:338)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:93)
at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
at com.ibm.ejs.sm.agent._AdminAgent_Stub.invokeActiveObject(_AdminAgent_Stub.java:66)
at com.ibm.ejs.sm.beans.JDBCDriverBean.testConnection(JDBCDriverBean.java:308)
at com.ibm.ejs.sm.beans.EJSRemoteBMPJDBCDriver.testConnection(EJSRemoteBMPJDBCDriver.java:249)
at com.ibm.ejs.sm.beans._EJSRemoteBMPJDBCDriver_Tie._invoke(_EJSRemoteBMPJDBCDriver_Tie.java:293)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2362)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
22 years ago
I am trying to make a connection pooling from WAS to SQL Server version 7.
I read that I have to have Merant driver or SQLLink Driver to do that
Can someone tell me where to get that driver?
thanks
Binh NGuyen
22 years ago
From: xenoux@yahoo.com (xenoux)
Newsgroups: ibm.software.websphere.application-server
Subject: j_security_check
NNTP-Posting-Host: 63.84.90.184
Message-ID: <bb9d19e4.0203111735.416a4bd9@posting.google.com>
I have a strange problem, can someone tell me what is wrong?
I use form based authentication with Websphere using custom registry,
setup in web.xml is as below.
when I tried to access a protected resource URL,
http://bhn.gers.com:9080/furnnet/main/dispatcher.do, since everything
under dir "/main" is defined to be protected in the web.xml, I was
brought to the login page as expected, after submit the form with the
j_username and j_password, I got a 404 file not found, as below,
but in fact the user had been authenticated because if I resubmit the
same URL link, I was able to access that URL link.
Can someon tell me what is wrong with it or my setup?
thanks
Binh
-----------------------------------------------------------------------
404 Error Message:
http://bhn.gers.com:9080/furnnet/j_security_check

The page cannot be found
The page you are looking for might have been removed, had its name
changed, or is temporarily unavailable.
--------------------------------------------------------------------------------
Please try the following:
If you typed the page address in the Address bar, make sure that it is
spelled correctly.
Open the bhn.gers.com:9080 home page, and then look for links to the
information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.
HTTP 404 - File not found
Internet Explorer
-----------------------------------------------
< !--<br /> web.xml file:<br /> <security-constraint id="SecurityConstraint_1"><br /> <web-resource-collection id="WebResourceCollection_1"><br /> <web-resource-name>fn access</web-resource-name><br /> <url-pattern>/main/*</url-pattern><br /> <br /> <http-method>POST</http-method><br /> <http-method>GET</http-method><br /> </web-resource-collection><br /> <auth-constraint id="AuthConstraint_1"><br /> <description>fn access:+:</description><br /> <role-name>fnUser</role-name><br /> </auth-constraint><br /> <user-data-constraint id="UserDataConstraint_1"><br /> <transport-guarantee>NONE</transport-guarantee><br /> </user-data-constraint><br /> </security-constraint><br /> <login-config id="LoginConfig_1"><br /> <auth-method>FORM</auth-method><br /> <realm-name>dbRealm</realm-name><br /> <form-login-config id="FormLoginConfig_1"><br /> <form-login-page>/logon.html</form-login-page><br /> <form-error-page>/error.jsp</form-error-page><br /> </form-login-config><br /> </login-config><br /> <security-role id="SecurityRole_1"><br /> <role-name>fnUser</role-name><br /> </security-role><br /> -->
22 years ago
Can someone tell me please why Websphere cannot locate the logon.jsp:
Below is the setup in web.xml for the form based authentication.
the logon.jsp is at the same level of /main off the context root.
<context-rrot>
logon.jsp
error.jsp
main/
...

if I try the url <context-root>/main, then I can get the login.jsp, after loing on, then I can go anywhere since I am authenticated.
but if I tried <context-root>/main/dispatcher.do or any thing like <context-root>/main/retailer.jsp ,
the application enters a inifinite loop searching ofr the login.jsp !!!
Same thing happens if I logged out, after logging out the user, I would like to redirect the user to the login page, again the application enters the inifite loop looking for the login.jsp
Can someone tell me why. Thanks in advance
Binh

<security-constraint id="SecurityConstraint_1">
<web-resource-collection id="WebResourceCollection_1">
<web-resource-name>fn access</web-resource-name>
<url-pattern>/main/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint id="AuthConstraint_1">
<description>fn access:+:</description>
<role-name>fnUser</role-name>
</auth-constraint>
<user-data-constraint id="UserDataConstraint_1">
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config id="LoginConfig_1">
<auth-method>FORM</auth-method>
<realm-name>dbRealm</realm-name>
<form-login-config id="FormLoginConfig_1">
<form-login-page>/logon.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role id="SecurityRole_1">
<role-name>fnUser</role-name>
</security-role>
22 years ago
Is it possible for us to redirect a fail to a login using BASIC authentication to another page instead of displaying a blank screen, (some thing similar to error page in form-based login)
Thanks
Binh Nguyen
22 years ago
hi,
I did not prect the logon.jsp.
I only protect anything of the main directory, /main/*, and my logon.jsp and error.jsp is at the roor level, same level with main directory.
in fact if tried something like this <root>login.jsp , it will render the logon.jsp page, but after enter the user name and password, I will get a error message that the j_security_check page not found, but infact the user had been authenticated because from that point, I can access the protected resource.

the infinite loop only happens if I tried to access the protected resource at the first place.
Do you have any idea?
Thanks in advance
Xenoux
22 years ago
Hi,
I am using custom-user-registry to protect web resource. I have setup everything. when start the Admin Console, it asked me for the user name and password, I entered those parameters and it let passed that point, so I assumed that the custome user registry I implemented works.

But when tried to access the protected resource, it seems like the application entered some sort of infinite loop, the browser keeps browsing and browsing...
and it seems like it would never stop !
The application.xml defines the role, "role-fn-user",
This role is mapped to a group in the database at the time of deployment (I selected option "select users/groups" in the "user role mapping" panel at deployment time. I believe that the Admin Cosole does look up for the group in the DB using the custom Registry because I did test change the value of the group in the group table and it does return the right value if I made the change.
I am sure that I missed something or have done something wrong. Please help me sole this problem, I spent the last three days trying to solve it, but I cannot
Thanks in advance
Xenoux
<application id="Application_ID">
<display-name>Furnnet</display-name>
<module id="EjbModule_1">
<ejb>Furnnet_EJB.jar</ejb>
</module>
<module id="WebModule_1">
<web>
<web-uri>furnnet.war</web-uri>
<context-root>/furnnet</context-root>
</web>
</module>
<security-role id="SecurityRole_1">
<role-name>role-fn-user</role-name>
</security-role>
</application>
22 years ago
to load a jsp from your app, you have to call it from a context-root that you mapped your applicaton to. For example, you mapped you application to: myApp, and you jsp at the root level, then you ccan load your jsp with the URL:
http://localhost:9080/myApp/myPage.jsp
or
http://localhost:9080/myApp/sub-dir/myPage.jsp
if your myPage.jsp is stored under "sub-dir" off the context root.
Hope this helps
Binh
22 years ago
For reason, my login page cannot be rendered if I tried to access the proctedt URL, the browser keeps browsing non-stop !!!

this is my web.xml:
<security-constraint id="SecurityConstraint_1">
<web-resource-collection id="WebResourceCollection_1">
<web-resource-name>FN_Security</web-resource-name>
<url-pattern>/main/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint id="AuthConstraint_1">
<role-name>role-fn-user</role-name>
</auth-constraint>
</security-constraint>

<login-config id="LoginConfig_1">
<auth-method>FORM</auth-method>
<realm-name>dbRealm</realm-name>
<form-login-config id="FormLoginConfig_1">
<form-login-page>/login.do</form-login-page>
<form-error-page>/loginerror.do</form-error-page>
</form-login-config>
</login-config>

<security-role id="SecurityRole_1">
<role-name>role-fn-user</role-name>
</security-role>
</web-app>

and in WebLogic Server:
we have another file: weblogic.xml in which we mapp the "role-fn-user" to the group that we defined for this role?
How could we do the same in WebSphere?
Thanks
22 years ago
I use to Oracle version 8.1.7, when I tried to get a Datasource I get the following error? does anyone tell me what is wrong with the way I set up?
thanks
Xenoux
error message
SQLException: com.ibm.ejs.cm.JDBC1PhaseRF
22 years ago
I have encountered a strnage problem, please tell me what I have dome wrong:
in my Admin Console, I set up the following
Connectin pooling, jndi: jdbc/myDataSource
ejb, jndi: ejb/myEjb
and I tried the following:
when I install a WAR module alone, and WAR module did not use any EJB, and I did not specify the "Resource Reference", then to look up for the data-source, jdbc/myDataSource, it works
when I package my WAR module together with EJB module to an EAR file, what the folowing step:
if I specify that the WAR use the DataSource, by setting the "Reference Resource", then I can get the DataSource with the jndi look up string:
"jdbc/myDataSource" in my code, it worked fine
but if I also specified that my WAW module also use the EBJ, by setting the "EJB reference" in the WAR module, then I cannot obtain the Datasource anymore?
I dont know what shou;d do then?
thank you vey much
22 years ago
hi,
I am really desperate on this, please help me. Let me first tell you how do I packaged my EAR, I believe this packaging has a problem with the WAS class loader method which I dont understand:
I have a WAR module and EJB module, both of these module are packaged inside an EAR file, and both of these module have reference to the HELPER module (comon utility classes).
providing that, my manifest file of each module has the below entry:
Class-path: fnbusiness.jar
the structure of the EAR look like below:
web.war
ejb.jar
helper.jar
now, I think here come the problem:
classes in ejb.jar module has reference to helper.jar, then classes helper.jar have references to classes in web.war Module, then again, classes in web.war module have references to helper.jar.
it looks like a circle references.
I am not sure this is a conflict problem in class loader in WAS or not. However, in WebLogic, It works OK.
Can you please tell me what shou;ld I do
thank you very much
Xenoux
xxx.WAR
22 years ago
I have to create a Custom Registry that store user data in a Database and authenticate them using Form-Based, Can you give me anyhelp, tutorial , anything I dont know where to start, my webapp runs well on WebLogic, but when we port it to WebSphere, we ran into lots of problem with this.
please help
thanks very much
Xenoux
ah,
Can you explain to me the three below parameter when I setup the security feature in the console:
Security Server ID
Security Server Password
Custom User Registry class name
I guess the User ID and Password are login at the database when the user table and group are created? so that user authentication can be obtained? am I right?
under what schema the tables ( user, group) are created? I guess under the schane of the above User ID and password?
22 years ago
for some reason I cannot obtain an InitialContext to lookup for resource.
I have an EAR file, inside this EAR file, I have a Web module and an EJB module, these two module use (reference to) my common helper classes (packaged in helper JAR file, stored at the EAR-root). the classes in the helper-JAR tried to obtain an InitialContext in order to look up DataSource and EJBBean , but I got this error message below, this error is generated right at the time the InitialContext is created
itc = new InitialContext(properties);
I have not performed any lookup yet, I still dont know why it says that "
Failed to lookup JDBC Datasource. Please double check that the JNDI name defined in the resource-description "
Please help me, my application run OK in WebLogic, but not with WebSphere, I dont know what is wrong?
Thanks
Xenoux
NMSV0906E: Could not create an instance of the class "com.ibm.ws.naming.util.WsnInitCtxFactory".
Failed to lookup JDBC Datasource. Please double check that the JNDI name defined in the resource-description
22 years ago