mars76

Ranch Hand
+ Follow
since Nov 30, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by mars76

Hi All,

Could some one provide more info reg how to purchase a voucher for Old version of Part 2.

I have completed Old version of Part 1 and hence want to complete the old version of Part 2.

Thanks
Sateesh
Hi Santosh,

Are you sure we cannot get the vouchers for Part2 and 3 for the Old Exam. I called them few days back and they said we can get the vouchers directly from Sun.

Regards
Sateesh
Hi All,

My Choice is Flower Girl (A).

Here is the reasons why i chose it..

1) Different Flowers on her T-Shirt represent different patterns we have and each pattern has got it's own flavour.

> Sateesh
20 years ago
Hi All,

I read that Java1.4.x has got java.nio packages which provides better performance when compared to the old IO Packages.

Can any one tell me which existing classes of IO Can be replaed with the classes in NIO packages !!

Thanks
Sateesh
20 years ago
Hi,
I am also looking for a Tutorial on this. Pls let us know if any one finds it..
Thanks
Sateesh
Hi All ,
I am trying to parse an XML File using DOMParser . The version of xerces i am using is 1.1.3 (One comes with WAS3.5)
When i tried parsing a file I got the Document as [#document: null]
================================================================
DocumentBuilderFactory docbuilderfact= DocumentBuilderFactory.newInstance();
DocumentBuilder documentbuilder = docbuilderfact.newDocumentBuilder();
System.out.println("xmlURL......:" + xmlConfigFile);
Document document = documentbuilder.parse(xmlConfigFile);
System.out.println("Document="+document);
==============================================
Pls let me know how to resolve this..
Thanks in Advance
Sateesh
Hi,
The issue is resolved . classes12.zip was not there in the classpath !!
-Sateesh
21 years ago
Hi,
I have created a Data Source in WSAD5.0 but unable to make it work.
Here are the Steps that i followed . Pls let me know where i am going worng..
1) Created a Web Sphere Test Environment5.0 Server Configuration
2) In the DataSources i have created a new JDBC Provider for Oracle Thin Driver . i used the default implementation Class oracle.jdbc.pool.OracleConnectionPoolDataSource whose class path by default is ${JDBC_ORACLE_DRIVER_PATH}/classes12.zip
3) For the Above JDBC Provider i have created a version4.0 DataSource ds_test with the below properties.
JNDI Name : jdbc/ds1
Database Name : ORCL
Default User Id : scott
Default Password : tiger
Values for minimum pool size, max pool size , connectiontimeout are kept as the default values
4) Now for the Data Source Above the below given resource properties are used.
URL = jdbc racle:thin@:machinename:1521 RCL

