Re: Login DB Connections
1. check the license you are using 2. check the setting in Jrun properties file. Online document may help. --- Miguel Sartori [EMAIL PROTECTED] wrote: Hi everyone, I'm having a problem with DB in my jrun. often my db starts to throw exceded sessions per user limit. I want to know how can i log the pool connection behavior in my jrun. Thanks for your time ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/JRun-Talk/message.cfm/messageid:5822 Subscription: http://www.houseoffusion.com/groups/JRun-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.8
Re: JRun 4 (Build 59056) - jsp:include error
Where do you put your servlet? I remember in Jrun 4.0, you only need to put your servlet in your classes folder. Kathy --- ernest buechel [EMAIL PROTECTED] wrote: Migration Problem (JRun 3 to 4) One error is bugging me; My page doesn't process after the first jsp:include executes... Basically I would just see this is the stuff before a -- included jsp code -- ... then nothing What happened to the line this is the stuff after a ??? Any help would be greatly appreciated, Ernest note: I tried increasing my buffer; didn't help -- my code (jsp) -- %@ page language=java contentType=text/html % %@ page isThreadSafe=true % %@ page autoFlush=true % %@ page buffer=81962kb % %@ page errorPage=error_short.jsp % % String a=/servlet/PortalServlet?requestid=32% % out.println(hrthis is the stuff before a); % jsp:include url="" / % out.println(hrthis is the stuff after a); % -- my code (PortalServlet) --- ... public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ... ServletContext context = getServletConfig().getServletContext(); context.getRequestDispatcher(jsp).forward(request, response); ... } [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Problems with JSPs finding packaged classes
I have a solution for this after searching for user mailing list on Crystal Reports web iste. Unjar the jars you needed, delete manifest files, then rejar them, put them in JRun lib directory. It works. For your info, Kathy --- Nathan Mische [EMAIL PROTECTED] wrote: I am trying to set up a web application on JRun 4 for Crystal Reports' Java Reporting Components. This webapp has several packages in the WEB-INF/lib directory, however JRun can't seem to find them when compiling my JSPs. For example, if a JSP page tries to import a class like so: %@ page import=com.crystaldecisions.report.web.viewer.CrystalReportViewer% I get the following error: *** Error: com/crystaldecisions/report/web/viewer/CrystalReportViewer is either a misplaced package name or a non-existent entity. If I extract the jars to the WEB-INF/classes folder the app seems to work, but should I need to do this? (I actually set this same app up on Tomcat, and it runs fine without having to expand the WEB-INF/lib jar files in the WEB-INF/classes directory.) I'm fairly new to JRun, so any help would be greatly appreciated. TIA --Nathan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Problems with JSPs finding packaged classes
All, I have exactly the same issue while setting up crystal report 10 on Jrun 4. The jar files I copied to Jurn lib are from Program Files\Common Files\Crystal Decisions\2.5\java\lib. %@ page import=the crystal reports classes % works but Jrun could not compile the codes in JSP page. Looking forward to hearing from somebody here. Thanks, Kathy --- Nathan Mische [EMAIL PROTECTED] wrote: I am trying to set up a web application on JRun 4 for Crystal Reports' Java Reporting Components. This webapp has several packages in the WEB-INF/lib directory, however JRun can't seem to find them when compiling my JSPs. For example, if a JSP page tries to import a class like so: %@ page import=com.crystaldecisions.report.web.viewer.CrystalReportViewer% I get the following error: *** Error: com/crystaldecisions/report/web/viewer/CrystalReportViewer is either a misplaced package name or a non-existent entity. If I extract the jars to the WEB-INF/classes folder the app seems to work, but should I need to do this? (I actually set this same app up on Tomcat, and it runs fine without having to expand the WEB-INF/lib jar files in the WEB-INF/classes directory.) I'm fairly new to JRun, so any help would be greatly appreciated. TIA --Nathan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Problems with JSPs finding packaged classes
Erik, Thank you so much for your info. I am going to try this out. It took me a day to unsuccessfully work on this issue. Kathy --- Erik Sahl [EMAIL PROTECTED] wrote: We ran into similar issues (with respect to JRun 4 not finding the contents of the Jar files), but in regards to tag libraries not loading in when the .jar file was in the server instance's WEB-INF/lib directory.We fixed this problem by adding the classpath to the lib directory manually to the java.class.path of the JRun instance we were going to start up.For some reason, JRun would find maybe the first JAR file in the lib directory (without this), but then none of the others.Now, it finds them all (???) So, here's an example: $JRUN_HOME=/opt/java/jrun4 server instance: jsm-foo In $JRUN_HOME/servers/jsm-foo/default-ear/default-war/WEB-INF/lib directory, we have: mail.jar taglibs-scrape.jar jstl.jar ... We start each server instance off individually (to avoid single point of failure), and the only way to do this is to place a configuration file into your $JRUN_HOME/bin directory (with the classpath for the instance).So, we'd have a: (in $JRUN_HOME/bin): jsm.foo.conf: # # VM configuration # # Where to find JVM, if {java.home}/jre exists then that JVM is used # if not then it must be the path to the JRE itself # # If no java.home is specified a VM is located by looking in these places in this # order: # #1) JAVA_HOME environment variables (same rules as java.home above) #2) bin directory for java.dll (windows) or lib/ARCH/libjava.so (unix) #3) ../jre #4) registry (windows only) # java.home=/usr/jdk1.4 # Arguments to VM java.args=-Xms65M -Xmx300m -Djava.awt.headless=true # java.class.path - use this for adding individual jars or # directories.When directories are included they will be searched # for jars and zips and they will be added to the classpath (in # addition to the directory itself), the jar to be used in launching # will be appended to this classpath java.class.path=/opt/java/jrun4/servers/jsm-foo/default-ear/default-war/WEB- INF,/opt/java/jrun4/servers/jsm-foo/default-ear/default-war/WEB-INF/lib,/opt /java/builds/foocode # # where to find shared libraries, again use commas to separate entries java.library.path= I don't know if the first entry to the WEB-INF is needed, but the second one makes mention to the lib directory.Also, the foocode would contain our jars and zips. To start this instance up, cd to $JRUN_HOME/bin and start it up: sudo jrun -config jsm.foo.conf -nohup -start (using Solaris 8 JRun 4 - for Windows, you can get rid of the 'sudo' command). Anyway, hope this helps.If it doesn't, you might also try the newsgroups (since this email list is pretty much dead).I go to http://groups.google.com and search from there. Good luck. Erik Sahl [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Kathy Vance [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 3:01 PM To: JRun-Talk Subject: Re: Problems with JSPs finding packaged classes All, I have exactly the same issue while setting up crystal report 10 on Jrun 4. The jar files I copied to Jurn lib are from Program Files\Common Files\Crystal Decisions\2.5\java\lib. %@ page import=the crystal reports classes % works but Jrun could not compile the codes in JSP page. Looking forward to hearing from somebody here. Thanks, Kathy --- Nathan Mische [EMAIL PROTECTED] wrote: I am trying to set up a web application on JRun 4 for Crystal Reports' Java Reporting Components. This webapp has several packages in the WEB-INF/lib directory, however JRun can't seem to find them when compiling my JSPs. For example, if a JSP page tries to import a class like so: %@ page import=com.crystaldecisions.report.web.viewer.CrystalReportViewer% I get the following error: *** Error: com/crystaldecisions/report/web/viewer/CrystalReportViewer is either a misplaced package name or a non-existent entity. If I extract the jars to the WEB-INF/classes folder the app seems to work, but should I need to do this? (I actually set this same app up on Tomcat, and it runs fine without having to expand the WEB-INF/lib jar files in the WEB-INF/classes directory.) I'm fairly new to JRun, so any help would be greatly appreciated. TIA --Nathan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
forget password
How to recover the password and username for admin in JRun 3.1? I remember someone posted a solution before but I forgot. The data in password.properties is encrypted. Thanks for help. Kathy __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Compiled Java Files from jsp's
1. JRun 4.0 In your app default-web.xml, check init-param for JSPServlet. If you need to have source files generated, use: init-param param-namekeepGenerated/param-name param-valuetrue/param-value /init-param 2. JRun 3.0 Jrun 3.0 will generate those source files by default. All source files are in the same directory as byecode files as Dave said. fyi. Kathy --- Dave Watts [EMAIL PROTECTED] wrote: Anyone here know where JRun would store the .java files from compiled jsp with a deployed webapp on a watched directory? We deploy a webapp in it¹s expanded form to a folder like /apps/app1¹ and then use the JRun admin interface to point to the directory and deploy the application. Turns out we have some run time errors in some JSP files that give the line number for the exception for the COMPILED JSP but not the actual JSP file on disk. I don't think it stores the source files at all - I think they're compiled directly to bytecode without being stored as source code. I'm no JRun expert, though. If they were stored anywhere, I suspect they'd be stored in the same place as the compiled class files. I think the compiled class files are in \jrun4\servers\yourserver\yourserver-war\WEB-INF\jsp (if you've deployed as an EAR, presumably it would be \jrun4\servers\yourserver\yourserver-ear\yourserver-war\WEB-INF\jsp Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How much RAM?
We are running Jrun 4 in solaris 5.8. Each Jrun app server instance uses abount 30MB-35MB without servicing any requests. Usually I wouild create seperate instance for each web site if I need to do lots of updating later on. You know clients hardly make their minds. kathy --- Dave Watts [EMAIL PROTECTED] wrote: I am running JRun/CFMX on Sun Solaris. I realize that load will have something to do with Memory usage. As an Admin, I am trying to determine if I should create seperate CFMX instances for each App or should I actually put some thought into it. ;-) I wouldn't base this decision on memory usage. You should ask yourself what benefits, if any, you'll see by running separate applications on separate instances. For example, you might benefit by isolating stable applications from unstable ones, or by being able to secure individual applications better, or by being able to tune individual applications better. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Creating new Jrun services - reply
Yes. You could set this up on load-on-startup/ tag in web.xml as I know. Kathy --- Blais, Jason J [EMAIL PROTECTED] wrote: Gavin, Check out the jrun sdk documentation located at http://livedocs.macromedia.com/jrun/4/JRun_SDK_Guide/contents.htm http://livedocs.macromedia.com/jrun/4/JRun_SDK_Guide/contents.htm Chapter 8 deals with implementing jrun services. Its a pretty complete set of documentation to get your own service up and running. A word of caution. I've found that in order to get the service to work, the classes needed by the service need to be placed outside the web-application in the install_dir/servers/lib directory. After that I ran into several class loader issues until I fixed some dependency problems within my code. An alternate possibility may be to use the load-on-startup/ tag in the servlet configuration of the web.xml file Hope this helps, Jason -Original Message- From: Gavin Werner [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 4:21 AM To: JRun-Talk Subject: Creating new Jrun services Hi, I need to initalize a class when jrun starts up (before any users start using the web application). I'm gussing that the way to do this is to create a new jrun service? Macromedia does not seem to have any notes on how to do this although Jrun does provide an API for services as well as the ability to register them in the jrun.xml file. Has anyone written a jrun service or does anyone know if its even possible to do so? Any help much apprecitaed. Thanking you, Gavin [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Re[2]: JRUN Stability- reply
Jon, I have the same problem while I did loading testing on JRun 4. We spent $500 for macromedia tech support in order to solve the issue. Please check your jrun.xml. There is a service called ProxyService. You need to increase the value of the attribute named activeHandlerThreads to a number based on how busy your app is. I remember the default value is 15. Also, You can turn on Metrics logging to decide how many threads you need. Sometimes you could get the same error mentioned while using jsp forward tag. But I believe that Updater 3 may solve forwarding issue on JRun 4. for your info, Kathy --- Jon Austin [EMAIL PROTECTED] wrote: Thanks to all for their input on this topic, I am getting more resource directed to this in the next day or, so, and will be running through some of the troubleshooting tips given here. I understand that many of you are running successfully, with many concurrent users, the question now, I have for those people, is what kind of scope is your application? Are we simply talking glorified web-sites with a little processing behind them, or are we talking full hard-code business applications. Our application falls heavily on the latter, and before I base conclusions on other peoples abilities to produce results under this environment, I want to be sure that we're in the same ballpark. One error which a user did capture during a server-halt the other day, was : Too many concurrent requests, jcp.endpoint.main.max.threads exceeded. I found documents on how to resolve this on JRUN3.. but none of the files that are referenced in that document, exist on my JRUN4 implimenation.Does anyone know where I can find the new settings fro JRUN4. Thanks ~ Jon [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Re[2]: JRUN Stability - one more thing
Jon, One more thing is if you are using JRun web service, the service you may look into in jrun.xml is WebService. Good luck. Kathy --- Jon Austin [EMAIL PROTECTED] wrote: Thanks to all for their input on this topic, I am getting more resource directed to this in the next day or, so, and will be running through some of the troubleshooting tips given here. I understand that many of you are running successfully, with many concurrent users, the question now, I have for those people, is what kind of scope is your application? Are we simply talking glorified web-sites with a little processing behind them, or are we talking full hard-code business applications. Our application falls heavily on the latter, and before I base conclusions on other peoples abilities to produce results under this environment, I want to be sure that we're in the same ballpark. One error which a user did capture during a server-halt the other day, was : Too many concurrent requests, jcp.endpoint.main.max.threads exceeded. I found documents on how to resolve this on JRUN3.. but none of the files that are referenced in that document, exist on my JRUN4 implimenation.Does anyone know where I can find the new settings fro JRUN4. Thanks ~ Jon [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: JRUN Stability- reply 2
Ben, How is the stability and performance of JRun server after you set activeHandlerThreads to 2000? Usually the number of the maxHandlerThreads should be bigger than activeHandlerThreads? As I understand, JRun would not perform well if the number of activeHandlerThreads is too big. Could you share your experience here? How busy would the traffic be on your site and is your site running in UNIX box? Thanks. Kathy --- Ben Groeneveld [EMAIL PROTECTED] wrote: This is true; to achieve high levels of concurrency we run with attribute name=activeHandlerThreads2000/attribute attribute name=maxHandlerThreads2000/attribute Hope that helps, BenG. [EMAIL PROTECTED] wrote: Thanks for the advice!.. I have Metrics turned on currently, monitoring every 20 seconds, and I get 0/0, 0 Sessions.. It does specifically say Web-Threads so, I looked for an additional setting for the proxy, (as we're using the JRUN connector via IIS on another server) but that was the only metrics option in the jrun.xml file. ~ Jon -Original Message- From: Kathy Vance [mailto:[EMAIL PROTECTED] Jon, I have the same problem while I did loading testing on JRun 4. We spent $500 for macromedia tech support in order to solve the issue. Please check your jrun.xml. There is a service called ProxyService. You need to increase the value of the attribute named activeHandlerThreads to a number based on how busy your app is. I remember the default value is 15. Also, You can turn on Metrics logging to decide how many threads you need. Sometimes you could get the same error mentioned while using jsp forward tag. But I believe that Updater 3 may solve forwarding issue on JRun 4. for your info, Kathy --- Jon Austin [EMAIL PROTECTED] wrote: Thanks to all for their input on this topic, I am getting more resource directed to this in the next day or, so, and will be running through some of the troubleshooting tips given here. I understand that many of you are running successfully, with many concurrent users, the question now, I have for those people, is what kind of scope is your application? Are we simply talking glorified web-sites with a little processing behind them, or are we talking full hard-code business applications. Our application falls heavily on the latter, and before I base conclusions on other peoples abilities to produce results under this environment, I want to be sure that we're in the same ballpark. One error which a user did capture during a server-halt the other day, was : Too many concurrent requests, jcp.endpoint.main.max.threads exceeded. I found documents on how to resolve this on JRUN3.. but none of the files that are referenced in that document, exist on my JRUN4 implimenation.Does anyone know where I can find the new settings fro JRUN4. Thanks ~ Jon [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]