Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Viji Bharat

Ranch Hand
+ Follow
since Sep 18, 2000
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 Viji Bharat

All:
If I have to decide between BEA WebLogic and IBM WebSphere Application Servers, which one should I choose taking into account performance, scalability, ease of installation, development environment, etc. etc?
I read a white paper from TechMetrix suggested by moderator George Brown (http://www.techmetrix.com/products/prod_wp02.shtml) that seems to give an impression that Weblogic is better than WebSphere as far as J2EE conformation, portability, scalability, etc. That was more from a migration aspect from WebSphere to WebLogic.
However, if I were to choose one product for application development from the scratch, which one should I choose and how would you rate it better than the other one?
Thanks in advance for your suggestions.
Viji

[This message has been edited by Viji Bharat (edited February 26, 2001).]
19 years ago
Frank:
I reinstalled cocoon 1.8.2 and made the necessary changes to server.xml, web.xml etc. but still I get the error "Publishing engine could not be initialized".
If any of you had the same problem and found a way to correct this error, please let me know how you corrected the problem.
Viji
Frank:
I get this error when I try to view Cocoon.xml from my browser (IE 5.0). Any suggestions to correct this error?
Viji
Publishing Engine could not be initialized.
java.lang.RuntimeException: Exception when creating " org.apache.cocoon.processor.xsp.XSPProcessor" :
java.lang.NoSuchMethodError: See http://xml.apache.org/cocoon/faqs.html#faq-normalize
at org.apache.cocoon.framework.Manager.create(Manager.java:124)
at org.apache.cocoon.framework.Router.init(Router.java:80)
at org.apache.cocoon.framework.Manager.create(Manager.java:109)
at org.apache.cocoon.Engine.<init>(Engine.java:179)
at org.apache.cocoon.Engine.getInstance(Engine.java:232)
at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Frank:
Thanks for the link. I am using Cocoon 1.8.2 but I still couldn't get it working. I think I have something wrong in the setup. I followed the Cocoon instructions but could not find out what is wrong.
My cocoon directory is c:\cocoon and my build directory with all the cocoon classes are in C:\Cocoon\build directory.
I have created a cocoon directory under c:\tomcat\webapps and have copied the necessary .jar files from c:\cocoon\lib to c:\tomcat\lib and also copied the samples directory from c:\cocoon to c:\tomcat\samples.
Besides these, is there anything else I should do? Any specific settings in web.xml under c:\tomcat\webapps\cocoon\web-inf?
Any suggestions?

[This message has been edited by Viji Bharat (edited February 02, 2001).]
All:
I tried one examples from O'Reilly Chapter 9 - http://www.oreilly.com/catalog/javaxml/chapter/ch09.xml (Examples 9-1 and 9-2) by creatint the ChapterOne.xml and <<associated file>>.xsl files. This is supposed to convert the XML to a PDF file. However, when I open ChapterOne.xml using the browser, I get only one line
type="text/xslfo"
What is wrong? I have no clue. Can anyone help me?
All:
I downloaded Cocoon 1.8.2 from Apache and installed it on my PC. I followed the installation instructions and I tried to access the XML. I have the following questions:
1. I have integrated Tomcat with PWS on NT and when I try to access any of the servlets using http://hostname... (without the port #), it works fine.
2. However, when I try to access http://<<hostname>>/<<XML files>>, I get a page not found error. If I use http://<<hostname>>:8080/<<XML>>, it works fine. What change should I make and where so that I don't have to use port # when trying to access XML?
3. Even using port # 8080, the XML pages displayed do not seem to be correct. For eg. I tried accessing the XML samples/docbook/book-docbook.xml and I get the following page
n navy red blue black ()
The error message I can see in tomcat window is this :
IO Exception in R( /cocoon + /samples/docbook/book-docbook.xml + null) Connection aborted by peer - socket write error.
What is wrong? Can someone offer me suggestions?
Thanks
Viji


[This message has been edited by Viji Bharat (edited January 31, 2001).]
19 years ago
All:
I downloaded Cocoon 1.8.2 from Apache and installed it on my PC. I followed the installation instructions and I tried to access the XML. I have the following questions:
1. I have integrated Tomcat with PWS on NT and when I try to access any of the servlets using http://hostname... (without the port #), it works fine.
2. However, when I try to access http://<<hostname>>/<<XML files>>, I get a page not found error. If I use http://<<hostname>>:8080/<<XML>>, it works fine. What change should I make and where so that I don't have to use port # when trying to access XML?
3. Even using port # 8080, the XML pages displayed do not seem to be correct. For eg. I tried accessing the XML samples/docbook/book-docbook.xml and I get the following page
n navy red blue black ()
The error message I can see in tomcat window is this :
IO Exception in R( /cocoon + /samples/docbook/book-docbook.xml + null) Connection aborted by peer - socket write error.
What is wrong? Can someone offer me suggestions?
Thanks
Viji


[This message has been edited by Viji Bharat (edited January 31, 2001).]
All:
I had posted a couple of requests earlier asking for help & guidance in starting a project but I did not get many responses. I know that Javaranch is very user-friendly and hoping that someone/many would help me with this and hence this post.
I need some guidance in deciding which technology to use to develop a web application that generates PDF forms, has lot of database transactions, should generate reports based on the database values etc. It would be an intranet application and I was wondering which would be better - ASP/HTML/database OR use of JSP/Servlets/database etc. We can generate PDF forms using ASP but I am not sure if it is possible with JSP.
Can any one advise me on this? Also, could you suggest which tools would be better and easier for creating the GUI etc. Now, I use Visual Interdev to create plain HTML forms.
Thanks
Viji
19 years ago
Ray:
I am assuming you have the tomcat-iis-howto.html document in the tomcat\doc directory. I just followed the instructions there and it was easy to integrate Tomcat and PWS.
If you have any difficulties with any of the steps there, let me know. I will try to help you as much as I can.
Viji
19 years ago
My servlet class files are in \tomcat\webapps\MyWorkDir\web-inf\classes directory. Correct me if I am wrong but it is my understanding that you can have your own directory created under webapps and have the web-inf\classes structure under your working directory, declare appropriate contexts, mappings and you should be able to run your servlets.
With the same directory structure, \tomcat\webapps\MyWorkDir\web-inf\classes, I was able to run the servlets using http://localhost:8080/....../<<servlet name>>. However, I have difficulties when I am trying to integrate Tomcat with PWS.
Any help is appreciated.
19 years ago
Bill:
Thanks for your response. Well, I have also been using absolute font sizes but the article link in my previous post seem to be in favor of relative font sizes.
I think the browser text size setting on the user's machine is the one that makes a page look good or bad. For eg. assume that on the development machine, the text size setting is medium and I use absolute font sizes for the text. If the user's browser text size setting is set to 'largest', it will not make the page look the way it appears on my development machine.
So, does this mean that you cannot have complete control on the font size settings?
Viji
All:
I have some more observations with regards to the "map uri to worker" problem. I found that the uriworkermap.properties-auto ("Auto generated file") has the /MyWorkDir/* mapping commented out! This is probably the reason I get a "404 - Not found" error ??? when I try to access /MyWorkDir/HelloWorld servlet. The uriworker.properties-auto file however has the /MyWorkDir/servlet/*, /MyWorkDir/*.jsp mapped to ajp12 worker.
My questions:
1. How is this uriworkermap.properties-auto file generated?
2. If during this auto file generation, the URI to worker mapping parameters are taken from uriworkermap.properties, why is it commenting out the /MyWorkDir/* mapping? It is set in the uriworkermap.properties file.
3. Why is it still including /MyWorkDir/servlet/* and /MyWorkDir/*.jsp mapping which I have commented out in workermap.properties file?
Which means, is it not taking the parameters from uriworkermap.properties file to auto generate the uriworkermap.properties-auto file?
I am stuck with this problem and any suggestions will be greatly appreciated.
Thanks.
19 years ago
All:
Which is better? Relative or absolute font sizes? I read in one of the articles that relative font size is better as you don't force a font size for the pages. This way, you have a "floating" font size and how it is displayed depends on the user's browser setting.
Does any one have any plus or minus points for this choice of font sizes?
Ref: http://www.wpdfd.com/advanced/ch3_3.htm
Thanks
Viji
All:
I have (finally!) managed to set up PWS to cooperate with Tomcat (3.2.1) and have no problems running example servlets. However, when I try to run servlets from my working directory under /tomcat/webapps/workingdirectory, I get a page not found error. (HelloWorld servlet was tested to be working fine with a standalone Tomcat server). I looked at the isapi.log and relevant messages from the log file are included here.
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /MyWorkDir/HelloWorld
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/MyWorkDir/HelloWorld] is not a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/MyWorkDir/HelloWorld] is points to the web-inf directory
workers.properties has appropriate tomcat & java home directories. uriworkermap.properties has appropriate servlet context mount entries for MyWorkDir. Has anyone faced a similar problem OR have any suggestions to offer?
Thanks.

19 years ago
Hi:
Include ...\web-inf\classes directory in your classpath. Now, the code should compile.
Viji
19 years ago