Exception thrown when using SDK 4.5.1 with debug flash player
My setup:
Windows 7
Flash Builder 4 Premium, Version 4.0 (build 272416), volume license
SDK 4.5.1
RIATest 4.3, RIATestAgent4.swc
I compiled our application using SDK 4.5.1 with these compiler setting:
-locale en_US -use-network=false -theme=Halo/halo.swc --keep-as3-metadata Test -define CONFIG::WITH_DEMS true -define CONFIG::LP_MODULE true -includes com.mycompany.automationDelegates.MyContainerAutomationImpl com.mycompany.automationDelegates.MyFirstComponentAutomationImpl com.mycompany.automationDelegates.MySecondComponentAutomationImpl com.mycompany.automationDelegates.MyThirdComponentAutomationImpl -include-libraries "C:\Program Files (x86)\RIATest 4\agent\RIATestAgent4.swc" "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.5.1\frameworks\libs\automation\automation.swc" "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.5.1\frameworks\libs\automation\automation_dmv.swc" "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.5.1\frameworks\libs\automation\automation_agent.swc"
When I run our application using the debug 10.2 Flash Player, the following exception is thrown:
ReferenceError: Error #1065: Variable Scroller is not defined.
at flash.system::ApplicationDomain/getDefinition()
at mx.automation.delegates.containers::ApplicationAutomationImpl/getAutomationChildren()[E:\ dev\4.5.1\frameworks\projects\automation\src\mx\automation\delegates\containers\Applicatio nAutomationImpl.as:266]
at mx.core::UIComponent/getAutomationChildren()[E:\dev\4.5.1\frameworks\projects\framework\s rc\mx\core\UIComponent.as:12919]
at mx.automation::AutomationManager/getAutomationChildrenArray()[C:\work\flex\dmv_automation \projects\automation_agent\src\mx\automation\AutomationManager.as:4895]
at com.riatest::CachedAutomationManager2/getAutomationChildrenArray()[C:\WORK\RIATest\Source \agent4\com\riatest\CachedAutomationManager2.as:46]
at mx.automation::AutomationManager/getChildrenRecursively()[C:\work\flex\dmv_automation\pro jects\automation_agent\src\mx\automation\AutomationManager.as:1252]
at mx.automation::AutomationManager/getChildren()[C:\work\flex\dmv_automation\projects\autom ation_agent\src\mx\automation\AutomationManager.as:1225]
at com.riatest::CachedAutomationManager/getChildren()[C:\WORK\RIATest\Source\agent4\com\riat est\CachedAutomationManager.as:55]
at com.riatest.toolbar::DisplayListTreeDataDescriptor/getChildren()[C:\WORK\RIATest\Source\a gent4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:74]
at com.riatest.toolbar::DisplayListTreeDataDescriptor/hasChildren()[C:\WORK\RIATest\Source\a gent4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:112]
at com.riatest.toolbar::DisplayListTreeDataDescriptor/isBranch()[C:\WORK\RIATest\Source\agen t4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:117]
at mx.controls::Tree/isBranch()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree.as: 1552]
at mx.controls::Tree/initListData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree .as:2858]
at mx.controls::Tree/makeListData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree .as:1330]
at mx.controls::List/www.adobe.com/2006/flex/mx/internal::setupRendererFromData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\List.as:1699]
at mx.controls::List/commitProperties()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\ List.as:896]
at mx.controls::Tree/commitProperties()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\ Tree.as:1191]
at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\core\UIComponent.as:8209]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:597]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:783]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]
I contacted the folks who make RIATest, and they did their best to debug the problem. Their conclusion is:
"The stack trace that you posted shows that ApplicationAutomationImpl/getAutomationChildren calls ApplicationDomain/getDefinition on line 266 and the call fails with an error. This most likely indicates a bug in ApplicationAutomationImpl."
This problem never occurred when we were compiling our code using SDK 3.4.1. What can I do to work around this and continue performing automated tests of our Flash applications?
Try linking a Scroller into your app.
Similar Messages
-
Is JBO exception working when using JPA ?
I am using Jdeveloper 11g R (11.1.2.3) & weblogic 10 G
In my pages I use JSF & Facelet
Is JBO exception working when using JPA as data provider?
I mean can I throw JBO exception from my back end in some business cases?
thanks
MohsenYou haven't added a resource reference for your web application that gives the application a local name for the global resource "UserDatabase".
-
I am using an Mac PPC version 10.5.8 and I am trying to download the correct version of Flash Player. I did once but I had to install a "Clean Install" of my computer and when finished I had put back the new Flash Player I just installed well every time I try install the new player it is place in my Trash Folder and I can not get Player to work. I did everything I was to install it correctly but it still does not install it correctly. Can some help me. Bob
Some MacBook Pro versions cannot be upgraded past 10.6.8; others are maxed out at 10.7.5. newer models can go all the way to 10.10. So it is important to know exactly what version you have--there may be close to 40 variants produced since the MB made its debut in 2006.
You can safely give us a snapshot of your model and its current config that will allow us to deternmmine your model and its upgrade potential, plus show it you have any software that may impede any upgrades. Please download and install this free utility:
http://www.etresoft.com/etrecheck
It is secure and written by one of our most valued members to allow users to show details of their computer's configuration in Apple Support Communities without revealing any sensitive personal data.
Run the program and click the "Copy report to clipboard" button when it displays the results. Then return here and paste the report into a response to your initial post. It can often show if any harmful files/programs are dragging down your performance.
Remember that, on leaving OS10.6.8, you lose the ability to run older softare written for older PowerPC Macs (yours in Intel-based). Programs such as Office 2004 will no longer work (min of Office 2008 needed to work on newer OS versions), and AppleWorks will stop working completely -
Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.
Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.
-
i tried everything in this article, but still have the same problem when using Rapidweaver software. NOT with other software. I am converting my iWeb site to Rapidweaver, whenever there is a calmer period in my office. I have 16 Gb RAM on my NEW iMac and have Parallels desktop, mail, safari, iWeb and Rapidweaver running simultanious.
I never have the problem if i don't use Rapidweaver, but after i have added several pages to Rapidweaver, the problem begins. my iMac won't start up. the only thing that works is re-installing Macos OS X 10.8. i tried even whiping the completeharddrive, and reinstalling with a complete new user, the same problem.
I had it on my previous iMac also, and bought a new one because i thought the problem was in the iMac first. i hadn't noticed it only happens with using rapidweaver.
i sent my complete rapidweaver project to the programmers from rapidweaver at Realmacsoftware, but they couldnt reproduce my problem, there macs started up without any problem.
i deleted all the rapidweaver addons and extra stacks, and started a complete new project.
saterday i had the problem again, after adding about 5 new pages to my rapidweaver site.
i think i have reinstalled Macos OS X 10.8.2 20 or 30 times by now
does anyone have a sollution?Type '''about:support''' in the URL bar and hit Enter.
Scroll down almost to the bottom of that listing and see if you have '''user.js Preferences''' just above the '''''Graphics''''' category.
If you do have that, click on '''user.js file''' in this sentence. <br />
''Your profile folder contains a user.js file, which includes preferences that were not created by Firefox.''
Does that "different homepage" appear in that user.js file? -
securityagent name when using IBM TAM for SSO with Hyerion
Hi,
What should we declare in the css_config.xml file for the <securityagent>, when using IBM TAM for SSO with Hyperion.
The admin guide only mentions Netegrity, but that would be the case when we use Siteminder for SSO.
Any lights??
Thanks,
SasiWhile, seems one way is to use stream to bypass login.
-
When using my new nano 7 with nike+, my music stops after the 30 minute voice alert even though I have set my run/workout for over 30 minutes. It also cancels/deletes that run/workout. This has happened several times. How can I keep this from happening?
If possible I would arrange for a good service center to go over it. Hopefully they have a variety of parts in stock. They can test and verify all is working. The previous attempts are based on guesses by the person at the other end of the phone without diagnostic tests to assess the culprit. It is extremely unlikely for a webcam to fail & for it & a Mic to fail together should be an indicator to a good technician it is something else. EG Motherboard
Take it to a servicing dealer and wait for it.
T520 Model 4239 Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz
Intel Sandy Bridge & Nvidia NVS 4200M graphics Intel N 6300 Wi-Fi adapter
Windows 7 Home Prem - 64bit w/8GB DDR3 -
Using my current ID and password I can sign in to Adobe. When I try to download the upgrade to Flash Player they ask for my ID and Password. When I insert my current ID and password it is rejected. How do I correct this problem? Is it an incorrect sign in from an old ID, and/or an old password associated with Flash Player?
The password prompt is supplied by the operating system, and is intended to protect you from accidentally installing software. You will get this prompt for any installation outside the App Store context.
If you do not need to enter a username or password when starting your computer, you can probably just leave the password field blank when acknowledging this prompt. -
Using Multiple FLV files on one page with one Flash Player
I have a web site with 6 videos. I am hoping to find help figuring out how best to develop the web page that will allow me to associate several FLV files with one Flash Player. And to have each of the videos "launch" when triggered by a link containing the title.
I have the video titles as links that will launch the associated FLV file when clicked. It is a selection menu with the Flash player on the same page.I don't know which player you're using, but this is usually done with XML or Javascript files (playlists) because you can't directly link to FLVs and have them play in browsers.
That said, Flash is dead as a web technology now because it isn't supported by all the latest and most popular web devices (iPhone, iTouch, iPads). If you want to reach the widest possible audience with your videos, I would suggest using MP4 videos with an HTML5 player that supports playlists.
See Pickle Player
http://www.pickleplayer.com/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/ -
I am running Windows 7 Professional. When I try to install Flashplayer, I get to step 3, and then the installaion will not proceed any further. A blank dialog box appears, with Adobe Flash Player Installer in the upper left corner. I have tried to install on Explorer, Firefox, and Chrome. Nothing works. Please help.
Thanks/ Scott1. Restart your computer to stop any Adobe process that is running.
2. Click on the following Adobe link. Go to the bottom where it says "Still having problems?". Click on the version of Flash Player for your browser.
Installation problems | Flash Player | Windows -
my laptop keeps showing a green screen when I am trying to view video on flash player. It happpens intermittently, but once it starts I need to shut down & restart before it will work again. My laptop is less than a week old. shockwave flash is enabled and activeX filtering is off
Hi,
Open window Control Panel, open Windows Updates, select View update history in the left hand pane, then select 'To remove an update, see Installed Updates'. Let the list populate, then locate update KB3001237, right click it and select Uninstall - when this has completed, restart the notebook.
Download and reinstall the latest driver for your particular graphics chip - the drivers and software page for your notebook is Here.
Restart after this reinstallation.
When windows has reloaded, reinstall update KB3001237 via the standalone installation options on the following link.
http://support.microsoft.com/kb/3001237
Again, restart after the installation.
DP-K
****Click the White thumb to say thanks****
****Please mark Accept As Solution if it solves your problem****
****I don't work for HP****
Microsoft MVP - Windows Experience -
When will the version 11 release in "Archived Flash Player versions" website
Dear Adobe:
I wonder know when will the version 11 release in "Archived Flash Player versions" website: http://kb2.adobe.com/cps/142/tn_14266.html
The newest version in this website is 10.3.183.10, as shown below:
I want to integrate the verion 11 with my project, but I cann't find it.
And I don't need the debug versions like "Flash Player 11.0 ActiveX control content debugger (for IE)". I need the released version.
Is there anyone who can help me? Thank you!I'm not clear what you meant by integrating FP11 to your project. What specifically are you looking for?
To get the latest Release version of Flash Player 11, you can go the this site for the browser that you want to update: http://get.adobe.com/flashplayer/
If you are a Flash Developer you might want to grab debugger build from here: http://www.adobe.com/support/flashplayer/downloads.html
Hope this helps -
Hello,
My MacBook is crashing when I watch Youtube videos. Safari and Flash Player are updated.
What is the problem?
It will be necessary to take him on a technical assistance?
thank youHave you tried an alternate browser to see if the same issue happens? Try Firefox or Chrome. Chrome has Flash embedded in it, so if it doesn't work, it's probably not a Flash issue. FIrefox is at http://www.mozilla.org/en-US/firefox/new/ and Chrome is at https://www.google.com/chrome .
Another thing to try is to sign up for HTML5 video from Youtube. See http://www.youtube.com/html5 -
Exception report when using tomcat 5 with JDBC
i followed this guide to setup the JDBC with my TOMCAT 5
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
but i seem to get this error
exception
javax.servlet.ServletException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'"
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.SID.test_jsp._jspService(test_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'"
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
org.apache.jsp.SID.test_jsp._jspx_meth_sql_query_0(test_jsp.java:100)
org.apache.jsp.SID.test_jsp._jspService(test_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
i can compile *.java and run them when they need the jdbc drivers to interact with mysql 5 database.
This is my server.xml
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Comment these entries out to disable JMX MBeans support -->
<!-- You may also configure custom components (e.g. Valves/Realms) by
including your own mbean-descriptor file(s), and setting the
"descriptors" attribute to point to a ';' seperated list of paths
(in the ClassLoader sense) of files to add to the default list.
e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
-->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 5 documentation bundle for more detailed
instructions):
* If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
<Connector port="8080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Note : To use gzip compression you could set the following properties :
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
<Engine name="Standalone" defaultHost="localhost" debug="0" jvmRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Catalina" defaultHost="localhost" debug="0">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.4
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- Defines a cluster for this node,
By defining this element, means that every manager will be changed.
So when running a cluster, only make sure that you have webapps in there
that need to be clustered and remove the other ones.
A cluster has the following parameters:
className = the fully qualified name of the cluster class
name = a descriptive name for your cluster, can be anything
debug = the debug level, higher means more output
mcastAddr = the multicast address, has to be the same for all the nodes
mcastPort = the multicast port, has to be the same for all the nodes
mcastBindAddr = bind the multicast socket to a specific address
mcastTTL = the multicast TTL if you want to limit your broadcast
mcastSoTimeout = the multicast readtimeout
mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
in case of multiple ethernet cards.
auto means that address becomes
InetAddress.getLocalHost().getHostAddress()
tcpListenPort = the tcp listen port
tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
has a wakup bug in java.nio. Set to 0 for no timeout
printToScreen = true means that managers will also print to std.out
expireSessionsOnShutdown = true means that
useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
false means to replicate the session after each request.
false means that replication would work for the following piece of code:
<%
HashMap map = (HashMap)session.getAttribute("map");
map.put("key","value");
%>
replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
* Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
* Synchronous means that the thread that executes the request, is also the
thread the replicates the data to the other nodes, and will not return until all
nodes have received the information.
* Asynchronous means that there is a specific 'sender' thread for each cluster node,
so the request thread will queue the replication request into a "smart" queue,
and then return to the client.
The "smart" queue is a queue where when a session is added to the queue, and the same session
already exists in the queue from a previous request, that session will be replaced
in the queue instead of replicating two requests. This almost never happens, unless there is a
large network delay.
-->
<!--
When configuring for clustering, you also add in a valve to catch all the requests
coming in, at the end of the request, the session may or may not be replicated.
A session is replicated if and only if all the conditions are met:
1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
2. a session exists (has been created)
3. the request is not trapped by the "filter" attribute
The filter attribute is to filter out requests that could not modify the session,
hence we don't replicate the session after the end of this request.
The filter is negative, ie, anything you put in the filter, you mean to filter out,
ie, no replication will be done on requests that match one of the filters.
The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
ending with .gif and .js are intercepted.
The deployer element can be used to deploy apps cluster wide.
Currently the deployment only deploys/undeploys to working members in the cluster
so no WARs are copied upons startup of a broken node.
The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
When a new war file is added the war gets deployed to the local instance,
and then deployed to the other instances in the cluster.
When a war file is deleted from the watchDir the war is undeployed locally
and cluster wide
-->
<!--
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
-->
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<Context path="/testdb" docBase="APACHE_DIR/htdocs/testdb"
debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
<Resource name="jdbc/TestDB"
auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/TestDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
-->
<parameter>
<name>maxActive</name>
<value>10</value>
</parameter>
<!-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit.
-->
<parameter>
<name>maxIdle</name>
<value>5</value>
</parameter>
<!-- Maximum time to wait for a dB connection to become available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded. Set to -1 to wait indefinitely.
-->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<!-- MySQL dB username and password for dB connections -->
<parameter>
<name>username</name>
<value>test</value>
</parameter>
<parameter>
<name>password</name>
<value>testpwd</value>
</parameter>
<!-- Class name for mm.mysql JDBC driver -->
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<!-- The JDBC connection url for connecting to your MySQL dB.
The autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
connection. mysqld by default closes idle connections after 8 hours.
-->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/testdb?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
</Server>You haven't added a resource reference for your web application that gives the application a local name for the global resource "UserDatabase".
-
Exception thrown when trying to create MimeMessage
Hello,
I was working on the tutorial for sending SMTP messages using the JavaMail API. I set up the Session using Properties fine, but I begin throwing exceptions when trying to construct a new MimeMessage.
Properties props = System.getProperties();
props.put("mail.smtp.host", MAILHOST);
props.put("mail.transport.protocol", "SMTP" );
Session session = Session.getInstance(props, null);
// Exceptions thrown below
MimeMessage rfc822Msg = new MimeMessage(session);
The exception error message I receive is:
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: javax/activation/DataSource
at MailApplet.actionPerformed(MailApplet.java:30)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:10
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ton.java:1101)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
:378)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
er.java:204)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
at java.awt.Component.processMouseEvent(Component.java:3165)
at java.awt.Component.processEvent(Component.java, Compiled Code)
at java.awt.Container.processEvent(Container.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2068
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1852)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java, Compiled
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Window.dispatchEventImpl(Window.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEventForComponent(EventDispatchTh
java, Compiled Code)
at java.awt.EventDispatchThread.pumpEventsForComponent(EventDispatchThre
va:95)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:90)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
If you have any idea what is going on your help will be greatly appreciated.
I am using the jdk1.2.2 build and the JavaMail1.2 distribution.
Thanks,
William MappThanks for the help. Sorry I goofed. Now I have a question regarding what addresses you can send mail to. It seems that if I attempt send mail to a server other than the SMPT host I get a javax.mail.SendFailedException: Sending failed. The exception continues by stating that the address was Invalid, Relaying Denied.
What does this actually mean? Should i be supplying more information?
Thanks,
Will
Maybe you are looking for
-
I have created a project using motion and sound. I need to add a skin to it which you use to be able to do when you published it. Now it seems the only way to do it is by exporting my file into Media encoder then convert it to a MP4 ( there is no F
-
ITunes not properly installed error...
Hi, I'm running iTunes version 7.0.2.16. Yesterday when I booted iTunes it told me that it was not installed properly and it will not be able to rip or burn CD's... This is the first time this has ever happened and I've had iTunes installed on this c
-
SAP Licensing for a Test Environment
One of our clients has created a test environment physically seperate from the Production environment (That is on two seperate machines). All their purchased SAP B1 licenses are being used in the production system. If you select additional licenses,
-
Open With Menu Lists Applications 5 times
So my open with menu seems to list applications more than once, for instance it reads audacity audacity audacity quicktime quicktime quicktime real player real player real player.... I am installing leopard tomorrow (migration assistant install). Wil
-
My ipad constantly download emails that is already downloaded in my ipad. I never delete any mails as I use my ipad for business and need to go back to confirm emails and orders. A 1000 emails gets downloaded every day at least 3 times, why download