And now i tried accessing the above created Data Source in my JSP Page using the below given code..
// Retrieve a DataSource through the JNDI Naming Service
java.util.Properties parms = new java.util.Properties();
parms.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
// Create the Initial Naming Context
javax.naming.Context ctx = new javax.naming.InitialContext(parms);
// Lookup through the naming service to retrieve a DataSource object
javax.sql.DataSource ds =(javax.sql.DataSource)ctx.lookup("jdbc/ds_test");
// Obtain a Connection from the DataSource
conn= ds.getConnection(); // query the database
I am getting the below given Exception:
javax.naming.NamingException: ClassNotFoundException: oracle.jdbc.pool.OracleConnectionPoolDataSource
Thanks in advance for your help.
Sateesh
[ July 30, 2003: Message edited by: sateesh kommineni ]
21 years ago
Hi All,
I am trying to deploy a sample Struts Application on WAS3.5.2 and
getting the following Error.
Missing configuration resource for path /WEB-INF/struts-config.xml
I have placed the WEB-INF folder which has the following XML files
struts-config.xml, action.xml, database.xml and web.xml
in both web and servlets folders..
In WAS3.5.2 when we create a Web App using the Admin Console the
Document root by default points to web and the CLASSPATH points to
the Servlets folder..
Pls let me know how to resolve this issue..
Thanks in Advance
Sateesh
21 years ago
Hi All,
We are using Struts on WAS3.5.2 and when we try to host a sample struts
application we are getting the following Error.
unable to locate /WEB-INF/struts-config.xml
The Directory Structure of the Web Application is as follows :
Document Root : $WAS_HOME/default_host/struts-example/web
Class Path : $WAS_HOME/default_host/struts-example/servlets
- struts-example
- web
-WEB-INF
- servlets
-WEB-INF
I have copied the WEB-INF folder into web and as well to servlets
directory.
the struts-config.xml file is residing in the WEB-INF directory .
Pls let me know how to resolve this..
Thanks in Advance
Sateesh
21 years ago
Hi All,
I am trying to configure Struts in WAS3.5.2 .
I did exactly what is suggested in the Struts Web Site and when i tried the URL http://localhost/struts-example
I am getting the following Error.
Error 503
An error has occured while processing request:http://gia1f-63-a/struts-example/
Message: Application is currently unavailable for service
Target Servlet: null
StackTrace:
Root Error-1: Application is currently unavailable for service
com.ibm.servlet.engine.webapp.ApplicationUnavailableException: Application is currently unavailable for service at javax.servlet.ServletException.(ServletException.java:107) at com.ibm.websphere.servlet.error.ServletErrorReport.(ServletErrorReport.java:31) at com.ibm.servlet.engine.webapp.WebAppErrorReport.(WebAppErrorReport.java:20) at com.ibm.servlet.engine.webapp.ApplicationUnavailableException.(ApplicationUnavailableException.java:11) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:220) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:175) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:93) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:77) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:160) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:212) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216) at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248) at java.lang.Thread.run(Thread.java:481)
And i have checked the Log Files and the following is the data in it.
5710413e WebApp X Failed.to.initialize.webapp.{0}
"struts-example"
javax.servlet.UnavailableException: Missing configuration resource for path /WEB-INF/struts-config.xml
at javax.servlet.ServletException.<init>(ServletException.java:107)
at javax.servlet.UnavailableException.<init>(UnavailableException.java:159)
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1316)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:558)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:136)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:244)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:102)
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:277)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:71)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:88)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:776)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:88)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:118)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:82)
at com.ibm.servlet.engine.ServletHost.addWebGroup(ServletHost.java:107)
at com.ibm.servlet.engine.ServletEngineDynamicUpdateSupport.addWebGroup(ServletEngineDynamicUpdateSupport.java:124)
at com.ibm.ejs.sm.active.ActiveServletGroup.startAction(ActiveServletGroup.java:76)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:668)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:113)
at com.ibm.ejs.sm.active.ActiveObject.operateOnContainedObjects(ActiveObject.java:570)
at com.ibm.ejs.sm.active.ActiveServletEngine.startAction(ActiveServletEngine.java:60)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:668)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:113)
at com.ibm.ejs.sm.active.ActiveObject.operateOnContainedObjects(ActiveObject.java:570)
at com.ibm.ejs.sm.active.ActiveEJBServer.startAction(ActiveEJBServer.java:96)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:668)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:113)
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._AdminAgentImpl_Tie._invoke(Unknown Source)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(Unknown Source)
at com.ibm.CORBA.iiop.ORB.process(Unknown Source)
at com.ibm.CORBA.iiop.WorkerThread.run(Unknown Source)
at com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run(ThreadPool.java:532)
[03.05.06 21:21:55:453 GMT+05:30] d5234139 ServletInstan A SRVE0048I: Loading servlet: "file"
[03.05.06 21:21:56:843 GMT+05:30] d5234139 WebGroup A SRVE0091I: [Servlet LOG]: "file: init"
[03.05.06 21:21:56:859 GMT+05:30] d5234139 ServletInstan A SRVE0130I: Servlet available for service: "file"
[03.05.06 21:21:56:984 GMT+05:30] d5274139 ServletInstan A SRVE0048I: Loading servlet: "ErrorReporter"
[03.05.06 21:21:57:046 GMT+05:30] d5274139 WebGroup A SRVE0091I: [Servlet LOG]: "ErrorReporter: init"
[03.05.06 21:21:57:546 GMT+05:30] d5274139 ServletInstan A SRVE0130I: Servlet available for service: "ErrorReporter"
Pls help me..Thanks in Advance
Sateesh
21 years ago
Hi,
We are planning to use a Frame work for our Applications and we liked the features of Struts . As Expresso is also based on Struts we would like to know which is the best one..
1) What additional features that Expresso provides when compared to Struts ??
2) Struts by default won't provide great Support for Model Tier i.e, we need to implement the DAO or some other Pattern for accessing Data Bases ..Expresso provides the Data base Objects support where as Struts doesn't.
3)Expresso provides inbuilt Unit Testing Support. Is there such provision in Struts ?
4)How difficult it is to have a mixture of the features of both Struts and Expresso ??
Thanks a lot in Advance..
-Sateesh
21 years ago
Hi,
You can do that in two ways..
1) Read the First XML File using SAX Api and get the Phone Number details and create a DOM Tree on the second XML File and insert the Node <phone> in the appropriate location..
2) Using JAXB is the second option..

Unmarshall the First and second XML Files and ise the get() method to fetch the Phone Number from the First XML and set the Phone Number and Marshall the root Object..
For this to work you need to define the <phone> as an optional element in your second XML 's DTD..
Hope this helps..

-Sateesh
In Apache DBTags we have lots of tags which helps us in getting the output of SQL statements in the JSP pages.
But is it a best practise to have the DataBase specific things ( Connection , ResultSet objetcs and the SQL Queries) in the presentation layer ?
Thanks
Sateesh
[ September 11, 2002: Message edited by: sateesh kommineni ]
22 years ago
JSP
Hi,
I am facing the same problem i.e, getting the java.lang.ClassCircularityError in WebLogic5.1 when i tried calling a class file in a JSP. Please let me know if you resolved that..
Thanks
Sateesh
22 years ago