Nikhil Chandran

Greenhorn
+ Follow
since Sep 10, 2007
Merit badge: grant badges
For More
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 Nikhil Chandran

Hello Everyone,

I copied tomcat5.5 and executed startup.bat. It is started and I got the message as seen below


Startup Log


Jul 4, 2012 6:15:24 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Jul 4, 2012 6:15:24 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
ndom [true].
Jul 4, 2012 6:15:24 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 4, 2012 6:15:24 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-443
Jul 4, 2012 6:15:24 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jul 4, 2012 6:15:24 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 406 ms
Jul 4, 2012 6:15:24 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 4, 2012 6:15:24 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.30
Jul 4, 2012 6:15:24 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 4, 2012 6:15:25 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 4, 2012 6:15:25 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-443
Jul 4, 2012 6:15:25 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jul 4, 2012 6:15:25 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 4, 2012 6:15:25 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 546 ms


As per the log I assumed that the server gets started up and tried to access through the URL http://localhost:8080 and its showing server not found/page cannot be displayed message.

Could anyone let me advice on the possibilities for this issue.

Any valuable input is highly appreciated.


Thanks in advance
NikhilChandran.


11 years ago
Dear All,

I am new to struts2 validations.Could any one tell me how to do validwhen in struts2 or is there any alternatives available to do these kind of validation without writing custom methods.
Also how is it possible to know which all built-in rules(validator-rules) are available.

Also please suggest some good reference sites for struts2 validations.

Thanks in advance
NikhilChandran.
13 years ago
But it is working fine using both local and loopback ipaddress
in our older version of tomcat(5.0.2) . in same OS, with all environments same
13 years ago
Dear All,

We upgraded our tomcat server to 5.5.30.
Everything works fine and we were able to access tomcat home page using the url as - http://localhost:8080 .
But the things went wrong when we tried to use the system ipaddress or loop back ip (http://<server-ipaddress>:8080 or http://127.0.0.1:8080) .
At that time we were getting Server not found error.


Another interesting fact is that it is working fine using both local and loopback ipaddress
in our older version of tomcat(5.0.2)

Due to this problem we were not able to publish the url. Could anyone suggest some possibilities for this problem.

Any help is highly appreciated.

Thanks in advance
NikhilChandran.
13 years ago
Dear All,

I am trying to sort elements in an html select in alphabetical order using array.sort(). Here is my code.

function showSortedProductsList(selectToSort) {

var arrOptions = [];

for (var i = 0; i < selectToSort.options.length; i++) {
arrOptions[i] = [];
arrOptions[i][0] = selectToSort.options[i].value;
arrOptions[i][1] = selectToSort.options[i].text;
arrOptions[i][2] = selectToSort.options[i].selected;
}

arrOptions.sort();

for (var i = 0; i < selectToSort.options.length; i++) {
selectToSort.options[i].value = arrOptions[i][0];
selectToSort.options[i].text = arrOptions[i][1];
selectToSort.options[i].selected = arrOptions[i][2];
}


}

Every thing works fine except while sorting string like- 100abcd, 18abcd ..... 18abcd is coming first instead of 100abcd . Is it possible to resolve this issue?
Any help is highly appreciated

Thanks in advance
NikhilChandran


could you please provide me a little more explanation regarding how to maintain single repository of jsp s..Also can you tell me what you meant by Symbolic links ...

Thanks
NikhilChandran
13 years ago
JSP
Thanks for your reply.
So is the only option is to put duplicate jsps in all applications?. Do you have any other suggestions to tackle the situation..In my case there are more than 30 applications and if one of these common file changes I need to update it in all 30 applications.
Can you provide a solution for this ..

Thanks
NikhilChandran
13 years ago
JSP
Dear All,

I currently works with a java/jsp project. Tomcat is the web container I have some classes which can be used in common to all application deployed in this tomcat, which is included in shared/classes of tomcat.

Similarly I have some jsp pages which all applications can share. Is it possible for me to do this?

Kindly waiting for your suggestions..


Thanks in advance
NikhilChandran
13 years ago
JSP

Eric Pascarello wrote:Does the HTML output change from production and your dev version?

Eric



No...HTML output is same in development and production. I took the HTML source for both cases and found that both are same
But the tool tip is not coming in development system.

Thanks
NikhilChandran.
Dear All,

I am currently working with javascript and jquery.The server I am using is apache tomcat 5.5.27.
Our development and production environment is same.


My javascript behaves differently in development and production environment. I have a hintbox javascript to display tooltip on input boxes
I got the script from http://nicolae.namolovan.googlepages.com/jquery.inputHintBox.demo.html

I have problem only with IE7 or later. The code is working fine and displaying tooltip when I deploy it in the production environment.
But its not working in the development environment. Also I found no script error. I have cleared the browser cache , work folder in tomcat , but its not working

The java script function defined inside <head> and called at the bottom of the page as shown below

<script>
$('.titleHintBox').inputHintBox({div:$('#shiny_box'),div_sub:'.shiny_box_body',source:'attr',attr:'title',incrementLeft:5});
</script>


Could someone suggest any test scenarios which I can use to solve this problem .

Thanks in advance
NikhilChandran
Yes...I divided the large XSL Template I had into smaller templates and called inside the parent template
Now the issue is resolved.Thank you very much for your help.

Thanks,
NikhilChandran
Thank you for quick reply.
Is there anything we have to remember while reformatting xml , regarding the maximum size limit of xsl ...
Also what may be the root cause of this exception. Is it due to the problem with JVM or Apache FOP ?


Thanks
NikhilChandran
Dear All,

Currently I am working with Apache FOP to generate PDF using XSL-FO and XML

I got stuck up with an exception says like

com.sun.org.apache.bcel.internal.generic.ClassGenException: Branch target offset too large for short
at com.sun.org.apache.bcel.internal.generic.BranchInstruction.dump(BranchInstruction.java:99)
at com.sun.org.apache.bcel.internal.generic.InstructionList.getByteCode(InstructionList.java:980)
at com.sun.org.apache.bcel.internal.generic.MethodGen.getMethod(MethodGen.java:587)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:581)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileTemplates(Mode.java:591)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:843)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:615)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java:730)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:354)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:796)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:623)
at com.newapp.pdf.actions.XslFoPdfExperian.main(XslFoPdfExperian.java:125)
ERROR: 'Branch target offset too large for short'
FATAL ERROR: 'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:829)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:623)
at com.newapp.pdf.actions.XslFoPdfTest.main(XslFoPdfTest.java:125)


I have around 1500 lines of code in my xsl sheet.
I believe the problem is due to the size of xsl sheet.I can't reduce the lines of code inside my xsl as its needed to generate my PDF report.

Here is my java code


Source xsltSrc = new StreamSource(new File("INPUT.XSL"));
Transformer transformer = tFactory.newTransformer(xsltSrc);
ByteArrayInputStream Bis1 = new ByteArrayInputStream(report.toString().getBytes("UTF-8"));
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);
Result res = new SAXResult(fop.getDefaultHandler());
Source src = new StreamSource(Bis1);
transformer.transform(src, res);
OutputStream oustt = new java.io.FileOutputStream("OUTPUT.pdf");

Could anyone please advice me on this issue.




Thanks in advance
NikhilChandran