Problem working with Sun PKCS#11 provider - CKR_USER_NOT_LOGGED_IN

Hi I was trying out the new Sun PKCS#11 provider in J2SE1.5 RC, I am not able to generate RSA certificate and store into the pkcs#11 device (HSM) keystore.
Bellow is the command I gave
java sun.security.tools.KeyTool -genkey -keystore NONE -storetype PKCS11 -genkey -v -alias "acs_visa_server" -keyalg "RSA" -sigalg "SHA1WithRSA" -keysize "1024" -validity "800" -dname "cn=192.168.1.1,ou=Test Technology,o=Test Ltd.,l=Test,S=Test,c=IN"
The output is like this
Enter keystore password: 1234
Generating 1,024 bit RSA key pair and self-signed certificate (SHA1WithRSA)
for: CN=192.168.1.1, OU=Test Technology, O=Test Ltd., L=Test, ST=Test, C=IN
keytool error: java.security.KeyStoreException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_USER_NOT_LOGGED_IN
And is there a way to manage Private Keys i.e., store/delete/exprot to keystore using java code. Thanks in advance for the help.

I am a developer :-), The hsm vendor has just implemented the pkcs#11 dll compliant with PKCS#11 V 2.10. And I am able to access the tokens and generate the keys using there tools written in c++.
It looks like I need to give the user�s pin for the slot and don't know how to provide it. I even tried to do programmatically. Bellow is the code
//--------------- main code -----
char pin[] = "1234".toCharArray();
          KeyStore ks = KeyStore.getInstance("PKCS11", providerName);
          ks.load(null, pin);
          try {
               MyGuiCallbackHandler mcb = new MyGuiCallbackHandler();
               AuthProvider aprov = (AuthProvider)Security.getProvider("SunPKCS11");
               aprov.login(null, mcb);
          } catch (Exception e) {
               System.out.println("Error in login : "+e);
               //return;
String args1[] = new String[]{"-genkey", "-keystore", "NONE", "-storetype", "PKCS11",
               "-genkey", "-v", "-alias", "cert_alias", "-keyalg", "RSA", "-sigalg", "SHA1WithRSA",
               "-keysize", "1024", "-validity", "800", "-dname",
               "cn=192.168.1.1,ou=test,o=test Ltd.,l=test,S=test,c=IN"};
          sun.security.tools.KeyTool.main(args1);
//--------------- help class -----
class MyGuiCallbackHandler implements CallbackHandler {
     public void handle(Callback[] callbacks)
               throws IOException, UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {
if (callbacks[i] instanceof TextOutputCallback) {
// display the message according to the specified type
TextOutputCallback toc = (TextOutputCallback)callbacks;
switch (toc.getMessageType()) {
case TextOutputCallback.INFORMATION:
System.out.println(toc.getMessage());
break;
case TextOutputCallback.ERROR:
System.out.println("ERROR: " + toc.getMessage());
break;
case TextOutputCallback.WARNING:
System.out.println("WARNING: " + toc.getMessage());
break;
default:
throw new IOException("Unsupported message type: " +
toc.getMessageType());
} else if (callbacks[i] instanceof NameCallback) {
// prompt the user for a username
NameCallback nc = (NameCallback)callbacks[i];
// ignore the provided defaultName
System.err.print(nc.getPrompt());
System.err.flush();
nc.setName((new BufferedReader
(new InputStreamReader(System.in))).readLine());
} else if (callbacks[i] instanceof PasswordCallback) {
// prompt the user for sensitive information
PasswordCallback pc = (PasswordCallback)callbacks[i];
System.err.print(pc.getPrompt());
System.err.flush();
pc.setPassword(readPassword(System.in));
} else {
throw new UnsupportedCallbackException
(callbacks[i], "Unrecognized Callback");
     // Reads user password from given input stream.
     private char[] readPassword(InputStream in) throws IOException {
System.out.println(:"Sending pin has 9876");
return "9876".toCharArray();
And this is the output
Error in login : java.lang.NullPointerException
Generating 1,024 bit RSA key pair and self-signed certificate (SHA1WithRSA)
for: CN=192.168.1.1, OU=test, O=test., L=test, ST=test, C=IN
keytool error: java.security.KeyStoreException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_USER_NOT_LOGGED_IN
Thanks again

Similar Messages

  • ASP application has problems working with oracle database 8.1.7

    ASP application has problems working with oracle database 8.1.7 through both oracle ODBC driver and Microsoft ODBC driver
    We have an ASP application running on Windows 2000 server, and with 8.1.7 Net8Client and MDAC 2.6 SP1.
    The application worked fine with an Oracle 8.0.5 database.
    After upgrading oracle database to 8.1.7.0.0, our ASP application works fine except when updating the same data record more than once. The application is not saving our updates.
    We tested our application using Oracles ODBC driver v8.1.7.5.0
    and experienced more problems. We had problems just bring up our data entry pages. In either case, we are returned with some 505 errors in our browser, problems with the ASP pages and IIS, the page is not displaying.
    If anyone has some suggestions on how to fix my problem, please advise. Thanks in advance.

    thanks...i saw one article with this approach..but the document did not present the detailed process...do you have one? i am still searching for a good procedure to follow...since it is an old database and focusing/studying old versions like this is a pain in the a**... :(

  • Vrml browsers that work with sun java in windows

    Hi, i was wondering if anyone knew any good vrml browsers that worked with sun java in microsoft windows, I tried cortona but that only used microsoft's jvm which was discontinued and i wanted to avoid. I am currently trying to use cosmo player but am having troubles with it. Im specifically looking for good vrml api's that come with the browsers containing up to date available source code etc.
    Thanks
    Andy

    Is there noone on this site that uses VRML?

  • Every time I use the internet the pages keep reloading every 10-20 seconds. worked with my internet provider for over a year thinking it was their fault, but it turns out it's my computer. Can anybody help? Thanks.

    Every time I'm using the internet, my pages reload every 10-20 seconds. Very aggravating. I worked with my internet provider for a year thinking it was their fault, but it turns out to be my computer, not the internet provider. Can anybody tell me why this is happening? Thank you.

    Hi Mary,
    Open Console in Applications>Utilities & see if there are any clues or repeating messages when this happens.

  • Please could you tell me what DLT/SDLT/Ultrium series drive works with Sun Fire V880 with SCSI Sun X

    Please could you tell me what DLT/SDLT/Ultrium series drive works with Sun Fire V880 with SCSI Sun X6540A?
    The question is URGENT because we need to do backup/restore of our Databases but we have not backup device...
    We want to buy it but we don't know what exactly drives we can choose for our Sun with X6540A SCSI card.

    Hello,
    the X6540A is a Dual Single-Ended Ultra/Wide SCSI (PCI) controller. The controller is only upto 40MB/sec, which might be suficient for a SDLT600 or LTO-2.
    Every Single-Ended SCSI device works with this card, <b>but</b> performance would be low when using LVD/SE devices (some LVD devices can't operate in SE mode!)
    I would suggest that you call Sun Sales.
    I guess that the <b>PCI/PCI-X Dual Ultra320 SCSI Adapter</b> (SG-XPCI2SCSI-LM320) or <b>PCI Dual Ultra3 SCSI Host Adapter (LVD)</b> (X6758A) are a better choice if attaching more recent drives.
    This is the <b> Sun Fire V880 - Full Components List</b>.
    Michael

  • Does jsfexcelcreator work with Sun jsf RI 1.1

    hi ,
    i want to export a datatable into excel file, i tried jsfexcelcreator tool with window.open('consultation_poste.jsp?tableId=table1')
    but it does not work.
    i read that jsfexcelcreator work with JSF 1.2, but does it work with Sun jsf RI 1.1?
    thank you for any help

    hi,
    yes, it work now, the 2 jars were not in lib folder .
    thank you very much for your help.
    a last question please.
    when i run the application with the ip adress example:
    http://111.222.11.22/context/page.faces
    the export work well.
    but when i use a DNS name example:
    http://machine_name/context/page.faces
    it does not open excel file.
    do you have any idea?
    regards
    hmm that should work. can you also check these?
    - jakarta-poi.jar under lib folder
    - id of the table is equal to table1
    - and a double-check for jsfexcelcreator.jar under lib folder :)

  • Do cellular ipads work with any network provider and in any country?

    Do cellular ipads work with any network provider and in any country?
    What are the technical specifications that must be checked for knowing the working availability of cellular ipads (purchased from Amazon) in any country?
    Thank you.

    Hi there Ahmad Moustafa,
    You may find the information in the article below helpful.
    iPhone and iPad: Using cellular networks while in another country
    http://support.apple.com/kb/ht1807
    Many carriers offer international voice and data plans. Always contact your current carrier for details about international-roaming countries, SIMs, rates, and policies before you travel to another country. While you may not need an international plan to use voice or data roaming on your iPhone or iPad, your carrier may charge additional fees or higher data rates if you don't have an international plan.
    -Griff W. 

  • Problem with Sun PKCS#11 Provider and Ativcard smart card.

    Hi,
    I'm trying to make a signature with a smartcard.
    I have no problem signing with my card in applications such as Microsoft Office, Outlook (they probably use CAPICOM or MS CryptoAPI).
    There is only one certificate on my card with non extractable pair of keys.
    When I`m using Java based application I have the following problem:
    I have Java 1.5.0 installed, and according to the reference guide on:
    http://java.sun.com/j2se/1.5.0/docs/guide/security/p11guide.html
    I configured "Sun PKCS#11 Provider".
    In file:
    %JAVA_HOME%/lib/security/java.security I inserted the following lines:
    # Configuration for security providers 1..6 omitted
    security.provider.7=sun.security.pkcs11.SunPKCS11 C:/pkcs11.cfg
    In my case (I`m using ActivCard) The file "C:/pkcs11.cfg" contains:
    name = ActivCard
    library = c:\windows\system32\acpkcs211.dll
    After that I try tu use configured provider with keytool.exe from jsdk.
    In cmdline:
    c:\Program Files\Java\jdk1.5.0_06\bin>keytool.exe -keystore NONE -storetype PKCS11 -list
    Enter keystore password:  1111
    Keystore type: PKCS11
    Keystore provider: SunPKCS11-ActivCard
    Your keystore contains 1 entry
    Cinek's dp ID, keyEntry,
    Certificate fingerprint (MD5): 36:19:DD:01:2E:A2:C5:F6:51:44:03:74:14:D5:62:C0
    So till now everything looks ok. Certificate is accessible.
    But when I trying to use jarsigner.exe to sign something:
    c:\Program Files\Java\jdk1.5.0_06\bin>jarsigner.exe -keystore NONE -storetype PKCS11 D:\Applet.jar "Cinek's dp ID"
    Enter Passphrase for keystore: 1111
    jarsigner error: java.lang.NullPointerException
    I`ve got the java.lang.NullPointerException !
    To find reason of the exception I`ve written simple application, which signs a byte array:
    import java.security.KeyStore;
    import java.security.PrivateKey;
    import java.security.PublicKey;
    import java.security.Signature;
    import java.security.cert.Certificate;
    import java.util.Enumeration;
    public class Main {
         public static void main(String[] args) throws Exception {
              PrivateKey privkey = null;
              char[] pin = { '1', '1', '1', '1' };
              KeyStore smartCardKeyStore = KeyStore.getInstance("PKCS11");
              smartCardKeyStore.load(null, pin);
              Enumeration aliasesEnum = smartCardKeyStore.aliases();
              if (aliasesEnum.hasMoreElements()) {
                   String alias = (String) aliasesEnum.nextElement();
                   privkey = (PrivateKey) smartCardKeyStore.getKey(alias, null);
                   byte[] aDocument = new byte[100];
                   Signature signatureAlgorithm = Signature.getInstance("SHA1withRSA");
                   signatureAlgorithm.initSign(privkey);
                   signatureAlgorithm.update(aDocument);
                   byte[] digitalSignature = signatureAlgorithm.sign();
    When I`ve run this application in last line in method signatureAlgorithm.sign() I got:
    Exception in thread "main" java.lang.NullPointerException
         at java.math.BigInteger.modPow(Unknown Source)
         at sun.security.rsa.RSACore.crtCrypt(Unknown Source)
         at sun.security.rsa.RSACore.rsa(Unknown Source)
         at sun.security.rsa.RSASignature.engineSign(Unknown Source)
         at java.security.Signature$Delegate.engineSign(Unknown Source)
         at java.security.Signature.sign(Unknown Source)
         at Main.main(Main.java:31)
    In debug, before this exception variables are:
    alias= "Cinek's dp ID"
    privkey =
    SunPKCS11-ActivCard RSA private key, 1024 bits (id 192168768, token object, not sensitive, extractable)
      modulus:          112271510887039102410124262012976131016781096451891854145879061791454872222254764386718257162446565027910080375427552248069203548913907633164297672417327888344423061606707834842776634133861005271620794248782338105033496749719965719732501903618453514554701005390412127008091861831421936757053019877456102263703
      public exponent:  65537
      private exponent: null
      prime p:          null
      prime q:          null
      prime exponent p: null
      prime exponent q: null
      crt coefficient:  null
    As you can see, private key has extractable attribute set, what is wrong. Attribute is set and key has no values.
    I think that can be the reason of NullPointerException. (Maybe when extractable = true, sign() methods expects key values filled).
    So, I can not sign anything.
    I tryed to add some additional attributes to file "C:/pkcs11.cfg":
    attributes(*,CKO_PRIVATE_KEY,*) = {
      CKA_EXTRACTABLE = false
    but with no effect. Key was still extractable.
    Can you help me to solve this problem?
    PS. I`m using acpkcs211.dll (v3.2.102.0) as an implementation of PKCS#11. (Activcard says that it is PKCS#11 v2.11 implementation)
    PS2. Sorry for my english

    Can I ask you one question?
    Which driver did you specify? I mean the smarcard reader driver or the smartcard itself driver?
    If the second, does it come along with the card? because as far as I know I just got the smart card but no software at all (apart the smartcard reader driver).
    Can you help me out with this?
    thanks in advance,
    Marco

  • Problem : App works with Sun App server 8.0 but fails with 8.1

    Hi All
         I am experiencing some strange problem with executing my JSF application with Sun App Server.
         I have an EAR deployed on Sun Application Server 8.0 and 8.1.
         Strangely it works quite fine with 8.0 but fails with 8.1.
         In my JSP page ..I have a dummy component whose getter method is used as a "FormLoad" event of the page.
         <h:form id="imageForm" enctype="multipart/form-data">
         <h:messages showDetail="true" />
         <table width="980" border="1" cellpadding="0" cellspacing="0" bordercolor="#A9B8C2">
              <tr>
    <td>     
                   <h:inputHidden value="#{Screen1.initializeService}"/>
              <h:selectOneListbox styleClass="style2" id="cmbMiddleArea" immediate="true" value="#{Screen1.selectedMiddleArea}">
              <f:selectItems value="#{Screen1.middleAreaList}" />
         </h:selectOneListbox>
         In my backing bean i have ..
         public String getInitializeService() {
              ..... Retrieve all the data from DB to initialize all the components on the JSP page
              .......setMiddleAreaList......
              .......setSelectedMiddleArea.....
              ........set the values of the individal component...
         I am retrieving all the data from DB in this getter method and intializing the components on the JSP page.
         I have also checked the code generated for JSP by both the servers.I am posting the code here for reference although
         i did not find any significant difference between the two...
         For Server 8.0
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{searchBean.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value.reuse(_jspx_th_h_inputHidden_0);
         return false;
         For Server 8.1
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         PageContext pageContext = jspxpage_context;
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value_nobody.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{searchBean.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value_nobody.reuse(_jspx_th_h_inputHidden_0);
         return false;
         Now the actual problem is "getInitializeService" method never gets called when i deploy and run the application on Sun App Server8.1
         However with Sun App Server 8.0 it woeks perfectly fine.
         Can anybody help me in resolving these issues ?
         

    Actually generated JSP code can be referred as ...
    For Server 8.0
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{Screen1.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value.reuse(_jspx_th_h_inputHidden_0);
         return false;
         For Server 8.1
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         PageContext pageContext = jspxpage_context;
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value_nobody.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{Screen1.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value_nobody.reuse(_jspx_th_h_inputHidden_0);
         return false;
         }

  • Problem working with JCA connector

              i downloaded one resouce adapter (for EIS of type database) from BEA bownloads.
              This resourse adapter is sopporting javax.sql.DataSource as the
              client interface.when i changed the interface to javax.resource.cci.ConnectionFactory,
              so that i can use cci API in my application it's not working.
              I am not sure wether support's CCI as client interface or not.
              please suggest me the solution asap,
              Any suggestions will be much appreciated.
              thanx,
              raghu.
              

    Raghu,
              Please explain what you mean when you say that you changed the downloaded RAR to have CCI client interfaces?
              -Rich
              raghu wrote:
              > hi rich,thanx for the immediate update.
              > here i am giving the complete problem desc.
              > I downloaded the recent connector from sun site.
              > And i am working with RevisedBlackBoxNoTxMain.rar
              > Client interfaces provided by that rar are javax.sql.DataSource, java.sql.Connection
              > and i changed them to javax.resource.cci.ConnectionFactory and
              > javax.resource.cci.Connection and created the .rar again.
              >
              > In my bean when i am refering to the adapter in my bean's method
              > its returning a com.sun.connector.blackbox.JdbadataSource object.
              > up to here it's fine.
              >
              > when i am trying to convert it using following code it's giving classcast exception.
              > code
              > -----
              >
              > javax.resource.cci.ConnectionFactory conFact= (ConnectionFactory)PortableRemoteObject.narrowhome,javax.resource.cci.ConnectionFactory.class);
              >
              > do i need to down load recent .rar file.
              > present one i got 10 days back.
              > please suggest me the solution asap,
              > thanx,
              > raghu.
              >
              > Richard Mousseau <[email protected]> wrote:
              > >Raghu,
              > >
              > > The provided Beta implementation is based upon the Early Adapter Sun
              > >version of J2EE
              > >Connector. As part of the Early Adapter version Sun did NOT provide a Resource
              > >Adapter
              > >that supported CCI. Therefore, the example Resource Adapter that we shipped
              > >does not
              > >implement CCI as the interface.
              > >
              > > Whether or not a Resource Adapter does or does not use CCI as its
              > >interface is of no concern to the Application Server implementation. The
              > >current Connector Beta implementation will support a Resource Adapter which
              > >implements CCI as well as a Resource Adapter which provides a proprietary
              > >interface.
              > >
              > > The only caveat to our CCI support in the Beta is that the current
              > >version of the Beta is based upon the Early Adapter Sun version and
              > >therefore we do not have the ConnectionSpec interface in our
              > >'Connector.jar' file.
              > >
              > > Therefore, if you have a Resource Adapter that supports CCI, and an
              > >EJB
              > >that wants to use it, then the resource-ref can have
              > >'javax.resource.cci.ConnectionFactory'.
              > >
              > > If you in fact have a CCI based resource adapter then your client EJB
              > >should be able
              > >to access it. If this is not the case, please provide us with the details
              > >on what error
              > >you are seeing.
              > >
              > >-Rich
              > >
              > >raghu wrote:
              > >
              > >> i downloaded one resouce adapter (for EIS of type database) from BEA bownloads.
              > >> This resourse adapter is sopporting javax.sql.DataSource as the
              > >> client interface.when i changed the interface to javax.resource.cci.ConnectionFactory,
              > >> so that i can use cci API in my application it's not working.
              > >> I am not sure wether support's CCI as client interface or not.
              > >> please suggest me the solution asap,
              > >> Any suggestions will be much appreciated.
              > >> thanx,
              > >> raghu.
              > >
              

  • Problem Working With Framemaker 9 Dita XML Files in Framemaker 10

    I just upgraded to Framemaker 10. I am encountering a number of problems when I try to work with my Dita XML help topics, which were last saved in Framemaker 9 format.
    1. Using the Default Dita Template
    When I open one of my documents in Framemaker 10, the Dita 1.2 template ditabase.fm is automatically applied. Everything seems fine. But then when I convert the XML to Eclipse help (which is essentially html, so we're going from XML to HTML) using Dita Open Toolkit ant scripts, I see this message:
    [pipeline] [DOTJ013E][ERROR] Failed to parse the referenced file 'html\c_licensing.xml' due to below exception. Please correct the reference base on the exception message.
    [pipeline] c_licensing.xml Line 25:Attribute "xmlns:ditaarch" must be declared for element type "dita".
    I then opened the xml  file in a text editor, and I saw this on line 25:
    <dita xmlns:ditaarch = "http://dita.oasis-open.org/architecture/2005/">
    Line 25 looks fine to me. Am I missing something? 
    2. Switching to a 1.1 Dita Template
    I tried to work around the above problem. In Framemaker, I tried to set a different structured application as the default one. I closed all files and chose the default Dita 1.1 structured application (it defaults to the Dita 1.1. Composite app.)
    Then I tried to open my file: I got this message inside Framemaker:
    "Validation of XML failed. Continue?
    Error at [FILE PATH], line 25, char 72, Message: Attribute '{http://www.w3.org/2000/xmlns/}ditaarch' is not declared for element 'dita'
    Sounds familiar, doesn't it?
    I switched from the default Dita 1.1. Composite structured application to the Dita 1.1. Topic structured application. Then I dirtied the source file and saved it. The messages I got in FrameMaker log window included the one above, plus I got a variety of Unknown Element messages, things like this:
    Unknown element dita,
    unknown element concept,
    various attributes are not declared for concept,
    unknown element conbody.
    If I switch back to the Dita 1.1 Composite application all of these messages diappear except for this one:
    Attribute '{http://www.w3.org/2000/xmlns/}ditaarch' is not declared for element 'dita'
    My ant conversion scripts from the Dita Open Toolkit are still unable to process this file. They give the same message as is listed in (1) above and the file is not converted to HTML.
    Can anyone help me with this problem? I've also posted this question to the Dita Users Group on Yahoo Groups. If I get an answer in one place, I'll post it in the other.
    Thanks,
    Nina P.

    I really appreciate all the help you are providing with this, Scott. I tried your latest suggestions. Here's what happened:
    Application Mappings:
    I figured out how to add my "BigPage" structured application to the Applications Mappings dialog. I made a new "BigPage"  mapping type, then figured out the non-intuitive part: how to add my individual BigPage topic types to it.  I closed and reopened FrameMaker opened my test document, and, as before (before I did the application mappings) I saw my BigPage applications listed in the Structure Tools > Set Structured Application drop-down. I selected the appropriate application (in this case it was DITA1.1-BigPage-Reference-FM and clicked the "Set" button. 
    It is at this point in Framemaker 9 (and also once, in FrameMaker 10, early in this process, but I haven't been able to replicate it since) that the page size would change to tabloid size, indicating that the document was using the template from the BigPage reference structured application, not the regular DITA1.1 reference application. But this did not happen.
    I tried saving the document, closing it, and reopening it. Once again the default structured application assigned to that document was "reset" to DITA1.1-Reference-FM.  But the fact that the page size did not immediate refresh to tabloid size told me that although I did select the BigPage application in the drop-down, it wasn't being applied.
    Public IDs:
    The public ID in my test reference XML file is:  <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd" [
    The four public IDs in the DITA1.1-BigPage-Reference-FM entry in structapps.fm (in the Entity Locations section) are:
    -//OASIS//DTD DITA Reference//EN 
    -//IBM//DTD DITA Reference//EN
    -//OASIS//DTD DITA Composite//EN
    -//IBM//DTD DITA Composite//EN
    Do you see anything wrong with the above? .
    Directory Structure: 
    Maybe I cloned the application incorrectly?  Here's what I did:
    1. In C:\Program Files (x86)\Adobe\AdobeFrameMaker10\Structure\xml, I copied the folder called DITA and pasted it into the same directory. I renamed this folder DITA-BigPage
    2. Inside DITA-BigPage, I opened the app folder. Inside each subfolder in app, DITA-Reference-FM, for example, I opened the edd file in Framemaker. In this case, the edd file name was reference.edd.fm.
    3. I edited the top line of reference.edd.fm.  It originally said:
    Structured Application: DITA1.1-Reference-FM.
    I changed it to say:
    Structured Application: DITA1.1-BigPage-Reference-FM
    4. I saved the EDD file. Then I opened the template file in the same folder. It was called: reference.template.fm.
    5. In reference.template.fm, I first changed my page size: Format Menu > Page Layout > Page Size > Tabloid > Set.
    6. Then I imported the element definitions from the corresponding EDD file:  File > Import > Element Definitions > reference.edd.fm > Click Import > Click OK to dismiss verification message.
    7. I repeated the above process for all topic-type folders. For the maps types, I did not change the page size, as these will never display as topics in my online  help. I did nothing to the dtd folder.
    8. Once all this was done, I opened structapps.fm.  I did the following to all Dita1.1 elements in the structure tree.
    Selected the Dita 1.1 XMLApplication element, for instance, the one named Dita1.1-Reference-FM, copied it, and pasted it underneath the original element.
    The original first few lines in the clone looked like this:
    Application Name: DITA1.1-Reference-FM
          Template:              $STRUCTDIR\xml\DITA\app\DITA-Reference-FM\reference.template.fm
          DTD:                       $STRUCTDIR\xml\DITA\app\dtd\reference.dtd
          Read/write Rules:  $STRUCTDIR\xml\DITA\app\DITA-Reference-FM\reference.rules.fm
          DOCTYPE:              reference
    I changed these lines to look like this, using your suggestion to create a variable for the first part of the URLs to enable speed and accuracy:
           Application Name:      DITA1.1-BigPage-Reference-FM
                   Template:                    $STRUCTDIR\xml\DITA-BigPage\app\DITA-Reference-FM\reference.template.fm
                   DTD:                            $STRUCTDIR\xml\DITA-BigPage\app\dtd\reference.dtd
                   Read/write Rules:        $STRUCTDIR\xml\DITA-BigPage\app\DITA-Reference-FM\reference.rules.fm
                   DOCTYPE:                    reference
    I also changed the "Filename" URLs in the "Entity Locations" section of this XMLApplication clone from  $STRUCTDIR\xml\DITA\app\  to $STRUCTDIR\xml\DITA-BigPage\app\.  Applying the "BigPage" variable I'd created for this purpose made this go quickly.
    Finally, after this didn't work the first few times I tried it, I got suspicious that the structapps.fm file in my AppData folder (in my case, it was in the Roaming subfolder under the usual Adobe directories) was overriding the modified structapps.fm file in the Framemaker program directory so I replaced the one in AppData (it had all the original settings) with my modified version.  This had no effect, unfortunately.
    That was my process. After doing the above, the Dita1.1-BigPage applications all listed in the Set Structured App drop-down. They just didn't work,when applied to my XML documents. Nor did the application "remember" what structured application I had set when I opened a new xml document  or closed/reopened the current document or closed/reopened the application.  Did I place the directories correctly for Framemaker 10?  This is the way I did it for FrameMaker 9 and it worked successfully.
    As much as I'd love to solve this mystery, I've thought of a workaround I can fall back on  that doesn't involve using a cloned application.  I will change the page size of a few of the original Dita1.1 sturctured application templates to tabloid size, but leave the Topic structured application at letter size. I'll then apply the Topic structured application to my PDFs and use the others for my help topics.  I'll set this up now. If this doesn't work, then I'll know there's a much bigger problem at the base of this, perhaps even something to do with changing page sizes in templates.

  • Discoverer 4i not working with Sun JRE plugin

    Hi All,
    Recently i replaced jinitiator with Sun JRE plugin, after the deployment of the plugins the discoverer is not launching from the form based responsibility.
    Its displaying on window as
    Applet oracle.disco.DiscoApplet notinited
    But i see the document 290807.1 for deployment of Sun JRE its no where mentioned that 4i will not Support Sun JRE plugins.
    Any inputs are appreciated
    Thanks in advance.

    Hi,
    You can upgrade to Discoverer 10g (10.1.2.3).
    Note: 313418.1 - Using Discoverer 10.1.2 with Oracle E-Business Suite 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=313418.1
    Note: 459344.1 - What JRE Client Works With Discoverer 10.1.2 and e-Business Suite 11.5.10.2?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=459344.1
    Note: 367389.1 - Recommended Patch for Discoverer 10g (10.1.2.1 / 10.1.2.0.2) Plus Known Issues
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=367389.1
    If you are not planning to use Oracle AS 10g features (like Discoverer Connection Management, Discoverer Portlet Provider, and Oracle Single Sign On, ..etc), you can choose to install Oracle Business Intelligence Server 10g Release 2. Oracle Business Intelligence Server 10g Release 2 is available on a separate standalone CD and includes Discoverer Server 10g, Discoverer Plus 10g, and Discoverer Viewer 10g.
    Regards,
    Hussein

  • Client_host('cmd  edit c:\temp\file_print.txt'); not working with Sun JRE6

    Hi,
    I am working on Oracle forms10g ( 10.1.2.0) with Sun JRE6 (Using JRE version 1.6.0_31-b05) which is working fine. the only problem is, when I use edit command, its not working nor show any error. Command I am using (to display the text file in command window) - client_host('cmd edit c:\temp\file_print.txt'); . the same command working fine if I switch to JInitiator (1.3).
    help would be greatly appreciated.
    Thank you.
    Alok

    In the [webutil] section of the formsweb.cfg, did you change the baseHTMLjinitiator to point to webutiljpi.htm?
    not working nor show any error. Not all errors will be reported through the Forms UI. For java related errors you have to look at the Java Console. Please check the Java Console and post any errors listed there.
    the same command working fine if I switch to JInitiator (1.3).This tells me the problem is most likely a configuration issue. Please list what steps you took to congifure your system to use the JRE over the default Oracle Jinitiator.
    Craig...

  • "Message Driven Bean" doesn't work with Sun App Server

    Hello all,
    i have a little bit problems, running a simple "Message Driven Bean" under the Sun App Server. The deployment of it works fine, but after starting the SUN App Server i get the following error message:
    An error occurred during the message-driven beancontainer initialization at runtime. The most common cause for this is that the physical resource(e.g. Queue) from which the message-driven bean is consuming either does not exist or has been configured incorrectly. Another common error is that the message-driven bean implementation class does not correctly implement the required javax.ejb.MessageBean or MessageListener interfaces.
    Has anybody a workaround for this problem?
    The queue seems to be correctly installed. A simple client programm from the Sun Tutorial (Consumer & Producer) works fine without any Errors or Exceptions.
    I am a little bit confused, because the queue seems to work with the client programms but not with a MDB running on the SUN App Server.
    Thanks for you help!
    Greetings
    Manuel

    Hello Mr Manuel!
    could you plz help me with the steps for creating a message driven bean using netbeans ver 5.0(with Sun Java� System Application Server Platform Edition 8.2 )
    I just know how to work with Session beans & Entity Bean, and am try to learn to work on Message Driven Beans too. there are no proper tutorials where i can find steps for creating these..
    I need the steps from the scratch.,like creating QueueConnection Factory & Destination etc..
    It will be gr8 if you can help me with this at the earliest .
    Thank you
    Bye

  • DVD/CD Drive Problem: Works with DVDs, but won't Read CDs

    As the title states, my laptop's CD drive will not read CDs (it is a satellite A205 by the way).  The yellow light lights up, it makes noises as if it is trying to read the CD, but just doesn't do it.  It won't show up as a CD being there when I look it up on "computer".  On the other hand, when I put a DVD in, it works no problem.  Anyone have any idea of what I could do?  I've tried uninstalling the driver on device manager and restarting the computer, thus allowing it to reinstall it, and it didn't help.  Any and all help is greatly appreciated!

    Try cleaning out the drive with compressed air and/or a lens cleaning disk.  This often times helps. 
    Next try booting to a Linux Live CD or some other Self Booting CD like Memtest.  If it doesn't then you know for sure that the drive itself is defective as you are taking Windows out of the equation.  If it does, then you know it's a Windows problem which will more than likely require restoring the system to it's factory out of box state using the Recovery DIsks to fix.
    If the drive works with a Live CD then try going into device manager, uninstall the DVD drive, then reboot the system to have Windows automatically re-install it.  This sometimes helps as well.
    If you don't post your COMPLETE model number it's very difficult to assist you. Please try to post in complete sentences with punctuation, capitals, and correct spelling. Toshiba does NOT provide any direct support in these forums. All support is User to User in their spare time.

Maybe you are looking for

  • Mid 2009 13" Macbook Pro Battery died

    Hello, I was ready to have my MacBook Pro formatted when I realized that it would not change and it now works with the power cord when connected. How do I know which model/Part number it is? or the information that I need to purchase the battery. I a

  • Open files in forms 10g

    In forms 6i i used the below code to open any application. I have a table with application path and ext of the file. This is for each user. Because the installation of application in users desktop in different path. Depends on the ext of the file APP

  • How do I disable the new feature that disables outdated plugins unless they are clicked?

    I'm running Adobe Acrobat 8. I'm happy with it. Firefox has a new feature that automatically disables the PDF plugin unless it's clicked. It's called the "Click to Play" feature. Even when disabled, it's not really disabled: it activates itself for "

  • Cancelling an install to memory card

    I made the mistake of trying to install a picture to my media card slot.  I don't have a media card, but did the install attempt on accident. However, now, everytime I sync my palm to my PC, I get an error message that the installation did not comple

  • REGEXP Help -Please urgent

    Hi All, My data is coming the below way(sample data provided) so I would like to join with both tables using deliveryzipcodes.zipcode with POSTALCODES.postalcode. I have not provided all the columns but join should be zipcode with postalcode CREATE T