11.3.1 tuning JVM and tomcat
I will shortly be upgrading my 7 primary servers to 32gig of ram each.
Currently they have 8 gig and with the new diag screen (just upgraded to
11.3a) we easily can see this is woefully inadequate. Currently the schools
are shutdown and easily 95% of the computers are off and the servers are at
50% memory usage. I have 7 primaries handling 8000 devices. we did a pretty
good job of balancing the load evenly across the seven servers give or take.
That given does the tuning parameters referenced in the doc for Zen 11 still
hold true for 11.3.1? In reading it the test servers in the super lab were
using 16gig. If the docs still hold true can I I presume to double the
numbers for a 32gig server? The current server installation PDF I can't find
a mention of tuning. other than the OS ram needed is there a point of
diminishing returns as the values pass a certain point? SQL is external MSQL
2012. All in the same data center same switch. all gig connections.
JVM max threads for 16g is 600 can I go to how much with 32gig?
heap size of 4096 with 16g. how much suggested with 32gig?
I don't really see a question here.......
But Deploying .NET 4.0 Silently is very simple.
"dotNetFx40_Full_x86_x64.exe /q /norestart"
A Google Search should show lots of hits on how to deploy .NET
On 8/22/2014 11:06 PM, mickers wrote:
>
> I have 11.3.1 installed on the server and a few test machines.
>
> I'd love to deploy the 11.3.1 upgrade to machines, but I'm finding that
> we have numerous Win7 machines that do not have .NET4 installed. I'm
> finding it a real pain to have to somehow unobtrusively build and deploy
> .NET4 before the agent upgrade will work.
> If I install the agent, I can use the 'all included' download from
> ../zenworks-setup, and its good. It seems a real pain that there is no
> mechanism to somehow bootstrap a .NET4 install if required, before the
> deployment begins. Or some alternate method to just schedule a
> deployment that can deal with the prerequisite of .NET4.
>
> We have 1000 laptops, 400 desktops, so I have to have a
> foolproof/failsafe way to get ti done.
>
> At the moment it is stalling all of my Win7 agent upgrades.
>
>
Going to Brainshare 2014? Ask Me for a Discount Code!
http://www.brainshare.com
Craig Wilson - MCNE, MCSE, CCNA
Novell Technical Support Engineer
Novell does not officially monitor these forums.
Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
Similar Messages
-
Slow starup of Java application - best practices for fine tuning JVM?
We are having problems with a java application, which takes a long time to startup.
In order to understand our question we better start with some background info. You will find the question(s) after that.
Background:
The setup is as follows:
In a client-server solution we have a win xp, fat client running java 1.6.0.18.
(Sun JRE). The fat client containt a lot of GUI, and connects to a server for DB access. Client machines are typical 1 to 3 years old (there are problems even on brand new machines). They have the client version of JRE - standard edition installed (Java SE 6 update 10 or better) Pretty much usual stuff so far.
We have done a lot of profiling on the client code, and yes we have found parts of our own Java code that needs improving. we are all over this. Server side seems ok with good response times. So far, we havent found anything about shaky net connections or endless loops in the java client code or similiar.
Still, things are not good. Starting the application takes a long time. too long.
There are many complicating factors, but here is what we think we have observed:
There is a problem with cold vs. varm starts of the application. Apparently, after a reboot of the client PC - things are really, really bad - and it takes (sometimes) up to 30-40 secs to start the application (until we arrive at the start GUI in our app).
If we run our application, close it down, and then restart
without rebooting, things are a lot better. It then usually takes
something like 15 - 20 sec. which is "acceptable". Not good, but acceptable,
Any ideas why?
I have googled it, and some links seems to suggest that the reason could be disk cache. Where vital jar are already in disk cache on th warm start? Does that make any sense? Virus scanners presumable runs in both cases.
People still think that 15 - 20 sec in start up on the warm start is an awful long time, even though there is a lot, a lot, of functionality in the application.
We got a suggestion to use IBMs JRE - as it can do some tricks (not sure what) our SUN JRE cant do concerning the warm and cold start problem. But thats is not an option for us. And noone has come up with any really good suggestions with the SUN JRE so far?
On the Java Quick Starter (JQS) -
improves initial startup time for most java applets and applications.
Which might be helpful? People on the internet seem more interested
in uninstalling the thing than actually installing it though?
And it seems very proprietary, where we cant give our Jar files to it?
We could obviously try to "hide" the problem in some way and make it "seem" quicker. Where perceived performance can be just as good as actual performance. But it does seem a bad solution. So for the cold start we will probably try reading the jar files and thereby have them in disk cache before startup of our application. And see if that helps us.
Still, ok the cold start is the real killer, but warm start isn't exactly wonderfull either.
People have suggested that we read more on the JVM and performance.
java.sun.com.javase/technologies/performance.jsp
java.sun.com.docs/hotspot/gc5.0/gc_tuning_5.html
the use of JVM flags "-Xms" "-Xmx" etc etc.
And here comes the question .. da da ...
Concerning various suggested reading material.
it is very much appreciated - but we will like to ask people here - if it is possibe to get more specific pointers. to where the gold might be buried.
I.e. in a an ideal world we would have time to read and understand all of these documents in depth. However, in this less than ideal world we are also doing a lot of very timeconsuming profiling in our own java code.
E.g. java garbage collection is is a huge subject - and JVm settings also. Sure, in the end we will probably have to do this all very thoroughly. But for now we are hoping for some heuristics on what other people are doing when facing a problem like ours..?
Young generation, large memory pages, garbage collection threads ect. all sounds interesting - but what would you start with?
If you don't have info to decide - what kind of profiling would you be running and then adjust what JVM setting in your trials?
In this pressed for time scenario. Ignorance is not bliss. But makes it hard to pinpoint the or those JVM parameters to adjust. So some good pointers from experienced JVM "configurators" will be much appreciated!
Actually, If we can establish that finetuning of these parameters is a good idea, it will certainly also be much easier to allocate the time for doing so. - reading, experimenting etc. in our project.
So, All in all , what kinds of performance improvements can we hope for? 5 out of 20 secs on the warm start? Or is it 10 % nitpicking? Whats the ball park figure for what we can hope to achieve here given our setup? What do you think based on above?
Maybe someone out there have done some finetuning of JVM parameters in a similiar PC environments like, with similiar fat clients...? Finetuning so and so - gave 5 secs. So start your work with these one-two parameters?
Something like that - some best practices? Thats what we are hoping for.
best wishes
-SimonThanks for helpful answer from both you and kajbj.
The app doesn't use shared network drives.
What are you doing between main starts to get executed and the UI is
displayed?
Basicly, Calculating what to show in the UI. Accessing server - not so much, there are some reads from a cache, but the profiling doesnt indicate that it should be a problem. Sure, I could shift the startup time to some other slot, but sofar I havent found a place where the end-user wouldnt be annoyed.> Caching of something would seem most obvious. Normal VM stuff >seems unlikely. With profiling i basicly find that ''everything'' takes a lot longer in the cold start scenario. Some of our local java methods are going to be rewritten following our review. But what else can be tuned?You guys dont think the Java Quick Start approach, with more jars in disk cache will give something? And how should that be done/ what does people do?I.e. For the class loader I read something about
1.Bootstrap class loader
2.Extensions class loader
3.System class loader
and is wondering if this has something to do with the cold start problem?
The extensions class loader loads the code in the extensions directories (<JAVA_HOME>/lib/ext
So, we should move app classes to ext? Put them in one jar file? (We have many). Best practice about that?
Otherwise it seems to me that it must be about finetuning the JVM?
I imagine that it is a question about:
1. the right heap size
2. the right garbage collection scheme
Googling heap size for XP
CHE22 writes:
You are right; -Xms1600M works well, but -Xms1700M bombs
Thats one best practice or what?
On garbage collection, there are numerous posts, and much "masters of Java black art" IMHO, And according to profiling GC is not really that much of a problem anyway? Still,
Based on my description I was hoping for a short reply like "try setting these two parameters on your xp box, it worked for me" ...or something like that. With no takers on that one, I fear people are saying that there is nothing to be gained there?
we read:
[ -Xmx3800m -Xms3800m
Configures a large Java heap to take advantage of the large memory system.
-Xmn2g
Configures a large heap for the young generation (which can be collected in parallel), again taking advantage of the large memory system. It helps prevent short lived objects from being prematurely promoted to the old generation, where garbage collection is more expensive.
Unless you have problems with pauses, try granting as much memory as possible to the virtual machine. The default size (64MB) is often too small.
Setting -Xms and -Xmx to the same value increases predictability by removing the most important sizing decision from the virtual machine. On the other hand, the virtual machine can't compensate if you make a poor choice.
The -XX:+AggressiveHeap+ option inspects the machine resources (size of memory and number of processors) and attempts to set various parameters to be optimal for long-running, memory allocation-intensive jobs]
So is Setting -Xms and -Xmx and -XX:AggressiveHeap
best practice? What kind of performance improvement should we expect?
Concerning JIT:
I read this one
[the impact of the JIT compiler is obvious on the graph: at startup the time taken is around 500us for the first few values, then quickly drops to 130us, before falling again to 70us, where it stays for 30 minutes,
for this specific issue, I greatly improved my performances by configuring another VM argument: I set -XX:CompileThreshold=50]
The size of the cache can be changed with
-Xmaxjitcodesize
This sounds like you should do something with JIT args, but reading
// We disable the JIT during toolkit initialization. This
// tends to touch lots of classes that aren't needed again
// later and therefore JITing is counter-productiive.
java.lang.Compiler.disable();
However, finding
the sweet spots for compilation thresholds has been tricky, so we're
still experimenting with the recompilation policy. Work on it
continues.
sounds like there is no such straigth forward path, it all depends...
Ok, its good, when
[Small methods that can be more easily analyzed, optimized, and inlined where necessary (and not inlined where not necessary). Clearly delineated uses of data so that usage patterns and lifetimes are apparent. ]
but when I read this:
[The virtual machine is responsible for byte code execution, storage allocation, thread synchronization, etc. Running with the virtual machine are native code libraries that handle input and output through the operating system, especially graphics operations through the window system. Programs that spend significant portions of their time in those native code libraries will not see their performance on HotSpot improved as much as programs that spend most of their time executing byte codes.]
I have the feeling that we might not able to improve performance that way?
Any comments?
otherwise i was wondering about
-XX:CompileThreshold=50 -Xmaxjitcodesize (large, how large?)
Somehow, we still feel that someone out there should have experienced similiar problems? But obviously there is no guarantee that the someone should surf by here!
In c++ we used to just write everything ourselves. Here it does seem to be a question about the right use of other peoples stuff?
Where you are kind of hoping for a shortcut, so you dont have to read endless number of documents, but can find a short document that actually addresses your problem ... well.
-Simon
Edited by: simoncpm on Mar 15, 2010 3:43 PM
Edited by: simoncpm on Mar 15, 2010 3:53 PM -
Apache HTTP server and Tomcat integration using mod_jk
Hi, I'm trying to get Apache version 2 Server running with Tomcat 7 as the Java Servlet container (I'll be using Solr as the webapp next). Followed the instructions in the wiki articles Tomcat and Apache and Tomcat.
The applications work fine separately. It's only when I modify the httpd.conf files as instructed that I get this error when I restart httpd and tomcat. This problem seems identical to this topic although the user that posted it does't know how he fixed the problem.
Terminal wrote::: Starting Apache Web Server [BUSY]
/usr/sbin/apachectl: line 84: 8640 Bus error $HTTPD -k $ARGV [FAIL]
The only bit that I didn't follow to the letter is the part where it says to set TOMCAT_JAVA_HOME=/opt/java \. I have it as
TOMCAT_JAVA_HOME=/usr/lib/jvm/java-7-openjdk. No idea why it repeats that the java home is in the /opt directory.
I installed mod_jk from the AUR version 1.2.37-1.
Any idea what the problem is?download the binary version of TomCat from
http://jakarta.apache.org/
and install it. but your need to set the environment variable...pls refer to
http://www.amazon.com/exec/obidos/tg/stores/detail/-/books/1861002092/reader/18/ref=lib_dp_TT01/103-9996294-0061449#reader-link
JSP hava some similarity of ASP. ASP is using Personal Web Server.
heng -
Coldfusion 9 and Tomcat 7 on Mac 10.6.7 using jsvc
I'm trying to upgrade our environment to the latest and greatest versions of the above applications.
When Coldfusion is deployed in this environment and tomcat jsvc is started using a launch daemon, I get the following error in the catalina.out log:
04/27 13:12:43 Information [Thread-2] - Starting xmlrpc...
04/27 13:12:44 Information [Thread-2] - Starting graphing...
04/27 13:12:44 Information [Thread-2] - Starting verity...
04/27 13:12:44 Information [Thread-2] - Starting solr...
04/27 13:12:44 Information [Thread-2] - Starting archive...
04/27 13:12:44 Information [Thread-2] - Starting document...
_NSJVMLoadLibrary: NSAddLibrary failed for /libjawt.dylib
JavaVM FATAL: lookup of function JAWT_GetAWT failed. Exit
Service exit with a return value of 255
And tomcat never launches.
If, however, I execute the same tomcat startup script manually from the terminal I get this error:
04/27 13:29:49 Information [Thread-2] - Starting xmlrpc...
04/27 13:29:49 Information [Thread-2] - Starting graphing...
04/27 13:29:50 Information [Thread-2] - Starting verity...
04/27 13:29:50 Information [Thread-2] - Starting solr...
04/27 13:29:50 Information [Thread-2] - Starting archive...
04/27 13:29:50 Information [Thread-2] - Starting document...
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
AWT not found
04/27 13:29:50 Information [Thread-2] - Starting eventgateway...
This time tomcat and coldfusion both load fine.
has anyone seen anything like this?
Thanks for any help
KR/Davidhttp://wolfpaulus.com/journal/mac/tomcat7/
-
Oracle9i and Tomcat 4.03
dear all, currently, I've installed Oracle 9i and Tomcat4.03, as well as JSDK1.4.0. However, I've found that after installing Oracle 9i, Tomcat 4.03 (start.sh) seems couldn't run. Is Oracle 9i JVM has overwritten the existing JVM? On the other hands, as I stop the Oracle service in admin. tools(note that i'm using windowsXP), Tomcat is able to start but can't access to Oracle Database that I've created. Following is the error that returned to me as I attempt to start Tomcat (Notice that Oracle database services are started):
Catalina.start: LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080
LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.initialize<HttpConnector.java:1130>
and I've set the environment as followed:
CATALINA_HOME = E:\Apache Tomcat 4.0
CLASSPATH = .;E:\oracle\ora90\jdbc\lib\classes12.zip
JAVA_HOME = C:\j2sdk1.4.0
Path = E:\oracle\ora90\bin;E:\oracle\ora90\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
Your help is much appreciated...:) Pls help... it's urgent.
Thanks in advance.
regards,
Wiwi.dear Saifuddin,
Thanks for your help. In fact, when Iast time I installed the Oracle 8i, it came with Apache server services, however, it did not require me to change anything on server.xml under Tomcat folder. But why this time when installing Oracle 9i did require on change of port. By the way, instead of allocate localhost:8080 on Tomcat, can I allocate Tomcat port on "localhost: 8000"?
Actually, I've stopped the Oracle database service and Oracle HTTP Server in Administrative Tools, but why I still have the returned error like; "... address already been used, JVM Bind: 8080" ?
By the way, are you using Oracle 9i and Tomcat 4.0.3? Pls give me advice on how to setting the Oracle 9i and Tomcat 4.0.3. I highly appreciate your help.
Thanks in adv.
best regards.
Patrick -
Could someone implement an apliacion ADF UIX in TOMCAT???
That problems pipe??
It is important to execute my it
Thank you for your commentaries
Carlo SalasWe also have deployed 3 small UIX / BC4J (JDev 9.0.5.2) applications in Apache Tomcat 5.5.7 with Sun JDK 1.4.2_08. Also a Oracle Help for Web WAR for each one and the BC4J admin WAR.
We had some serious problems that Tomcat 4.1.30, 4.1.31, 5.5.7 sometimes run at 100% CPU. We did not really find the reason for this, but using JDK 1.4.2_08 instead of 1.4.2_05 or 1.4.2_06 seems to fix this.
Currently running with client JVM and not server JVM because this was another tip to workaround the 100% CPU hangs. Need to investigate if we can go back to server JVM when using 1.2.4_08.
We had a lot of problems with unclosed database connections because of the BC4J pooling mechanisms (using dynamic JDBC credentials, reserved mode).
We have split the CATALINA_BASE and CATALINA_HOME to seperate the original Tomcat installation from our configuration. Also deployed the BC4J runtime libs (from ADF Runtime Installer) in CATALINA_BASE/shared (classes, lib) rather than CATALINA_HOME/common (classes, lib)
Be careful when having multiple applications using different BC4J parameters. see Which BC4J / JDBC pooling configurations are global for a JVM?
Hth, Markus
Btw. Migrating to 5.5.7 was more work than expected, because of changed logging stuff, etc. 5.5.9 is now out and seems to add this stuff from 4.1 again. In 5.5.7 we now have the problem that after undeploy, the uix2.jar is not removed. Seems there are some fixes for this in 5.5.8 and 5.5.9. -
Communication problem between NetBeans and Tomcat
hi!
i got a quite mysterious problem. here is what happens:
- i start NetBeans 5.5.1 (the first time)
- i want to debug my JSF-Project, the Debugger starts
- After a few seconds the debugger waits for tomcat (it sais: "Waiting for Tomcat...") and tomcat starts
- Again after a few seconds the tomcat-debugger-output sais "Tomcat startet in 3333 ms".
okay.
when i enter http://localhost:8084/ in my browser i get the tomcat homepage, so the server has definitely started! But nothing happens in NetBeans and nothing happens with my project....
In the lower-right corner i see this blue working-bar that sais "deploying project" but nothing happens. The Project-Debugger-Output still sais "Waiting for Tomcat..." but nothing happens...
And after something around 3 minutes (i guess it's a timeout) i get the error "Starting of Tomcat failed." But is HAS started, i can login to the Administration-Area in my browser!
so i guess there is a communication problem between netbeans an tomcat. Netbeans waits for a message from tomcat but tomcat doesn't send it..or netbeans doesn't understand it.
But the story goes on:
When i press the debug-button a second time it takes only a few seconds till i get the message: "Tomcat server port 8084 already in use". OF COURSE! Because Tomcat has already startet and can't be stoped by NetBeans.
i'm trying to solve this problem for 4 days now, so i would be very happy if anyone has an idea where to start/continue the search...
thanks,
flo.
some system-info:
- windows vista business 32-bit
- no firewall is running
- AntiVir Personal Edition IS running
- Yahoo Widgets Engine IS running
- no other software is running
and finally the tomcat-log:
Using CATALINA_BASE: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base
Using CATALINA_HOME: C:\Program Files\NetBeans\enterprise3\apache-tomcat-5.5.17
Using CATALINA_TMPDIR: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_12
Listening for transport dt_shmem at address: tomcat_shared_memory_id
21.09.2007 18:27:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_12\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\cvsnt;
21.09.2007 18:27:50 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
21.09.2007 18:27:50 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1862 ms
21.09.2007 18:27:50 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
21.09.2007 18:27:50 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
21.09.2007 18:27:50 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
21.09.2007 18:27:53 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
21.09.2007 18:27:54 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
21.09.2007 18:27:54 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
21.09.2007 18:27:54 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
21.09.2007 18:27:54 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3626 msAs i wrote before, the same problem occured for me. I have found a solution which is : Go to tools menu and then select options . In the proxy info, select No Proxy.
I hope this help you -
Problem launching a jsp page with eclipse and tomcat
Hi,
I have just started using eclipse and tomcat for creating dynamic web pages. I tried to launch a jsp page after starting the tomcat server with the URL: http://locahost:8080/HelloWorld/, an error page was displayed as below:
HTTP Status 404 -/
type Status report
message /_
description The requested resource (-) is not available
Apache Tomcat/5.5.17
I didn't get any error at the console and when i just typed http://localhost, a pop up menu saying that the connection was refused when attempting to contact localhost.
I'm not sure what is the problem here. Could it be the permssion to the localhost is not granted by the system as the eclipse IDE is running using linux?
Hope someone can help.
Thanks.http://www-128.ibm.com/developerworks/library/os-ectom/
-
Right problem with apache and tomcat
Bonjour;
I use a user login "apache" to stop/start Apache and tomcat. Because never launching apache et tomcat as root.
But I have the following problem with apache (file error.log) :
[Tue May 6 17:26:22 2003] [error] Connection "warpConnection" cannot connect
[Tue May 6 17:26:22 2003] [error] Cannot open connection "warpConnection"
[Tue May 6 17:27:01 2003] [error] Re-Trying to deploy connections
As root the error msg does'nt exists (lost)
Best regards;
A+;Run it from the shell to see whats wrong:
# httpd -
Authentication problem with JWS and TOMCAT
Hi everyone !
I have a problem with Java Web Start (1.0.1) and Tomcat (4.0.4).
I'm trying to call my application via Web server Tomcat with restricting access.
My configuration is the following :
The deployment descriptor web.xml is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<mime-mapping>
<extension>jar</extension>
<mime-type>application/java-archive</mime-type>
</mime-mapping>
<mime-mapping>
<extension>java</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
<mime-mapping>
<extension>JNLP</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
<!-- Define a Security Constraint on this Application -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<!-- NOTE: This role is not present in the default users file -->
<role-name>standard</role-name>
</auth-constraint>
</security-constraint>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>MY APPL</realm-name>
</login-config>
</web-app>
And jnlp File is:
<jnlp
spec="1.0+"
codebase="http://host:8080/Official/"
href="Application.jnlp">
<information>
<title>Application release 0.10</title>
<vendor> XXXX </vendor>
<homepage href="/"/>
<description>Application</description>
<description kind="short">My Application</description>
<icon href="Icon.gif"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.3"/>
<jar href="Jar1.jar"/>
<jar href="Jar2.jar"/>
<jar href="Jar3.jar"/>
<jar href="Jar4.jar"/>
<jar href="Jar5.jar"/>
<jar href="Jar6.jar"/>
<jar href="Jar7.jar"/>
<jar href="Jar8.jar"/>
<jar href="Jar9.jar"/>
<jar href="Jar10.jar"/>
<jar href="MyApplication.jar"/>
</resources>
<application-desc main-class="com.xxxx.tool.cm.MyApplication"/>
</jnlp>
With the above configuration the Java Web Start not work.
I'm expecting the message box for insert username and password instead it returns the messagge error :
An error occurred while launching/running the application.
Vendor: XXXX
Category: Download Error
Unable to load resource: http://host:8080/Official/Application.jnlp
The Exception error is:
JNLPException[category: Download Error : Exception: java.lang.NullPointerException : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I have tried to remove the restrict access in the deployment descriptor (web.xml) and java Web Start WORKS !!!!!!
I'll appreciate any idea or hint!
Thanks in advanceCheck this out
http://forum.java.sun.com/thread.jsp?forum=38&thread=456250
Mad Einstein -
Why do I need to restart Apache and Tomcat every time a java file is change
If a java file is changed and complied the changes are not reflected if Tomcat is not restarted.
The settings in server.xml are as:
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager" debug="0" privileged="true"/>
<Context path="/cf" docBase="cf" debug="0" reloadable="false"/>
Here "cf" is my Application folder under webapps. The reloadable property when set to "true" for standalone Tomcat on Windows98 reflects the changes for compiled java files without restarting Tomcat. But on Linux 7.1 with Apache 1.3.19 and Tomcat 4.0.3 this is not working.
Also tried out with Manager Application of tomcat-users.xml with reloadable="false" as well as reloadable="true",
But when I reload the application using the command
http://servername:8080/manager/reload?path=/appli.name
It tells me that the application is reloaded but changes in the java file are still not reflected.
Also when reloaded through Manager Servlet, Only my load-on-startup servlet is reloaded, but other java classes are not.
Is it neccessary to execute this reload command from the server itself. I m executing it from a remote m/c. and have mapped the application with a domain name virtually.
Is it the case with Tomcat on Linux with Apache. Or is something going wrong on my part.
Can someone Help out plz.
Regards,
Rupalior you can "touch" your web.xml file.
touch web.xmlor that command is for *nix systems, not sure what the Windows command is. But basically, when you edit the web.xml, even if it means updating the last modified time, it will restart only your application and you should see the changes. -
NetBeans 5.0 and Tomcat 4.1
Hello,
I'm using NetBeans 5.0 and I have been using the Bundled Tomcat version 5.5.9 for my servlet container and everything's been great. Now that I'm ready to push my application up to a web host, I found that my host (lunarpages) runs with Tomcat 4.1 which uses version 2.3 of the servlet container. Tomcat 5.5 uses servlet container 2.4.
So I downloaded Tomcat 4.1 (which has 2.3) and I don't know how to properly tell Netbeans to use it. When I open Server Manager and select 'Add Server', I can't just tell NetBeans to point to my Tomcat 4.1 directory. It wants me to select from a dropdown list of servers and Tomcat 4.1 isn't in the list.
I tried to fake NetBeans out by selecting the 'Tomcat 5' server and pointing to my Tomcat 4.1 directory but I'm getting the following message when I try to run:
FAIL - Unknown command /deploy
C:\workspace\myApp\nbproject\build-impl.xml:425: Deployment error:
Can anyone point me in the right direction on how to get Tomcat 4.1 running with NetBeans 5.0?
Thanks,
EricI found that my host (lunarpages) runs with Tomcat 4.1 which uses version 2.3 of the servlet containerPlease read the post before answering, the reasoning is crystal clear.
I don't have a concrete answer to this problem, but I do have a suggestion.
1) You can add your own tomcat server to netbeans. Under the runtime tab you will find servers, if you right click this you can add a server. Use this to manually configure your own server
2) as for the servlet spec problem, when creating a web project setting the java EE version to 1.3 might solve the problem... I can't tell this for sure because I've never done it. -
How to install Java and Tomcat on my VPS
Hello,
I am new in Java.
I would like to install Java and Tomcat on my VPS server.
Do you know which doc or info i should read?
Thanks a lot.
GilThe free Perian will do it for you automatically.
Additional free new machine setup stuff:
Install and update your Flash here
http://get.adobe.com/flashplayer/
Install Perian (addiitonal Quicktime codecs)
http://perian.org/
Install the Unarchiver (uncompress software)
http://wakaba.c3.cx/s/apps/unarchiver.html
Flip for Mac (for Windows media in Quicktime)
http://www.telestream.net/flip4mac-wmv/overview.htm
VLC (plays anything just about)
http://www.videolan.org/
Easy Find (finds everything on a Mac)
http://www.devon-technologies.com/download/index.html
OnyX (maintenance, cleanup, repair utility)
http://www.titanium.free.fr/ -
Preinstalled apache, apache2 and tomcat
Hello,
I'm setting up a Sun Fire V490 running solaris 10 for use as a web server. I need to have Apache httpd version 2 and tomcat version 4.x to run.
So I found that the machine comes with apache httpd 2 preinstalled and also apache httpd 1 with fully integrated tomcat engine.
But as stated I need to have apache httpd 2 with tomcat running!
Apart from configuring the system to run httpd version 2 instead of version 1 by use of svcadm, I'm wondering how to get a solid solution to also have tomcat running. Ok I could simply install a tomcat version from apache.org, but I would like to ensure that this is the right solution for e.g. future upgrades.
So if anybody has got some more knowledge but this issue, I would be happy about letting me know!
Thanks, RaimundHey, I came into the same question while configuring tomact on Sun server.
So, what did you finally do...........?
any help will be great....
Thanks, -
Does anyone here have any expertise configuring these two products?(eclipse and tomcat)
I have my tomcat server running and it process them jsp pages just fine. I have also installed the plugin to get tomcat configured with eclispe.
I am just having problems running a jsp file directly from tomcat. it always points to a file on the hd and not to the webapps area like it's supposed to......Sure - we use that combo for development all the time.
What's the problem specifically? Did you create a new Tomcat project in Eclipse? If you did, then it will automatically add the project's web path as a context to Tomcat, and you can browse directly to it using your browser.
FYI - note that the context that is created is going to point to the eclipse workspace directory - NOT the default webapps directory that you might have configured for Tomcat. That's OK.
- K
Maybe you are looking for
-
How can i remove my phone number off my macbook so it could not receive my messages
everytime i send a text message from my phone it randommly apears on my laptop i was wondering how that can be stoped. please need help.
-
I booted my new-ish laptop and immediately got an EXTREMELY serious pre-boot error. "Recovery. Your PC needs to be repaired. The boot configuration data is missing some required information. file:\BCD error code 0x0000034. ... press ESCAPE to go to
-
Can't login to desktop cc after pc restore
Had to restore to an earlier date (a date after I installed the CC app) to correct a program and now I can't open the CC app. It keeps logging me out. I uninstalled the app and reinstalled it with no success opening the app. I keep getting the mess
-
As I am a brand new to Open Enrollments, I have a case where I need to end date options in a plan as of 31-DEC-2012 and Activate new options as of 01-Jan-2013. As these are mostly name changes for the options and only one option is getting distribute
-
EAI Siebel Adapter upsert fails to upsert the LOV
Hello, We have web services exchanges and some fields that we used are LOV, using vanilla LOV works when in the web service sent to siebel we used the LIC, because in the application it shows the Display name, we have a problem when we add a new valu