Cannot set hostname

Hello, recently I moved to a different place, and changed my ISP aswell. Now I'm using the router provided by my new ISP. My problem is, that unlike with the previous ISP the hostname specified in the rc.conf file isn't set correctly.
The corresponding part of my rc.conf:
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
HOSTNAME="skynet"
interface=eth0
address=
netmask=
broadcast=
gateway=
I've been suggested to add the hostname to /etc/hosts. It didn't work. My /etc/hosts:
[zyxon@dhcppc0 ~]$ cat /etc/hosts
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost myhost
127.0.0.1 localhost.localdomain skynet
127.0.0.1 skynet.localdomain localhost skynet
::1 localhost.localdomain localhost
# End of file
And the hostname is dhcppcN insted of skynet. How can I use the hostname skynet again?

bohoomil wrote:
Instead of
127.0.0.1 localhost.localdomain localhost myhost
127.0.0.1 localhost.localdomain skynet
127.0.0.1 skynet.localdomain localhost skynet
use
127.0.0.1 localhost.localdomain localhost skynet
Thanks for the reply. Still doesn't work.
[zyxon@dhcppc0 ~]$ cat /etc/hosts
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost skynet
::1 localhost.localdomain localhost
# End of file

Similar Messages

  • Kerberos problem (cannot resolve hostname)

    We are now trying to setup Xserve G5 cluster computer system (1 head node and 6 cluster node) with OS X 10.4.3, and having trouble with Kerberos.
    Head node has two network addresses: one is static IP address of our university (en0), and the other is 192.168.1.1.(en1) Cluster node has static IP addresses from 192.168.1.2 to 7. We put the name of the head node (computer1.company.private) and the cluster nodes (computer2 to 7.company.private) and their IP addressees in the file of both head node and cluster node (/etc/hosts).
    192.168.1.1 computer1.company.private computer1
    192.168.1.2 computer2.company.private computer2
    We also set the HOSTNAME entry in /etc/hostconfig to (computer1.company.private).
    Command 'Hostname' returns correct name computer1.company.private.
    Then we tried to configure computer1.company.private as an Open Directory master. However, KDC did not start, and realms was the number related to the static address of our university (xxx.xx.xxx.vlan.xxx.net, not 'COMPUTER1.COMPANY.PRIVATE’)
    Command 'slapconfig -kerberize diradmin both 'COMPUTER1.COMPANY.PRIVATE' and xxx.xx.xxx.vlan.xxx.net, both returns 'cannot resolve hostname'.
    We would appreciate it very much if you could give us kind comments and suggestions.
    XserveG5   Mac OS X (10.4.3)  

    We also set the HOSTNAME entry in /etc/hostconfig to
    (computer1.company.private).
    Command 'Hostname' returns correct name
    computer1.company.private.
    Looks like they did that already, which makes me think the DNS is not setup properly. Remember that OS X uses a round robin approach to DNS servers listed. So if you have an internal only DNS, and you put in an external only DNS server in your list. You can and will sparadic DNS related kerberos failures. Especially if it is this way on your head machine.
    Sometimes one failure will cause total failure. Also if you do not setup the host name and DNS before you try to kerborize, you can cause issues, so squence of events is very important.

  • In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the Paragraph Designer.

    In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the paragraph designer. Here are the steps to dysfunction:
    1. In Paragraph Designer, for Tab Stops, click Edit. Edit Tab Stop dialog box opens, and the Paragraph Designer dialog box closes.
    2. Type value in New Position box.
    3. Click Continue. The Edit Tab Stop box closes.
    4. Open Paragraph Designer. No tabs are recorded.
    Discussion of a similar problem occured on this forum in June 2010. At that time, the resolution seemed to be to upgrade to 9.0.3. Has anyone else encountered this problem with these versions?
    Thanks.

    Hi, Arnis,
    Brilliant! Thanks so much. I only looked at the later discussions of that thread, which seemed to indicate the problem would be solved by an upgrade to 9.0.3.
    -Trish

  • When I click the iCloud button I get a browser with check boxes, not slider buttons and it does not have a "backup and storage" button.  So I cannot set up backup.

    When I open my iCloud browser it looks different than "normal." It shows the list with check boxes, not slider on-off buttons.  It dos not show a "storage and backup" button so I cannot set up my backup. What is wrong?

    If see something like the image below it's because you are looking at the iCloud settings on your Mac, not on an iOS device (which has sliders).  Storage & Backup isn't in the Mac settings because you cannot back up your Mac to iCloud.  Only iOS devices can back up to iCloud.  On a Mac, you can get information about your iCloud account storage by looking at the green usage bar at the bottom and by clicking the "Manage..." button on the bottom right.

  • When I try to create a calendar announcement in my iCloud calendar thru my PC / Outlook, it says 'the set of folders could not be opened. The information store could not be opened'. Can anyone help?  This means I cannot set any calendar events thru my PC.

    When I try to create an iCloud calendar announcement / event on my PC thru Outlook, I get the message 'the set of folders could not be opened.  The information store could not be opened'.
    I cannot set any calendar events for my shared calendar.  Can ayone help?

    If you upgraded to Windows 8 you may need to update the iCloud control panel for Windows to version 2.1 (see http://support.apple.com/kb/TS4463).

  • Cannot set Windows 7 default printer in Boot Camp

    I discovered today that I cannot set a default printer in Windows 7.  I right click, and try to make one of the printers default but there is no check mark.  One of the programs that I use says I do not have a printer installed. 
    I can print to my printers using Word by selecting the printer that I want but cannot select a default in control panel.
    If I access Windows programs using a VM Fusion, the program that says there is no printer installed in boot camp, does not give be this message and I can select a printer.  BTW, I have never been able to select a "default printer" using VM Fusion.
    The only thing unusual is I had to reactivate Windows for no apparent reason last week and I cannot select all of the Themes available in the personalize menu. 
    It is difficult to pinpoint when the printer issue started because I mainly access my Windows programs through VM Fusion.  I am guessing the changes happened when I had to reactivate Windows
    I am away from my iMac currently and was wondering if anyone has experienced this and/or have a suggestion.?
    Thanks,
    Roy

    Update.
    Apparently this is a Windows Registry issue.  Looks as if there is a VM Fusion driver set as default (thinprint??)  I cannot delete or modify this registry key.  A new profile solves this issue and I will have to copy everything over to the new profile, if I cannot get this registry key issue solved.  I will post on a Microsoft board to see if there is a solution.
    Roy

  • Cannot set status of Urgent Change after manual transport

    Hi all,
    We are usng CHARM in Solution Manager 7.1 for import to the SAP ECC (EHP6) systems.
    I cannot set the status of the Urgent Change document (ZMHF) to status "To be Tested" after the transports were manually released and manually imported to the ECC QA system.
    When I use action "Pass Urgent Change to Test", the system stopped with error "Not all task are yet released" and will not change the status .
    Based, on the Task List log, the system started the release process although no transports were released.
    Is there any way that I can update the status of the Urgent Change document to "To be Tested"?
    I tried program CRM_SOCM_SERVICE_REPORT but still did not change the status.
    Any suggestion?
    Thanks,
    Tess

    Hi Venu,
    have a look under System Administration - System Configuration -- Knowledge Management -- Configuration --Content Management -- User Interface -- Commands -- UI Command Groups -- StatemanagementGroup.
    See Java class: com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementGroupCommand. Take the class and decompile this and everything needed around to understand how this class works.
    Then you can choose to extend this CommandGroup to also have a command "Resubmit for Approval" or you can implement your own UI Command only for resubmitting (you will also have to activate your command (group) by settings within the configuration).
    On the other hand, if all this is completely new to you, I'm a bit sceptical if the task isn't a bit too big as a first task on KM implementation topics...?
    Hope it helps
    Detlev

  • [Solved?] VLC won't play audio -- cannot set buffer duration

    I can't play sound in VLC. I have tried the default and the ALSA outputs. I know ALSA works, because mpg123, speaker-test, and rdesktop's sound all work. (Saying that, I can't tell if mpg123 uses alsa or not - rdesktop does though)
    Attempting to play something in VLC gives me some rather cryptic errors. What follows is the output of "vlc -v" and an attempt to play a video with sound. I have split the "code"-tag just before the actual error output for clarity and ease of scanning.
    VLC media player 2.0.7 Twoflower (revision 2.0.6-54-g7dd7e4d)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/audio_output/libportaudio_plugin.so' (libportaudio.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/audio_output/libjack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/services_discovery/libmtp_plugin.so' (libmtp.so.9: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/notify/libxosd_plugin.so' (libxosd.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_jack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_dv_plugin.so' (libavc1394.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_mtp_plugin.so' (libmtp.so.9: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_output/libaa_plugin.so' (libaa.so.1: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_output/libcaca_plugin.so' (libcaca.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/control/liblirc_plugin.so' (liblirc_client.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    [0x7f1e6cc01bf8] mkv demux warning: MKV/Ebml Parser: m_el[mi_level] == NULL
    [0x7f1e6cc01bf8] mkv demux warning: MKV/Ebml Parser: Up cannot escape itself
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7f1e68c068a8] alsa audio output error: cannot set buffer duration: Invalid argument
    [0x7f1e68c068a8] pulse audio output error: PulseAudio server connection failure: Connection refused
    [0x7f1e68c068a8] oss audio output error: cannot open audio device (/dev/dsp)
    [0x7f1e68c068a8] main audio output error: no suitable audio output module
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7f1e6cc02b68] main decoder error: failed to create audio output
    I have reproduced this with the same result using 'sudo vlc-wrapper' and I am added to the 'audio' group.
    I have no idea where to start with this issue, I've tried googling but it seems that only one person has ever had this issue before (if Google is to be considered a reputable source), and he was running his own VLC build. I am running the build "pacman -S vlc" gave me. If anyone could point me in the right direction on this issue I'd be grateful.
    Edit: This is my /etc/asound.conf. I have no idea what any of this means, at this point it's fill-in-the-blanks wiki copypasta (Edit2: The purpose of this file is to try to stop alsa from sending all my sound through a disconnected HDMI instead of the speakers)
    # Use PulseAudio by default
    #pcm.!default {
    # type pulse
    # fallback "sysdefault"
    # hint {
    # show on
    # description "Default ALSA Output (currently PulseAudio Sound Server)"
    #ctl.!default {
    # type pulse
    # fallback "sysdefault"
    pcm.!default {
    type plug
    slave.pcm {
    @func getenv
    vars [ ALSAPCM ]
    default "hw:Generic_1"
    # vim:set ft=alsaconf:
    Last edited by Score_Under (2013-08-02 23:23:27)

    Situation update:
    1. I didn't need my asound.conf like that -- I should have used pulseaudio in the first place, I was unaware that ALSA does not allow more than one program to use the sound device at the same time, whereas pulseaudio is used to mix sounds.
    2. VLC works fine on PulseAudio. No idea why it failed on ALSA!
    Last edited by Score_Under (2013-08-02 23:22:45)

  • Need help on  ORA-02074: cannot SET NLS in a distributed transaction

    Hi All,
    I am Writing a plsql Code like this
    DECLARE
    op_job_id NUMBER;
    op_object_version_number NUMBER;
    x_job_definition_id NUMBER;
    op_name VARCHAR2(1000);
    L_VERIFY_FLAG VARCHAR2(1);
    l_error_message VARCHAR2(2000);
    BG_ID NUMBER;
    lv_job_group_id APPS.per_job_groups.job_group_id@SYSTEM_LINK_VISMA%TYPE;
    CURSOR C1 IS SELECT * FROM EBS_PER_JOBS_STG;
    BEGIN
    FOR H1 IN C1
    LOOP
    BEGIN
    IF H1.BUSINESS_GROUP_NAME IS NOT NULL THEN
    SELECT BUSINESS_GROUP_ID,job_group_id INTO BG_ID,lv_job_group_id
    FROM APPS.PER_JOB_GROUPS@SYSTEM_LINK_VISMA
    WHERE DISPLAYED_NAME=H1.JOB_GROUP_NAME;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    L_VERIFY_FLAG := 'E';
    l_error_message := 'Entered Job Group Name is Wrong';
    END;
    -->> JOB GROUP ID <<--
    APPS.hr_job_api.CREATE_JOB@SYSTEM_LINK_VISMA
    (p_business_group_id => BG_ID
    ,p_date_from => H1.DATE_FROM
    ,p_approval_authority => H1.APPROVAL_AUTHORITY
    ,p_emp_rights_flag => H1.EMP_RIGHTS_FLAG
    ,p_benchmark_job_flag => H1.BENCHMARK_JOB_FLAG
    ,p_job_group_id => lv_job_group_id
    ,p_job_information1 => H1.JOB_INFORMATION1
    ,p_job_information2 => H1.JOB_INFORMATION2
    ,p_job_information3 => H1.JOB_INFORMATION3
    ,p_job_information4 => H1.JOB_INFORMATION4
    ,p_job_information5 => H1.JOB_INFORMATION5
    ,p_job_information6 => H1.JOB_INFORMATION6
    ,p_job_information7 => H1.JOB_INFORMATION7
    ,p_segment3 => H1.JOB_CODE --JOB_CODE
    ,p_segment6 => H1.JOB_NAME --JOB_NAME
    ,p_job_id => op_job_id
    ,p_object_version_number => op_object_version_number
    ,p_job_definition_id => x_job_definition_id
    ,p_name => op_name);
    dbms_output.PUT_LINE('OUTPUT JOB NAME CREATED : '||op_name);
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.PUT_LINE('Error Message Is: '||SQLERRM);
    END;
    i am running it in Another database Using database link connecting to Apps.
    when i am running it am getting the following Error:
    Error Message Is: ORA-02074: cannot SET NLS in a distributed transaction
    ORA-06512: at "APPS.HR_KFLEX_UTILITY", line 2423
    ORA-06512: at "APPS.HR_KFLEX_UTILITY", line 2380
    ORA-06512: at "APPS.PER_JBT_UPD", line 468
    ORA-02074: cannot SET NLS in a distributed transaction
    ORA-06512: at "APPS.HR_JOB_API", line 878
    Please help me on this, this is quite urgent to me.
    thanks
    sri

    Please see these docs.
    ORA-02074: Cannot SET NLS in a Distributed Transaction [ID 556391.1]
    Portal Used To Call PO_CHANGE_API1_S: ORA-20001: ORA-02074: Cannot SET NLS In A Distributed Transaction [ID 561246.1]Why are Concurrent Programs Calling FND_GLOBAL.APPS_INITIALIZE Using DBLinks Failing? [ID 466800.1]
    ORA-02074 when Executing set_nls over a DB Link [ID 132679.1]
    Thanks,
    Hussein

  • Viewlink between Custom VO "Cannot set user query to view"

    We have an application where we have extended custom VO and EO’s to get data from flat files. It all looks fine till we create a viewlink for a LOV with two related VO’s. The viewlink VO fails we get message of the form -Cannot set user query to view "CustomVO1" because it is a destination in a view link”. Are there any methods to override in the custom VO/EO or any parameter to be added to configs. Has someone tried this out

    Thanks for the update and for sharing the solution!
    Regards,
    Hussein

  • Users are not able to use Outlook 2010 to view free/busy information and cannot set Out Of Office automatic reply

    Hi All,
    Please help me.
    I have an issue where users are not able to use Outlook 2010 to view free/busy information and cannot set Out Of Office automatic reply. But they are can set Out Of Office automatic reply from OWA. My exchange server is Ms Exchange 2010.
    The test E-mail AutoConfiguration failed with this error:
    Autodiscover to https://mydomain.com/autodiscover/autodiscover.xml starting
    GetLastError=12175; httpStatus=0.
    Autodiscover to https://mydomain.com/autodiscover/autodiscover.xml Failed (0x800C8203)
    Autodiscover to https://autodiscover.mydomain.com/autodiscover/autodiscover.xml starting
    GetLastError=12007; httpStatus=0.
    Autodiscover to https://autodiscover.mydomain.com/autodiscover/autodiscover.xml Failed (0x800C8203)
    Local autodiscover for mydomain.com starting
    Local autodiscover for mydomain.com Failed (0x8004010F)
    Redirect check to http://autodiscover.mydomain.com/autodiscover/autodiscover.xml starting
    Srv Record lookup for http://autodiscover.mydomain.com/autodiscover/autodiscover.xml Failed (0x80072EE7)
    Srv Record lookup for mydomain.com starting
    Srv Record lookup for mydomain.com Failed (0x8004010F)
    Any idea?
    Thanks,
    Pieter

    OK.
    Please follow this step.
    1. As you said you are in coexistence step , so for now all endpoint already point to Exchange 2010 right?
    2. Check legacy owa redirect that you already configure
    3. In Exchange 2010 , Make sure that you already configure "Autodiscoverinternaluri" by this command set-clientaccessserver -identity "servername" -autodiscoverinternaluri
    https://autodiscover.domain.com/autodiscover/autodiscover.xml. and don't forget to create autodiscover record in DNS
    4. in Exchange 2010 , Make sure that you already configure "EWS" path by this command set-webservicesvertualdirectory -identity "XXX\Default web site name" -internalurl
    https://yourinternalurl/EWS/Exchange.asmx -externalurl https://yourexternalurl/EWS/Exchange.asmx
    5. don't forget to replicate freebusy from Exchange 2003 to Excahnge 2010 via public folder.
    You error look like client cannot get autodiscover process please check it again.

  • Cannot set up certs for trusted CAs going from 1.4.2_03 to 1.4.2_13

    Getting a wierd issue with "Cannot set up certs for trusted CAs" This works if we are using anything less then 1.4.2_07, but the minute we install 1.4.2_07 or 13 as the case may be we get the following Exception:
    log9: java.lang.ExceptionInInitializerError
    log9: at javax.crypto.Cipher.a(DashoA12275)
    log9: at javax.crypto.Cipher.getInstance(DashoA12275)
    log9: at com.gm.gwm.common.util.AesUtil.encrypt(AesUtil.java:31)
    log9: at com.gm.gwm.common.data.OfflineAuthenticatorDao.updatePassword(OfflineAuthenticatorDao.java:645)
    log9: at com.gm.gwm.common.service.OfflineAuthenticatorService.updatePassword(OfflineAuthenticatorService.java:141)
    log9: at main.jspService(_main.java:156)
    log9: at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    log9: at oracle.lite.web.JupServlet.service(Unknown Source)
    log9: at oracle.lite.web.JspRunner.service(Unknown Source)
    log9: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    log9: at oracle.lite.web.JupServlet.service(Unknown Source)
    log9: at oracle.lite.web.MimeServletHandler.handle(Unknown Source)
    log9: at oracle.lite.web.JupApplication.handle(Unknown Source)
    log9: at oracle.lite.web.JupApplication.service(Unknown Source)
    log9: at oracle.lite.web.JupHandler.handle(Unknown Source)
    log9: at oracle.lite.web.HTTPServer.process(Unknown Source)
    log9: at oracle.lite.web.HTTPServer.handleRequest(Unknown Source)
    log9: at oracle.lite.web.JupServer.handle(Unknown Source)
    log9: at oracle.lite.web.SocketListener.process(Unknown Source)
    log9: at oracle.lite.web.ClientListener.process(Unknown Source)
    log9: at oracle.lite.web.SocketListener$ReqHandler.run(Unknown Source)
    log9: Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    log9: at javax.crypto.SunJCE_b.<clinit>(DashoA12275)
    log9: ... 21 more
    log9: Caused by: java.lang.IllegalStateException: Already connected
    log9: at java.net.URLConnection.setUseCaches(Unknown Source)
    log9: at sun.net.www.protocol.jar.JarURLConnection.setUseCaches(Unknown Source)
    log9: at javax.crypto.SunJCE_d.a(DashoA12275)
    log9: at javax.crypto.SunJCE_b.g(DashoA12275)
    log9: at javax.crypto.SunJCE_b.f(DashoA12275)
    log9: at javax.crypto.SunJCE_t.run(DashoA12275)
    log9: at java.security.AccessController.doPrivileged(Native Method)
    Not sure what we are doing wrong.
        public static String encrypt(String value) throws AesException {
              try {
                   SecretKeySpec secKeySpec = new SecretKeySpec(fromHexString(encyptKey), algorithm);
                   Provider provider = new SunJCE();
                  Security.addProvider(provider);
                Cipher cipher = Cipher.getInstance(algorithm, provider);
                   cipher.init(Cipher.ENCRYPT_MODE, secKeySpec);
                   byte[] encryptedBytes = cipher.doFinal(value.getBytes());
                   return toHexString(encryptedBytes);
              } catch (Exception e) {
                   throw new AesException(e);
         }

    I added that late just in case, for some strange reason, the provider wasn't getting picked up.
    Here is the list of available providers:
    log9: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore
    ; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores)
    log9: Sun JSSE provider(implements RSA Signatures, PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
    log9: SUN's provider for RSA signatures
    log9: SunJCE Provider (implements DES, Triple DES, AES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    log9: Sun (Kerberos v5)
    log9: java.lang.ExceptionInInitializerError
    The minute I rollback to an older JVM this works.

  • "Cannot set up certs for trusted CAs" and Tomcat

    I have succeeded in downloading/installing the JCE component and writing a small java program that ecrypts and decrypts text.
    Now that I've tried to integrate this code into a web application, I'm getting the following exception message:
    java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs: java.lang.SecurityException: Cannot locate policy and/or framework files for signer restraint check!
         at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
         at javax.crypto.Cipher.a(DashoA6275)
         at javax.crypto.Cipher.getInstance(DashoA6275)
    I've copied the four JAR files into the web-inf/lib directory. I believe that I need to make changes to the appropriate policy file (which I assume is the catalina.policy file under the tomcat/conf folder) but this doesn't seem to make any difference.
    Can anybody help??
    Cheers,
    Ben
    PS - I DON'T want to copy the JARs into <java-home>\lib\ext

    i've been dealing w/ jdk1.3 and jce
    installation, configuration, and exceptions for a day
    now. i've recently upgraded to j2sdk1.4.1 and i have
    the same problems:
    java.lang.reflect.InvocationTargetException:
    java.lang.ExceptionInInitializerError:
    java.lang.SecurityException: Cannot set up certs for
    trusted CAs: java.lang.SecurityException: Cannot
    locate policy and/or framework files for signer
    restraint check!
    can you give me a little more detail around your
    explanation. in particular, i can get my encryption
    code to run as a command line app using the JDK alone.
    its once i try to run the code inside of tomcat that i
    get this exception.
    so far, i've tried putting all the .jars in my
    classpath, as well as web-inf/lib, as well as
    jre/lib/ext, as well as tomcat_home/common/lib and
    nothing works.
    could this still be a provider problem as you indicate
    and how does that explain the fact that it works with
    the JDK alone?Sun's JCE 1.2.2 and their JCE Provider doing a cross checking of the classes and their signatures. In JDK 1.4 that cross validation were removed, but JCE framework still checking the signature of the provider.
    You may also need to check which JRE you are using. On windows you have two of them by default: the one within JDK installation and the another one within "Programm Files". The last one is used by default if you didn't specify the path for java command.
    I've been using BouncyCastle JCE and their provider for a while. It works just fine in web-inf\lib directory under the JRE 1.3.1. They also have the signed jar for J2SE 1.4 that does not includes JCE framework.
    Note that you have to register your provider dynamically if you going to use it in the web application. You also have to make sure that your web app has enough rights for that (check the security properties if you are using security).
    BTW, which app container are you using?

  • I cannot set up a blue tooth connection between my apple ipod and phone

    I cannot set up a bluetooth connection between my apple ipod touch and an external speaker wirelessly. The speaker is a boombar and although I have been able to set  it up successfully between the speaker and my iphone, I have not been able to set it up with the ipod.  Please , any advice?

    Unpair the spear from the phone.
    Reset the speaker.
    Try with the Mac again.

  • Java.lang.SecurityException: Cannot set up certs for trusted CAs

    Hi,
    The application iam working on encrypts & decrypts files. The application is deployed on a standalone OC4j container on solaris 5.8. I have downloaded the following jar files
    jce1_2_2.jar
    sunjce_provider.jar
    local_policy.jar
    US_export_policy.jar
    and have declared them in the application.xml
    when i run the application i get the following exception.
    java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs: java.lang.SecurityException: Signer restraint check failed! at javax.crypto.SunJCE_b.<clinit>(DashoA6275) at javax.crypto.Cipher.a(DashoA6275) at javax.crypto.Cipher.getInstance(DashoA6275) at pdfDownload.jspService(_pdfDownload.java:215) [SRC:/pdfDownload.jsp:167] at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:484)
    Pls advise, is there any other setting that needs to be done ?
    Thanks & Regards
    Arun

    Hi,
    I got the solution for this. JCE 1.2.2 is supported on JDK 1.4.1 and JDK 1.4.2, but both of them have different unrestricted policy jars. I was able to solve the problem once I downloaded the unrestricted policy jars for JDK 1.4.2 (which is used by BEA 8.1 SP5) from the following URL : http://java.sun.com/j2se/1.4.2/download.html
    Regards,
    Prashant Kale.

Maybe you are looking for

  • Document security with JSP

    Hi, I was wondering if anyone could help or give me some ideas for this problem I have. The web site that I'm developing uses jsp. It has a public section and a private section that requires a username and password to log in to it. Users have the abi

  • Why CMYK Color Profiles Warning?

    Hi guys, I just made a couple of CMYK shades of grey. Here is a sample: http://www.pixentral.com/show.php?picture=1fo01uualiQLkc4uuLbXfnAoWsiVw When i export the PDF to High Quality Printing, i get Warning Icon with the message "The preset specifies

  • How dangerous is to use Arch as the base of webhosting servers?

    Hi all, I am wondering this because I want to build my webhosting infrastructure using archlinux, but I wanted to know, what pitfalls should I expect from doing this? Will the rolling release model eventually become to dangerous for this kind of busi

  • Error 1625

    Hello! I've a problem when I install iTunes 6. This message appears: "error: 1625 This installation is forbidden by system policy. Contact your system administrator. ..." But, i'm already admin !!! I don't understand why... The problem comes from *.m

  • Authorization for removing Billing Block

    Dear Experts, we all know that billing block is removed in the sales documents usually by the person authorized to remove it in VA02. I know we have to include authorization objects in roles and assign the role to user id. But how we can provide auth