Unable to succed with security key generation using keytool?

<h6>Hai ,
i am trying to generate a key for testing security in my application.
i have done by following way</h6>
C:\Program Files\Java\jdk1.5.0_10\bin>keytool -genkey -keystore test -alias aabc -keyalg RSA -storepass changeit
What is your first and last name?
[Unknown]: mahi
What is the name of your organizational unit?
[Unknown]: mahi
What is the name of your organization?
[Unknown]: mahi
What is the name of your City or Locality?
[Unknown]: chennai
What is the name of your State or Province?
[Unknown]: TN
What is the two-letter country code for this unit?
[Unknown]: IN
Is CN=mahi, OU=mahi, O=mahi, L=chennai, ST=TN, C=IN correct?
[no]: yes
Enter key password for <aabc>
(RETURN if same as keystore password): changeit
<h6>but when i restart my tomcat server it says the following error</h6>
java.io.IOException: Keystore was tampered with, or password was incorrect
     at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:768)
     at java.security.KeyStore.load(KeyStore.java:1150)
     at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:282)
     at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:222)
     at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:141)
     at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
     at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
     at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:138)
     at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
     at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
     at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)
     at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
     at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Sep 29, 2007 2:41:32 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.io.IOException: Keystore was tampered with, or password was incorrect
     at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
     at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
     at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)
     at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
     at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
<h6>what i am doing wrong? : ( </h6>

Try specifying RETURN instead of 'changeit' when asked the password for <aaaa>, and make sure that Tomcat knows the password of the keystore, however that's done - some configuration entry (don't ask me).

