Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

DhilipRaja Baskaran

+ Follow
since Oct 08, 2008
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by DhilipRaja Baskaran


I have an MDB in place for which the transaction attribute in deployment descriptor is set to "Not Supported" and the transaction is CMT and I have used ejbContext.setRollbackOnly() method in that mdb

I am getting below exception
::java.rmi.RemoteException: EJB Exception: ; nested exception is:

After some debugging i found that for CMT bean when transaction attribute is set to "Not Supported" and if you use ejbContext.setRollbackOnly() then in this scenario we get IllegalstateException

But In my case i didnt got IllegalstateException exception whereas I got EJB Exception: ; nested exception is: java.lang.OutOfMemoryError

Let me know whether this Out-Of-memory exception can occur if we use ejbContext.setRollbackOnly()

Thanks in Advance
Is any one aware when is the Head First EJB 3.0 will be available in market
It means that if I have to use xslt2.0 than probably i have to use external to sun's orbit jar
Hi ,
I am using jdk1.4 and for xml transformation i used
jaxp-api.jar and jaxp-ri.jar ,just want to know what changes i need to do so that my code also support xslt 2.0 preferably will it get solved if I use higher version of above mentioned jars ,the current version is probably 1.3

Thanks in advance
Hi ,

Follwing is the code for xml trnasformation ,the API used is jaxp and java version is 1.4

The input xml something looks like this

The xsl used for transformation looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">;
<xsl:template match="name">
<xsl:value-of select="."/>


The code for processing is
We call the below method for transforming the xml into other xml by supplying the Input xml,the name of xsl to use,and hashtable containing the value of parametr used in xsl

private String transform(String strInputXML, String strInputXSLFileName, Hashtable ht) throws Exception

String baosStr = null;
ByteArrayInputStream bais = null;
InputStreamReader inStreamReader = null;
BufferedReader reader = null;
ByteArrayOutputStream baos = null;

try {

TransformerFactory tFactory = TransformerFactory.newInstance();
String xsl = //The xsl file of which name is mentioned in the method signature loads though some code from here through singelton class(which loads xsl into memory when server is started) and the particular xsl

bais = new ByteArrayInputStream(xsl.getBytes());
inStreamReader = new InputStreamReader(bais);
reader = new BufferedReader(inStreamReader);

StreamSource source = new StreamSource(reader);
Transformer transformer = tFactory.newTransformer(source);

Enumeration enu = ht.keys();
while (enu.hasMoreElements()){
String strkey = (String) enu.nextElement();

// set parameters for transformation
transformer.setParameter(strkey, ht.get(strkey));

// perform the transformation
baos = new ByteArrayOutputStream();

transformer.transform(new StreamSource(new StringReader(strInputXML)), new StreamResult(baos));

baosStr = baos.toString();

}catch (Exception exception){

return baosStr;

After transformation the the output xml looks
<?xml version="1.0" encoding="UTF-8"?>


The problem is some symbol like A is getting added along with dollar
what is the differnce between parser and xslt processor .Do all parser contain xslt processor .what are the processor and parser used in Jaxp 1.3

Thanks in Advance
You can find the information regarding the exam at following site

Thanks in Advance
I do have problem while parsing a dollar symbol through my xml,basically when a dollar symbol comes in the xml which i convert to other xml using xslt ,the dollar symbol gets converted to a two character symbol (some symbol followed by dollar symbol like (A�))

I use jdk 1.4 and for parsing i use SAX API and JAXP ,The encoding of my input xml is UTF-8 and one used in xsl is the same .If I use the same input xml and same xsl with tool like altova the dollar symbol appears properly in the output

Can Anyone suggest a way out for this problem
Thanks in Advance
NO XML Master is not conducted by IBM ,It is different from IBM exam
Hi I want sample test papers for XML MASTER BASIC exam ,I have already seen the one present at

Please let me know if there are any more sample test papers through which i could gain confidence for giving the exam
[ October 08, 2008: Message edited by: Ulf Dittmer ]
Hello Friends,
I have donwloaded and installed Apache Tomcat 6.0.14. Everything is successfully installed and I can access the page http://localhost:8080 and see the tomcat welcome page.
I give the username and password and access the Manager page. But when I click on the /host-manager it gives me the following error.

HTTP Status 404 - /host-manager/

type Status report

message /host-manager/

description The requested resource (/host-manager/) is not available.
Apache Tomcat/5.5.27

The same error is shown for /manager and also /Ch1 as well....
I am not creating a duplicate thread for the same problem but I have gone through other posts and tried all the solutions given.... still its not working....
I have tried
1) in the root web.xml, uncommenting the Invoker servlet
2) making sure there is no space in <servlet-name> tag
3) trying different encodings like iso-8859-1, utf-8

but still the problem exists....
can anyone please help me on this.... thanks....
11 years ago