Grabbing Random Questions for the Question Pool
Hi Everyone,
I am interested in exactly how the Random Question Pool
works. Let's say there are 50 questions in the question pool and
you want 10 questions from that question pool of 50. When you
publish I understand you will get 10 random questions from the 50
questions. Then when you run your published project are you always
going to get the same 10 questions or another 10 of the 50 pooled
questions everytime your run that same published project? Or do you
have to publish again, calling the quiz another name to get another
10 of 50 questions from the question pool? I appreciate the help on
this.
Hi slewis6337
It is my understanding that each time you
display the Captivate output, you see a totally random
question. So if your question pool contains 50 questions, each time
your Captivate output presents the random question and draws from
the pool, it is truly drawing a totally random question.
I do believe that Captivate does keep track of which
questions have been used in the pool. To test this, try creating a
pool containing three questions. Then create four random question
slides that point at the pool. Then try running the Captivate. You
should see that as random question number four is encountered, the
screen goes totally gray. This is happening because you have
exhausted the question pool.
Sincerely... Rick
Similar Messages
-
Random seed for the grain in lightroom?
Is it possible to get a random seed for the grain in lightroom when applying to multiple images? I really like the grain in lightroom and would like to use it for an image sequence, so its really important that the grain changes from frame to frame.
Yeah. I just exported a set of over 7000 images to import them in premiere as sequence. The grain stays in the exact same pattern throughout the 2 minutes of video so that it looks not like (dynamic) film grain but like a static curtain.
-
Captivate 8: Can I create a random question pool from existing quiz slides?
I made a quiz for a client, published it out and everything works perfectly. Now the client has decided that they want the questions to be random. I have tried to add my existing question slides to the question pool, however I have no idea how to do this correctly. Nothing I try seems to work - the only tutorial I could find was on the Adobe site and it simply said to create a question pool and then drag the slides to the timeline, replacing the question pool slides with the existing slides. But I cannot drag the slides for some reason, and I am very confused about these directions, they don't seem to mesh with my version of Captivate.
My questions weren't part of a question pool when I developed this quiz as I had no idea such a thing existed. And now I see through every tutorial I find, a question pool is necessary for randomizing the questions. So, my question is... is there a way to do this with existing question slides, or will I have to start all over again?Hi there
Should be even simpler. Select the question slides and right-click. There should be an option to send them to the desired pool!
Cheers... Rick -
Firefox has been crashing at random times for the last two days
Firefox has been crashing randomly for the last two days. I had to download Malwarebytes yesterday because I picked up Malware Doctor (I think that's the name.) It was soon after I had removed the spyware that Firefox started crashing.
== Crash ID(s) ==
sqlite3_execYour plugins list shows outdated plugin(s) with known security and stability risks.
# Shockwave Flash 10.0 r32
# Next Generation Java Plug-in 1.6.0_16 for Mozilla browsers
Update the [[Java]] and [[Flash]] plugin to the latest version.
See:
http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
http://www.adobe.com/software/flash/about/
See http://kb.mozillazine.org/Firefox_crashes and [[Firefox crashes]]
You may need to do a (clean) reinstall if Anti-virus software made any changes to files in the Firefox program folder.
See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall -
How can I get Captivate to score across multiple question pools?
I have set up a Captivate assessment as follows:
A core set of 50 questions will be presented to all learners
Depending on where the learner is, he will receive an additional 10 questions from one of 5 location-specific pools
Learners will see a total of 60 questions
I have my question pools set up and branching correctly, and am using the Branch Aware option to assist with this and the progress indicator. Before the first question I have the learner click one of several buttons (not quiz elements) to set a location variable, and after presenting the core questions I use this variable to determine which random question slide to jump to next (with set of slides pointing to a different question pool). After asking the 10 random questions from that pool the learner is then redirected to the review slide so only one set of location-specific slides is encoutnered on each attempt.
All of that seems to be working as designed but the scoring is not behaving as I had expected; despite the fact that all questions are asked before the review slide is presented (i.e. all questions are within the quiz scope in both the edit-time and run-time sense) the review slide only reports results from the first question pool. For example, in a test file I reduced the question slides for the first pool to only display 2 questions, for a total of 12 presented, but my results show "0 of 2 correct" or "2 of 2 correct." The pass/fail results of the module match the review slide, so this is not a simple display issue; if I miss either of the two questions from the first pool I fail regardless of what happens in the second pool.
What am I missing? Surely there wouldn't be the option of using multiple question pools if only one could be graded ...
I am working on Captivate 6.0.1 64-bit for Windows. FWIW the file was originally created in Captivate 5 and has since been upconverted, but the additional question pools weren't introduced until after the conversion processes so I wouldn't expect this to be related to residual crud left over from that process.Thanks for the quick response ...
I had already tried deleting the review slide itself, though Captivate wouldn't let me - it just hid it. I tried again using the method you recommended but the slide remained in the filmstrip, so I tried deleting again, then re-added it from the Quiz Settings page ... no joy, same behavior as before.
I checked the Advanced Interaction page and confirmed that all of the scored questions were configuredthe same way as the non-scored questions, with the only difference being the pool that they were drawing from.
Other thoughts? I am by no means a Captivate expert but this one really feels like it shouldn't be this hard, and I'm more than a little afraid that it's the file itself that's jacked up ... -
'Connection has already been closed'. Random error connecting with a pool
Hi all,
I've got a problem I cannot solve, and really hope in someone's help...
The fact is: I'm working on a webapp which doesn't made use of frameworks or patterns or similars. I introduced the DAO pattern in order to organize and speed up the work. At the core of the new classes there is the DBDAO, and this is the way it obtains the connection:
protected Connection conn = null; ... protected Connection getConnection() { try { if (conn == null || conn.isClosed()) { Context ctx = new InitialContext(); javax.sql.DataSource ds=null; ds =(javax.sql.DataSource) ctx.lookup( "agespPool" ); conn = ds.getConnection(); conn.setAutoCommit(false); } } catch (Exception ne) ...
Every new class that needs to access the db extends DBDAO and retrieves the conn with this method. In order to make things work without changing all the code, I modified the old class named 'Connessione' and made it extend DBDAO. Here is its method:
public class Connessione extends DBDAO{ ... public static synchronized Connection getConnessione() throws Exception { return new Connessione().getConnection(); }
That's all. Finished with the code.
Now, if someone uses the new classes extending DBDAO, all goes well. But for some old function that still work with Connessione.getConnessione(), connection closes suddenly with no reason.
For example, calling a page with some combo box populated with a db connection, you catch a:
java.sql.SQLException: Connection has already been closed. at weblogic.jdbc.wrapper.PoolConnection.checkConnection(PoolConnection.java:63) at weblogic.jdbc.wrapper.ResultSetMetaData.preInvocationHandler(ResultSetMetaData.java:37) at weblogic.jdbc.wrapper.ResultSetMetaData_oracle_jdbc_driver_OracleResultSetMetaData.getColumnType(Unknown Source) at it.praxis.tim.agesp.pub.sql.PagingList.populate(PagingList.java:98) at it.praxis.tim.agesp.pub.sql.PagingList.executeSQL(PagingList.java:53) at jsp_servlet._jsp._todolist_new._richiesta.__listarichieste._jspService(__listarichieste.java:353) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
or sometimes:
- 20080417141147: <E> HtmlSelect.createHtmlSelect(4) - Errore! java.sql.SQLException: Result set already closed - 20080417141147: <E> HtmlSelect.createHtmlSelect(7) - Errore! java.sql.SQLException: Connection has already been closed. - 20080417141147: <E> ERRORE: ricercaRichieste : java.sql.SQLException: Statement has already been closed
That is, the conn is closed while used to populate the combo box. I don't understand who closes it.
Moreover, that happens randomly: 1 or 2 times over 4 hits on the page. The other times, all goes well. Most of the other pages, all goes well. So I don't think I have to search for a bug in the code.
Now, I'm working with BEA WL 8.1 sp 5 and Oracle 9.2.0.1.0 .
The error turns out even if I work locally (with Tomcat 5.5.23).
The webapp made use of a custom driver beforehand, and I replaced it with oracle's driver.
I tried to set the Connection Pool with oracle.jdbc.driver.OracleDriver and oracle.jdbc.OracleDriver .
I left the default for the connection pool, and then tried to set (BEA):
Connection Reserve Timeout: -1
Test Created Connections: On
with no changes.
The connection suddenly and randomly closes.
Any help would be appreciated...
Many thanksthe thing that you are instantiating isn't a Connection object, it's a Connessione object. That's returning one that's either been stashed from a previous call, or
acquires one from the data sourcea new Connessione object means a call to getConnection that means a new Connection object. That code is synchronized, it has to be a new object.
It is entirely possible that conn is not null if other actions have taken place in your constructor. Even assuming it is null, we don't know anything about the
connection pool you're trying to use, though it looks like it's probably weblogic's one.The contructor doesn't know of the connection. As for the pool, it is weblogic's one.
And even assuming both of these cases, we have no particular reason to believe that you're calling the getConnessione() method instead of accidentally calling
getConnection() and thus no reason to believe that you're definitely carrying out the actions that you believe you're carrying out.I wrote that the problem comes out in the old code that once worked fine. That code only uses Connessione.getConnessione() .
Conversely we have an error message that says you're closing connections elsewhere. Clearly there's a bug. It's presumably in your assumptions. You're
arguing instead of checking them.If I have a wrapper logging the close() calls, I have to see every call logged. Even if there's a bug (but remember that the code worked fine with a previous custom datasource), why do you think I shouldn't see that close() logged?
I may be wrong, but I already searched in that code. I'm arguing after all the checks.
There is no other thread that can see that connHow do you know? I have that Connessione.getConnessione() in a jsp. It's synchronized. That gives a new connection. I see it passed only to an utility class that queries the db and reads the resultset.
Who do you think can access that connection? -
I'm getting these errors in the eventlog and ULS, "An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US\nIssuer Name: CN=SharePoint Root
Authority, OU=SharePoint, O=Microsoft, C=US\nThumbprint: <STS CERTIFICATE THUMBPRINT>\n\nErrors:\n\n RevocationStatusUnknown: The revocation function was unable to check revocation for the certificate."
The errors point to the SharePoint Security Token Service as the issue ("The revocation function was unable to check revocation for the certificate") reported back by the Topology service. This is apparent when executing a search, accessing
the managed metadata service, issuing SPSite commands in Powershell, or anything that needs to run through the "SharePoint Web Services" site. I've looked at the certificate assigned to that site and everything appears to be in order.
It would seem to me to be either an incorrect endpoint configuration (internally cached perhaps?) or related to security access for the configuration database (in order to validate the certificate root).
What I’ve tried so far:
I’ve been all over the certificate settings, both in the server store, and within SharePoint Token Service config. Both appear to be configured correctly such that the root CAs can be validated.
Re-entered the passwords for the application pool domain accounts to eliminate these as a potential cause. I’ve also verified the service accounts reporting the error, do have access to the configuration database.
Re-provisioned the STS service to see if that might clear out any cached issues and validated everything else according to this
MS Tech note.
So far nothing has worked. Is there anything else I could be looking at that I've missed? (Full eventlog detail below)
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Foundation
Date: 2/20/2015 11:19:41 AM
Event ID: 8311
Task Category: Topology
Level: Error
Keywords:
User: <SP SERVICE ACCOUNT>
Computer: <SHAREPOINTSERVER>
Description:
An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US\nIssuer Name: CN=SharePoint Root Authority, OU=SharePoint, O=Microsoft, C=US\nThumbprint: <STS
CERT THUMBPRINT>\n\nErrors:\n\n RevocationStatusUnknown: The revocation function was unable to check revocation for the certificate.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD-997A-241563931FC2}" />
<EventID>8311</EventID>
<Version>14</Version>
<Level>2</Level>
<Task>13</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated SystemTime="2015-02-20T17:19:41.213852500Z" />
<EventRecordID>1611121</EventRecordID>
<Correlation />
<Execution ProcessID="10212" ThreadID="10328" />
<Channel>Application</Channel>
<Computer><SHAREPOINTSERVER></Computer>
<Security UserID="<SP SERVICE ACCOUNT>" />
</System>
<EventData>
<Data Name="string0">CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US</Data>
<Data Name="string1">CN=SharePoint Root Authority, OU=SharePoint, O=Microsoft, C=US</Data>
<Data Name="string2"><STS CERT THUMBPRINT></Data>
<Data Name="string3">RevocationStatusUnknown: The revocation function was unable to check revocation for the certificate.
</Data>
</EventData>
</Event>Hi Darren,
This problem seems to occur when an administrator deletes the local trust relationship of the farm from the Security section of the Central Administration website
In order to resolve this problem, the local trust relationship has to be created. This can be done by running the following PowerShell commands
$rootCert = (Get-SPCertificateAuthority).RootCertificate
New-SPTrustedRootAuthority -Name "localNew" -Certificate $rootCert
After running the above commands, perform an IISReset on all servers in the farm.
More information:
http://support.microsoft.com/kb/2545744
Best Regards,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
How can I use the Connection Pool with DB2
Hi All,
I am facing the problem with the usage for the Connection Pool.
I want to use DB2 via JNDI lookup.
But when starting the Weblogic server, Error occured with the following message.
<Error> <JDBC> <Cannot startup connection pool "MyJDBCPool" Cannot load driver class : com.ibm.db2.jdbc.app.DB2Driver>
DB2 and Weblogic are on the same machine.
In case of the use of remote DB2 database, I also encountered the same error.
Configurations are as follows.
<JDBCConnectionPool DriverName="com.ibm.db2.jdbc.app.DB2Driver"
MaxCapacity="10" Name="MyJDBCPool"
Password="{3DES}gCGsOfD9M6iwOtgL2v/NpA==" Targets="myserver"
TestConnectionsOnReserve="false" TestTableName="test" URL="jdbc:db2://localhost:6789/yongjoo"/>
<SNMPAgent Name="mydomain"/>
<JDBCDataSource JNDIName="acsdb" Name="acsdb" PoolName="MyJDBCPool" Targets="myserver"/>
Could you please give some information about this problem? I will appreciate your kindness.Hi Joe,
Thanks your help.
Perhaps It's my fault for Weblogic console's setting.
After I reset the target server in console, Error message disappeared.
But, when I call the TestCode, I encountered another error message. The error
is NameNotFoundException.
When lookingup the JNDI name, NameNotFoundException errer occured. I tried to
change my setting and JNDI name, but the results are the same.
Would you please give me some information about this one more time? I will be
appreciated for your help.
Follows are Config.xml
<JDBCConnectionPool DriverName="com.ibm.db2.jdbc.app.DB2Driver" MaxCapacity="10"
Name="MyJDBCPool" Password="{3DES}gCGsOfD9M6iwOtgL2v/NpA==" Targets="myserver"
TestConnectionsOnReserve="false" TestTableName="test"
URL="jdbc:db2://localhost:6789/yongjoo"/> <SNMPAgent Name="mydomain"/>
<JDBCDataSource JNDIName="acsdb" Name="acsdb" PoolName="MyJDBCPool"
Targets="myserver"/>
and follows are TestCode,
url = "t3://localhost:7001"; //default URL
datasource = "jdbc/acsdb";
Context ctx = null;
Hashtable p = new Hashtable();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, url);
try{
ctx = new InitialContext(p);
System.err.println("initialContext(p)"+ctx); <-- success
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/acsdb");
}catch(NameNotFoundException ne){
throw new ConnectionException(); .
}catch(NamingException ne){
throw new ConnectionException(); -
Clustering CIFS for *existing* NSS pools: Howto?
Hi.
I found several documents stating this one:
"Once the CIFS protocol is enabled for the shared pool the load and unload script
files will get automatically modified to handle the CIFS service."
e.g. http://tinyurl.com/OES-2SP2CIFS and the docu file_cifs_lx.pdf
Currently CIFS is installed and running on both nodes of this cluster.
I can access the CIFS shares, login of users through the CifsProxyUsers is OK
addressing the ClusterNode, that currently has the NSS volumes mounted.
What I cannot figure out is how to create a appropriate vitual server object, and
what lines need to be added to the corresponding cluster ressource of the NSS
volumes I need to share using CIFS.
Who could point me towards more detailed documentation, or, provide some example
load / unload scripts from his/her environment?
TIA, regards, Rudi.Hi.
I still fail to "cluster" the CIFS functionality.
BTW: Accessing \\node02-w\ works fine, this is shared, accessible through *ANY* ip
currently active on that node. Propably that's the issue, because the ports are
occupied, even if I add another, new secondary.IP? But if rcnovell-cifs is not
running, the load script line doesn't work either??
Did I get correctly,
- that rcnovell-cifs has to *run* on all designated CIFS cluster nodes?
- that the line ...
novcifs --add --vserver=.cn=NW06.o=MAIN.t=TREE. --ip-addr=10.27.1.51
... will add the resource to the virtual server NW06, so that
it will service it using CIFS?
Any further suggestions appreciated, regards, Rudi.
more details: This is what /var/log/cifs/cifs.log presents:
rcnovell-cifs running, then executing the line above: (each line shows up 2x, why?)
CRITICAL: BROWSER: Bind is failed for virual server ip: System Error No= 98
CRITICAL: NBNS: Bind is failed for virual server ip =10.27.1.51: System Error No = 98
CRITICAL: NBNS: Socket creation and binding for virtual server failed
nmap for 10.27.1.51
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
139/tcp open netbios-ssn
adding another secondary ipaddress first doesn't make it work either:
.. /opt/novell/ncs/lib/ncsfuncs
add_secondary_ipaddress 10.27.99.51
novcifs --remove --vserver=.cn=NW06.o=MAIN.t=TREE. --ip-addr=10.27.99.51
cifs.log:
CRITICAL: ENTRY: Not Able To Conntect To Server 10.27.99.51
CRITICAL: ENTRY: Not Able To Conntect To Server 10.27.99.51
ERROR: CLI: CIFS: Server fdn .cn=NW06.o=Main.t=Tree. and server_name has already
been added
for that additional sec.IP ports look the same:
nmap: 10.27.99.51
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
139/tcp open netbios-ssn -
Outlook 2010 randomly asking for password
I know this is a frequent complaint, but I have not found a viable solution to stop this problem.
I am using Outlook 2010 on Windows 8.1 (with all the latest updates)
About a month ago, Outlook started to randomly ask for the username and password on two of my accounts.
I have tried all the solutions that I could find, but none work.
I have 3 accounts set up, 1 for me on a POP account with Verizon, a 2nd for my wife also with Verizon, and a 3rd is an IMAP for work.
I do not have a problem with the work account, but the 2 POP accounts randomly ask for the username/password and by the time I press OK will fail. Sometimes the scheduled send/receive works fine.
There were no credentials set up for these accounts (I have tried adding it and later removed it since it did not help)
I have tried removing the profile and readding as well as removing and adding the accounts again (using the same .pst files), losing my calendar in the process by the way.
If I manually initiate the send/receive, it usually works fine (I may have seen it ask for the PW once or twice)
The usernames and passwords are set up correctly and all the right boxes are checked.
I even set up groups so that the 3 accounts are scheduled at different intervals and the IMAP account only receives mail from the inbox without checking subscriptions and sends.
Any help would be appreciated,
KenHi Ken,
Have you ever tried to clean the credential history cached in Windows Credential Manager? Sometimes incorrect credential cached in Credential Manager will result in this kind of issues:
Go to Control Panel, and then click Credential Manager.
Locate the set of credentials that has Outlook in the name.
Click the name to expand the set of credentials, and then click Remove from Vault.
For more steps to troubleshoot this kind of issue, you can refer to this ForumFAQ thread:
https://social.technet.microsoft.com/Forums/en-US/bcd2d9c2-1a1b-4446-bf32-69fee8cdf11b/why-does-outlook-keep-prompting-for-password?forum=outlook
Hope this helps.
Regards,
Ethan Hua
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
I was attempting to create a user at this site:
http://www.samsunggalaxys3forum.com/forum/register.php?do=addmember
It asks a "random" questions "Floors are horizontal, walls are ___?" When I hit submit, it returns an error that the answer was wrong. I tried several times using my macbook running firefox.
I get to work, where I am using an intel based machine running Windows 7, IE 9 and am able to register on the site and answer the question with no problem.
I have had the same problem on sites that use captcha - I cannot get past inputting the captcha phrase, as it returns an error every time, while using IE9 is problem free.
Is there something wrong with my setup of Firefox?The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us! -
Convert to Question Pool random questions?
We are updating a course we developed last year (prior to
Captivate 3). This year we want to apply Captivate 3's "Question
Pool random questions" to this course. Is there a way to create the
question pool(s) in this existing quiz, and then add last year's
questions to them without having to re-enter each question into the
Question Pool Manager?
Thank you for any tips!Hi Jan
Sure thing. Just convert the version 1 or 2 project to a
version 3 project. Then define a Question Pool. Once you have done
that, switch to Storyboard view. Select the question slides you
wish to add to the pool and right-click. You should be presented
with an option to add the selected slides to the pool.
Once you have moved the question slides to a pool, you would
then insert Random slides that point to the pool.
Cheers... Rick -
Questions are not randomizing in question pool
I have 30 questions in my question pool. I have 10 random question slides but everytime I go to quiz, the same 10 questions come up. I need help in troubleshooting this, please.
Once you launch a module and it sets up the specific questions that will be selected from the pool for that session, those are the only 10 questions you are going to see, no matter how many times you hit the Retake Quiz button. That is normal behaviour.
However, if you close down the module entirely and relaunch again at a later time, in theory you should stand a chance of seeing at least some different quiz questions. If you are consistently seeing EXACTLY THE SAME set of 10 quiz questions even after completely closing down and relaunching the session again, then that would be regarded as a randomization failure and you should report the bug to Adobe. -
Random Questions not selecting Pool
Intermittently, a pool question is bypassed in Cap6.
I have 3 random questions slides, each linked to one of three pools. I named each question Q1P1, Q2P1, etc. for tracking purposes. Not all pools are having questions used.
Has anyone else been able to ensure that each pool has a question used (which is what the random question slide linked to a pool did)?
Thanks in advance for any help you can give on this issue.
Lew.Thanks Rod. I tried both of your recommendations, and it seemed to work on my system. But, on another system, it was specifically NOT random for the pools. It seemed to randomize the questions, just not the pools.
Here are the test results from the other system:
Try 1
Q1 Pool 1
Q2 Pool 2
Q3 Pool 1
Try 2
Q1 Pool 2
Q2 Pool 1
Q3 Pool 1
Try 3
Q1 Pool 3
Q2 Pool 3
Q3 Pool 2
Try 4
Q1 Pool 1
Q2 Pool 2
Q3 Pool 2
Any ideas?
Lew -
Setting up a cluster for the first time: newbie questions
Any help appreciated with this situation:
I'm trying to set up a cluster for the first time and running into
issues (no big surprise). I'll outline my situation and pose questions
as they arise. If/when I get things to work I'll post a step-by-step
summary of what it took to get a simple cluster going.
Here's what I have:
machines:
1 Windows 2000 machines with WL 6.1
2 RedHat Linux machines with WL 6.1
All machines are on the same Home LAN, can see each other, etc.
IP addresses are:
Windows box: 192.168.1.100
Linux box 1: 192.168.1.102
Linux box 2: 192.168.1.103
servers:
I've set up the Windows machine as my admin server, and set up
a managed server on each Linux machine. I created a cluster that consists
of the 2 Linux machines and deployed the web app and EJB to the cluster.
The Windows machine is acting as a Proxy using ClusterServlet.
The web application has been set as the Default Web Application on the
two Linux machines. All 3 machines are listening on ports 80/443. I also
set up session memory replication through the console.
Application:
I have an application that I package as an EAR file. I'm using it as a
"reference" application designed to mimic a real world app as much as possible.
The EAR file contains a web application that uses Struts. It also consists
of a single Stateless Session Bean. The WAR file and EJB Jar are all
packaged up into the EAR file. I've been able to run this application just
fine on a single managed server on all 3 machines.
The web application works fine, and it can invoke the EJB. I can also
invoke the EJB from Java stand-alone clients. Struts works great. All is
well with the world. Now I'm trying to "cluster-ize" this app using
the environment described above and encountering issues.
I've read the docs and followed the instructions according to the
"Weblogic Bible" book. I can bring up all 3 servers and the Linux
managed servers connect to the cluster just fine. I can also
see the Struts messages in their logs which normally happens and tells me
the webapp is initialized properly. The console tells me that the managed
servers are running. I get no error messages starting up any of the serves.
Here are the problems I am encountering.
When I try to access the Web Application (through a browser on the
Windows machine using http://localhost) I get the following error message:
<Nov 19, 2002 6:44:33 AM EST> <Error> <HTTP> <HttpServer(1754841,null default ct
x,admin) found no context for "/". This request does not match the context path
for any installed web applications and there is no default web application confi
gured.>
Also, when I try to invoke the EJB through a stand-alone Java client,
I get a JNDI lookup error on the EJB's home interface.
Questions:
Question1: I noticed when setting up the machines that console lets you
define a "Machine" or a "Unix Machine". What's the difference? Should I
define the Linux machines as Unix machines or machines, and what are the
consequences of either choice?
Question2:
I'm not totally clear on how my web.xml should look to set up Struts,
the ClusterServlet, and a servlet filter I'm using to test Servlet filters.
Here is what I had before I tried to cluster and which works fine:
<filter>
<filter-name>MainFilter</filter-name>
<filter-class>com.refapp.servlets.MainFilter</filter-class>
<init-param>
<param-name>myAttribute</param-name>
<param-value>Foo</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MainFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping
<!-- Struts ActionServlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>refappstruts</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>mapping</param-name>
<param-value>org.apache.struts.action.RequestActionMapping</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.do</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
(I have set up a "dummy" 0-length file called index.do that triggers
Struts to go into its ActionServlet when first accessing the web site).
Here is how I added ClusterServlet to web.xml:
servlet>
<servlet-name>ClusterServlet</servlet-name>
<servlet-class>weblogic.servlet.internal.HttpClusterServlet</servlet-class>
<load-on-startup>0</load-on-startup>
<init-param>
<param-name>defaultServers</param-name>
<param-value>192.168.1.102:80:443|192.168.1.103:80:443</param-value>
</init-param>
<init-param>
<param-name>DebugConfigInfo</param-name>
<param-value>ON</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>InitServlet</servlet-name>
<url-pattern>/servlet/InitServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClusterServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClusterServlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClusterServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClusterServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
Clearly there is a problem with the Default Web application not being
seen/mapped properly. Any chances my URL mappings for the filter servlet,
Struts, and ClusterServlet are stepping on each other?
With respect to the EJB, here is what my weblogic-ejb-jar looks like:
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Hello</ejb-name>
<stateless-session-descriptor>
<pool>
<max-beans-in-free-pool>100</max-beans-in-free-pool>
</pool>
<stateless-clustering>
<stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
<stateless-bean-load-algorithm>
round-robin
</stateless-bean-load-algorithm>
<stateless-bean-methods-are-idempotent>
true
</stateless-bean-methods-are-idempotent>
</stateless-clustering>
</stateless-session-descriptor>
<jndi-name>Hello.Home</jndi-name>
</weblogic-enterprise-bean>
I run this through ejbc and package everything up into the EAR file.
However, I get a JNDI lookup failure when I try to access the Bean from
a standalone Java client running on the Windows machine.
Here is the jndi.properties file that I am using:
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
java.naming.provider.url=t3://localhost:80
Any ideas what I'm doing wrong here? I can post config.xml also if needed.
Thanks in advance!
Let me try to answer :)....
A1> No need to name diff machines by default weblogic
considers the servers are physically located in diff boxes.
The names are used to differtiate the mang servers which are in
multihomed
Some things to chk
1> Did u targeted the ear file Target as cluster.
2> Can u see on the Admin console that both the man servers
are participated in the cluster( u can see by clicking the monitoring
tab on the Cluster node).
3>Is the URL:PORT for the default web app correct?
the reason: is I dont see the port# on the link u mentioned
4> probably ur ejb might not been deployed on the target thats the
reason u cant access thru java client. If u correct the targets that
will probably fix it.
Hope this helps
Please post the result
Thanks
Sudhir
[email protected] (Chris) wrote in message news:<[email protected]>...
> Any help appreciated with this situation:
> I'm trying to set up a cluster for the first time and running into
> issues (no big surprise). I'll outline my situation and pose questions
> as they arise. If/when I get things to work I'll post a step-by-step
> summary of what it took to get a simple cluster going.
> Here's what I have:
>
> machines:
> 1 Windows 2000 machines with WL 6.1
> 2 RedHat Linux machines with WL 6.1
> All machines are on the same Home LAN, can see each other, etc.
> IP addresses are:
> Windows box: 192.168.1.100
> Linux box 1: 192.168.1.102
> Linux box 2: 192.168.1.103
>
> servers:
> I've set up the Windows machine as my admin server, and set up
> a managed server on each Linux machine. I created a cluster that consists
> of the 2 Linux machines and deployed the web app and EJB to the cluster.
> The Windows machine is acting as a Proxy using ClusterServlet.
> The web application has been set as the Default Web Application on the
> two Linux machines. All 3 machines are listening on ports 80/443. I also
> set up session memory replication through the console.
>
> Application:
> I have an application that I package as an EAR file. I'm using it as a
> "reference" application designed to mimic a real world app as much as possible.
> The EAR file contains a web application that uses Struts. It also consists
> of a single Stateless Session Bean. The WAR file and EJB Jar are all
> packaged up into the EAR file. I've been able to run this application just
> fine on a single managed server on all 3 machines.
> The web application works fine, and it can invoke the EJB. I can also
> invoke the EJB from Java stand-alone clients. Struts works great. All is
> well with the world. Now I'm trying to "cluster-ize" this app using
> the environment described above and encountering issues.
>
> I've read the docs and followed the instructions according to the
> "Weblogic Bible" book. I can bring up all 3 servers and the Linux
> managed servers connect to the cluster just fine. I can also
> see the Struts messages in their logs which normally happens and tells me
> the webapp is initialized properly. The console tells me that the managed
> servers are running. I get no error messages starting up any of the serves.
>
> Here are the problems I am encountering.
>
> When I try to access the Web Application (through a browser on the
> Windows machine using http://localhost) I get the following error message:
>
> <Nov 19, 2002 6:44:33 AM EST> <Error> <HTTP> <HttpServer(1754841,null default ct
> x,admin) found no context for "/". This request does not match the context path
> for any installed web applications and there is no default web application confi
> gured.>
>
> Also, when I try to invoke the EJB through a stand-alone Java client,
> I get a JNDI lookup error on the EJB's home interface.
>
> Questions:
> Question1: I noticed when setting up the machines that console lets you
> define a "Machine" or a "Unix Machine". What's the difference? Should I
> define the Linux machines as Unix machines or machines, and what are the
> consequences of either choice?
>
> Question2:
> I'm not totally clear on how my web.xml should look to set up Struts,
> the ClusterServlet, and a servlet filter I'm using to test Servlet filters.
> Here is what I had before I tried to cluster and which works fine:
>
> <filter>
> <filter-name>MainFilter</filter-name>
> <filter-class>com.refapp.servlets.MainFilter</filter-class>
> <init-param>
> <param-name>myAttribute</param-name>
> <param-value>Foo</param-value>
> </init-param>
> </filter>
>
> <filter-mapping>
> <filter-name>MainFilter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping
>
>
> <!-- Struts ActionServlet Configuration -->
> <servlet>
> <servlet-name>action</servlet-name>
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>
> <init-param>
> <param-name>application</param-name>
> <param-value>refappstruts</param-value>
> </init-param>
>
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/struts-config.xml</param-value>
> </init-param>
>
> <init-param>
> <param-name>debug</param-name>
> <param-value>2</param-value>
> </init-param>
>
> <init-param>
> <param-name>mapping</param-name>
> <param-value>org.apache.struts.action.RequestActionMapping</param-value>
> </init-param>
> <load-on-startup>2</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>action</servlet-name>
> <url-pattern>*.do</url-pattern>
> </servlet-mapping>
>
> <welcome-file-list>
> <welcome-file>index.do</welcome-file>
> <welcome-file>index.jsp</welcome-file>
> <welcome-file>index.html</welcome-file>
> </welcome-file-list>
>
> (I have set up a "dummy" 0-length file called index.do that triggers
> Struts to go into its ActionServlet when first accessing the web site).
>
> Here is how I added ClusterServlet to web.xml:
>
> servlet>
> <servlet-name>ClusterServlet</servlet-name>
> <servlet-class>weblogic.servlet.internal.HttpClusterServlet</servlet-class>
> <load-on-startup>0</load-on-startup>
> <init-param>
> <param-name>defaultServers</param-name>
> <param-value>192.168.1.102:80:443|192.168.1.103:80:443</param-value>
> </init-param>
> <init-param>
> <param-name>DebugConfigInfo</param-name>
> <param-value>ON</param-value>
> </init-param>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>InitServlet</servlet-name>
> <url-pattern>/servlet/InitServlet</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping>
> <servlet-name>action</servlet-name>
> <url-pattern>*.do</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping>
> <servlet-name>ClusterServlet</servlet-name>
> <url-pattern>/</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping>
> <servlet-name>ClusterServlet</servlet-name>
> <url-pattern>*.html</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping>
> <servlet-name>ClusterServlet</servlet-name>
> <url-pattern>*.jsp</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping>
> <servlet-name>ClusterServlet</servlet-name>
> <url-pattern>*.do</url-pattern>
> </servlet-mapping>
>
>
> Clearly there is a problem with the Default Web application not being
> seen/mapped properly. Any chances my URL mappings for the filter servlet,
> Struts, and ClusterServlet are stepping on each other?
>
> With respect to the EJB, here is what my weblogic-ejb-jar looks like:
>
> <weblogic-ejb-jar>
> <weblogic-enterprise-bean>
> <ejb-name>Hello</ejb-name>
> <stateless-session-descriptor>
> <pool>
> <max-beans-in-free-pool>100</max-beans-in-free-pool>
> </pool>
> <stateless-clustering>
> <stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
> <stateless-bean-load-algorithm>
> round-robin
> </stateless-bean-load-algorithm>
> <stateless-bean-methods-are-idempotent>
> true
> </stateless-bean-methods-are-idempotent>
> </stateless-clustering>
> </stateless-session-descriptor>
> <jndi-name>Hello.Home</jndi-name>
> </weblogic-enterprise-bean>
>
> I run this through ejbc and package everything up into the EAR file.
> However, I get a JNDI lookup failure when I try to access the Bean from
> a standalone Java client running on the Windows machine.
> Here is the jndi.properties file that I am using:
>
> java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
> java.naming.provider.url=t3://localhost:80
>
> Any ideas what I'm doing wrong here? I can post config.xml also if needed.
>
> Thanks in advance!
Maybe you are looking for
-
I am trying to find a list of bookmarks in Profiles SQ.lite, but none show up
I deleted bookmarks today by mistake and was hoping to recover them. To this end, I was looking at the instructions on how to find my profile. When I selected bookmarkbackups it shows folders that are not able to be opened with any application I have
-
How to restrict values in one prompt based on value from another prompt
Hi I have a requirement as follows. I have two fields (objects) program code contract number one program code can have several contract numbers. I need to provide prompts on Program code and contract number. when user selects one program from
-
Automatic Payments (F110), Steps Needed
Gurus, Needed are the steps for F110 (Auto Payments). Kindly enumerate and explain. Thanks.
-
PP CS5 doesn't see MB Looks 2.5?
I'm running CS5 Suite: I recently upgraded to Red Giant Color Suite / Magic Bullet Looks 2.5. At first, PP was seeing this suite. I flew it into a short project in PP. I got the red line above the video track, then press the edit key to render the sh
-
TS3276 i can send email but cannot receive email using hotmail
i am unable to revieve messages on my imac from my hotmai account i recieve my emails on my ipad and iphone and i can send emails from my imac