Similar Messages

  • DCOM was unable to communicate with the computer xyz using any of the configured protocols; requested by PID 7b28 (C:\Program Files\Microsoft\Exchange Server\V15\Bin\MSExchangeHMWorker.exe).

    Hi,
    Previously I've two exchange server 2013 named : ABC and XYZ. After is decomm XYZ, i got this error :
    DCOM was unable to communicate with the computer XYZ using any of the configured protocols; requested by PID     7b28 (C:\Program Files\Microsoft\Exchange Server\V15\Bin\MSExchangeHMWorker.exe).
    EventID:10028
    Source:DistributedCOM
    May I know the reason why the server keep looking for the non-exist server and how to terminate this process?
    Thanks in advance.

    Hello,
    It seems that error message occurs on the same machine with the previous Exchange Server you have decommissioned. Have you reinstall the Windows System after uninstall the Exchange
    Server?
    You need to check the registry keys but this is not efficient solution. The most efficient way is to reinstall the Windows if it is convenient.
    Thanks,
    Simon Wu
    TechNet Community Support

  • Primary key generation: Using CounterHome?

    I can't find any documentation that talks about automatic primary key generation support on OC4J. I noticed the article on the Orion Support page that mentions their "Counter" bean. Is this the extent of support for automatic primary key generation in OC4J? When I searched for this class in the distribution, I only found it in a demo application in JDeveloper.
    Is this something that is handled directly in the Oracle DB, which is why OC4J doesn't bother to support it?

    Sorry I wasn't specific. By "going nowhere", I meant it went to an error page on the orion site. I don't know why it couldn't find it, because when I just now searched for the article with the title you just gave, the resulting URL was identical to what you gave me originally.
    As to the "counter faq", I think I've seen that before, but I can't get to it right now (server overloaded or something). The one problem I remember with trying to pursue the "counter" solution was somewhat simple. I couldn't find the code. I didn't notice a download for the "Counter" class, and I can't find it in either the jdeveloper or oc4j distributions.
    In any case, I ended up implementing the UUID solution, based on Floyd Marinescu's example in "EJB Design Patterns". I think this will work fine for our application.
    I'd still like to know more about Orion's "Counter" solution, if there's any real code available to see.

  • Problem with restricted key-figure using off-set variable

    Hello Gurus,
    I have created a query in Bex Query Designer with a key figure restricted. This key figure shows me the 0amount value for the last month. When I select 003.2009, the key figure brings the 002.2009 values. I used an off-set variable to do this
    It works!
    But when I show this key-figure in Webi, no value shows up on the table.
    Any suggestions?
    tks
    Edited by: Allisson Valverde on Jul 23, 2010 12:12 AM

    Which variable are you using in BEx and in WEBI to restrict the month/year?

  • Problem with automatic key generation

    Hi,
    I'm getting an exception when creating entity EJB's that use automatic primary key
    generation (I'm using MS SQL Server as the db). The data is being inserted correctly
    onto the database (including the auto generated key), but the auto generated primary
    key field in the EJB is being set to zero rather than the correct value. This causes
    a NoSuchEntityException.
    The db table has an identity set on the auto generated field, but this field is not
    the primary key.
    Does anyone have an idea as to what the problem is?
    thanks,
    Andy

    Make sure you are using a TX DataSource
    "Andy Pearson" <[email protected]> wrote in message
    news:3ccead40$[email protected]..
    >
    Hi,
    I'm getting an exception when creating entity EJB's that use automaticprimary key
    generation (I'm using MS SQL Server as the db). The data is being insertedcorrectly
    onto the database (including the auto generated key), but the autogenerated primary
    key field in the EJB is being set to zero rather than the correct value.This causes
    a NoSuchEntityException.
    The db table has an identity set on the auto generated field, but thisfield is not
    the primary key.
    Does anyone have an idea as to what the problem is?
    thanks,
    Andy

  • Key generation using DBMS_CRYPTO

    Hi,
    I have a question about DBMS_CRYPTO pacakge , which can be used for encrypting sensitive data. When we use this package, is it a must that we have to supply the encryption key or is it that the package can itself generate the key? I read in the documentiation about RANDOMBYTES function (http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_crypto.htm#1000530) but I don't know exactly how it can be used.
    Basically my doubt is, when we use this package, we have to pass in the encryption key as a parameter and we have to know it or is there a way oracle can entirely take care of it?
    Thanks

    The way the DBMS_CRYPTO package works is with providing an encryption key to encrypt and to decrypt. I think personal looking at your question and the remarks you place you are looking for a solution like "Oracle Advanced Security", see http://www.oracle.com/us/products/database/options/advanced-security/index.html
    Regards, Gerwin

  • Problem with function keys while using Terminal to connect to UNIX host

    We are trying to use macs at my office, but we've hit a big roadblock. Our company software runs on a UNIX server, and until now everyone in the company uses either dedicated UNIX terminals, or terminal emulation software in windows. I was thrilled to learn that we could use the terminal in OSX to connect to the server, and it did not take long to get it to work.
    The problem is the function keys. Almost all of the menu options in our company software require the use of the function keys, F1-F10. I was able to access F9 and up by pressing command-F9, etc. but we're now having issues with F3 and F4.
    The computer in question is an intel macbook, and we have been using the fn key of course. The specific problem they showed me was with F3. In the software, it is supposed to lauch an extra menu, but pressing fn-F3 on the macbook results in an error ("number required", which is the message it would normally return if we tried to press return).

    Your problem is two-sided, I think. The first is that you need to set Terminal to send the right escape sequence. This is done with the Inspector (CMD-I) and selecting Keyboard. Get the correct key mapping in there. The other side is to make sure the system isn't intercepting your intended keystroke, so go into System Preferences->Keyboard & Mouse->Kwyboard shortcuts and make sure that the bindings you're using aren't enabled.

  • CMP with Primary key generation in Oracle

    I need to know how can I from my Entity Beans use Oracle sequences to automatically create my primary key.
    I know that Weblogic lets to define with sequence to use in the deployment descriptor, but the problem is that I am using Websphere Application Server.
    Does anyone have any suggestion doing this.
    Very Thanks!!

    See if this link helps - http://theserverside.com/patterns/thread.jsp?thread_id=220

  • DCOM was unable to communicate with the computer (IP) using any of the configured protocols

    Hey all,
    I know this has been asked a bazillion times before... and well you can thank MS for having such a generic error message being keyed into the event logs...
    K, So we have separate networks segregated by VLANs and a layer 3 switch. The Errors appear constantly a few events every few minutes. From doing nslookups on all the IP address being generated I have determined they are the following:
    iPhones, Printers, and subnet gateways...
    And the errors are appearing a on Windows Server 2008 R2 running as a internal CA..
    Thing is, this is a bit of a messed up server setup as it also hosting BES (shutters), ServiceDesk (good product, not something I would pair with a CA), and one of these requires Java so Java is running on it... which makes me cringe even more..
    More from all my research I did everything that MS suggested about configuring the component services on the server reporting the events, but obviously all these "computers" aren't running windows, so I'm not sure what causing the flood of 10009
    events.
    The even log has over 160,000 of these events... I need help getting this resolved. Thoughts, suggestions?

    Hi Zewwy,
    Please see resource for a link.
    http://blogs.msdn.com/b/asiatech/archive/2010/03/16/how-to-troubleshoot-dcom-10009-error-logged-in-system-event.aspx
    Meanwhile, we are not sure if there is anyother 3rd party applicaion casue this issue, so I suggest to eliminate some factors by using Clean Boot.
    Disable the 3rd party application or using
    Clean Boot for test.
    Clean Boot
    a. Click Start, click Run, type "msconfig" (without
    the quotation marks) in the Open box, and then click OK.
    b. In the Startup tab, click the "Disable All" button.
    c. In the Services tab, check the "Hide All Microsoft
    Services" checkbox, and then click the "Disable All" button.
    ======================================================
    Clean Boot + binary search
    In a Clean Boot, all the
    3rd party services and startup programs are disabled. If the server can start
    normally in Clean Boot, we can be sure
    that the issue was caused by some 3rd party service or application. And then we
    can do a "binary search". You can enable half of all the services in Services tab, and then restart the
    server to check the result. If the issue reoccurs, it means the culprit is in
    this list; if not, the culprit is in the other half.
    And then, we can continue the binary search, until we find out the root cause.
    Please let me know if this action plan is OK for you.
    Thank you.
    Best regards,
    Steven Song
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Unable to unlock with mute key

    My device is Blackberry 9300 vs5.0.0.977.
    Hi people, I am currently having a problem with my blackberry.All my convenience keys aren't working. They works like just like my keypad now. Pressing the play left track key gives me HL, pressing the mute key gives nm and pressing the play right track key gives me uo. pressing the left side key gives me jk and pressing the right side key gives me yi.
    The default side convenience keys are camera and voice dialing.
    The problem is after locking my keypad with default 'A' button, I am unable to unlock it. It prompts me to press the mute button, which doesn't work now. Each time I press the 'A' button, I can't unlock my phone anymore. I did many battery pulls, but upon pressing the 'A' button again, I can't unlock my phone again.
    Please help me put my keys back to their original function. Thank you.

    Try specifying RETURN instead of 'changeit' when asked the password for <aaaa>, and make sure that Tomcat knows the password of the keystore, however that's done - some configuration entry (don't ask me).

  • Issue with Virtual Key Figures Using BADI

    Hi,
    We are populating values for a few virtual key figures in a query over a multiprovider through a BADI implementation(RSR_OLAP_BADI). On execution the VKF fields appear blank in the report.
    We tried debugging the methods of BADI by adding Break-Points in specific points. On doing so, we found that the values are properly updated in the 'Field-Symbols' used in the Compute method, but the same values do not appear in the report result and the fields are blank.
    Kindly provide any pointers or suggestions.
    Thanks.

    First check in <b>Technical Information</b> in <b>RSRT</b> , whether the
    <b>Virtual Char/Key</b> Fig is<b> Y</b> or <b>N</b>.

  • Any Experience/Alternatives with security, FALSE, if using iFrames 2 link directly 2 ShopProducts?

    Hi, i have an (older) shop-account but the layout and the options to change are poor, ( it's a Modular web host for shop - there is no FTP access :-(
    So now my idea is -  just from the designer-thinking - to link from a new page (same client but different host and server ) with via iFrane directly to the poducts of the shop
    ( one step before the cart)  I tested it and it feels looks good - so it feels you don't change the the domain.
    But - its a lot of products and a lot of work --- and before i start to I want to be sure, which is may wrong, where can be a problem?
    From the technical, safety, seo or any other point of view, i have now idea which problems can come to me?
    No no, I don't wnat a problem, it is the only code i know , if there is a Probelm with Iframes , i have a big problem , too. Because missing any alternatives ;-/
    I'm fairly new working with webdesign, but always read in older oldschool HTML forums, iFrames have a bad reputation. But why?
    and if , do i have any alternatives to do???  and  is it also working with  Muse?
    thanks a lot for your time and for every idea ;-)

    Thank you for your helpful Summary.
    very Interesting, you even mean it's a little helpful for the Seo.
    So I don't see real problems with Iframes, too.
    BUT I'm not deep into it and because the disliked image, i was a bit afraid about a missing knowledge, may some browser ignore iframes,
    W3C or any other Internet-organization plans to ban it :-) Or whatever, which could have a massive negative impact for the shop.
    The url redirection to a shop is for sure a bit confusing, But i can't change it, it is another site from another host, a special  safy shop system and already build and ready.  ( business catalyst is just for testing, but i know what you mean and in long-term planning )
    so that#s why I thought, that iframes are a nice and a elegant solution for a uniform appearance. And if we're pointing that the customer is entering another safer Place for buying and for their own safety   -  i even think it's not particularly unusual. - But if a problem it's not an IFrame problem. 
    So even if i buy at the german apple store, (de) suddenly i have to speak english and to pay in $ , this is for real a bit scarry ... 
    But I#m not apple ;-))

  • ADF BC Primary key generation with SQL Server DB

    Hi,
    I am using ADF 11.1.1.6 to develop a small application that will do some very basic CRUD operations on a SQL Server DB.
    I read through http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html before I'm starting to implement the Entity objects.
    This document describes a way to do primary key generation using a table created in the DB and instructs to create an application connection to the Database :
    +2. Create a Connection to the Table+
    In your application, create a database connection named ROWIDAM_DB that points to the database containing your S_ROW_ID table. Alternatively, edit your BC project's properties and add the following Java option to the project's run configuration:
    -Djbo.rowid_am_conn_name= appconnection
    where appconnection is the name of a database connection that points to the S_ROW_ID table.
    My question is how do we do this when we mve to a production environment ?
    Also I'll be interested to hear if anyone has any pointers for developing ADF apps with SQL Server. (gotchas, performance pitfalls etc. )
    -Jeevan
    Upadte : This is SQL Server 2005
    Edited by: Jeevan Joseph on May 2, 2012 9:04 AM

    my apologies to everyone ... This should have been very simple. I just need to provide the config in my AM configuration(bc4j.xml)
    jbo.rowid_am_conn_name* should be set to the connection name you create. For production deployments, theres a similar
    jbo.rowid_am_datasource_name* that should work just fine (though I havent tried if it has any hiccups).
    I'd like to point out one thing though, for whoever might stumble upon this thread and find it useful later on...
    After I did the steps above, everything seemed to work when I tested the app from the AM tester. But when I built a UI for it in ADF Faces, I started getting an exception on Create/CreateInsert :
    java.lang.ClassCastException: com.microsoft.sqlserver.jdbc.SQLServerConnection cannot be cast to oracle.jdbc.OracleConnection
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:5533)
         at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5311)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1194)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6826)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:136)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)The trouble is that the ADF Faces adf-config.xml overrides the AM configuration. Oracle is the default, and it overrides the SQL flavor I set when initializing the Model project.
    This was not mentioned in the original document probably because ADF faces was out of scope for that document.
    I also found this thread extremely useful, and its what reminded me of the ADF Faces AM config overrides : Re: Locking mode 'optupdate' with SQL92
    Cheers !
    Jeevan

  • Primary key generation

    How do use primary keys generated by database within entity bean?

    DBMS primary key generation uses a set of deployment descriptors that
    are specified at compile time to generate container code which is used
    in conjunction with a supported database to provide key generation
    support. Specify the name of the supported DBMS and the generator name,
    if required by the database. Generated primary key support for Oracle
    databases use Oracle's SEQUENCE. Once the SEQUENCE already exists in the
    database, you specify automatic key generation in the XML deployment
    descriptors. In the weblogic-cmp-rdbms-jar.xml file
    <automatic-key-generation>
    <generator-type>ORACLE</generator-type>
    <generator_name>test_sequence</generator-name>
    <key-cache-size>10</key-cache-size>
    </automatic-key-generator>
    You need to specify the name of the ORACLE SEQUENCE to be used in the
    generator-name element. If the ORACLE SEQUENCE was created with an
    INCREMENT value, then you must specify a key-cache-size. This value must
    match the Oracle SEQUENCE INCREMENT value.
    Owen wrote:
    How do use primary keys generated by database within entity bean?

  • EJB Key Generation

    Hi,
    i have an entity bean with auto key generation.
    My primary key is a field called ID that is of Long Type
    To get the EJB to auto generate the key, i had to delete ID as a EJB field
    I have two questions:
    First: When the CMP introduces data in the table, the id starts with a very large number, how can i tell it to start from a number of my choice ?
    Second: In the ejbCreate method, is there anyway to know which value was used as the primaryKey ? Or the only way is to use getPrimary() after the bean has been created ?
    Thanks

    http://www.netbeans.org/kb/41/generated-primary-keys.html

Maybe you are looking for