Essbase Add-in Error - Cannot Find Message Database

Error #1040007 - Cannot find message database. Error received launching either the essbase add-in or app manager.Arbor path has been verified in path statement, and is first. Running under Win 2000, no changes to PC.Can anyone advise what may be causing this problem? Specific question: Where would the "message database be located?".Randy [email protected]

It's used to point to the message database (seriously)... LOL! I've never seen it used anyplace I've done Essbase and to my knowledge no one has ever been the worse off for it. It's probably just as well that you deleted it.Regards,Bruce

Similar Messages

  • Logging Error Message in Console  [Servlet Error]-[Cannot find FacesContex]

    Hi,
    I am using Web Application with JSF . but when i log in into the web appl everthing is fine but in back end i mean the console of RAD Tool having some logging Error message:
    SRVE0026E: [Servlet Error]-[Cannot find FacesContext]: javax.servlet.jsp.JspException: Cannot find FacesContext
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java(Compiled Code))
    at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java(Compiled Code))
    at org.apache.jsp._index._jspService(_index.java:86)
    at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
    So could you please help me find out the solution for this :
    While i am using the code in jsp page:
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META http-equiv="Content-Style-Type" content="text/css">
    <TITLE>Web App
         <f:view>
              <h:outputText value="#{dataInfo.info}"/>
         </f:view>
    </TITLE>
    Suggest me the solution:
    Regards,
    Prabhat

    This usually means that you call the JSF page the wrong way. Try something like http://hostname:port/servletcontextroot/faces/page.jspx
    --olaf                                                                                                                                                                                                                                                                                                   

  • [ME21] error message : cannot find message associated with key

    Dear all,
    I try to develop an Mobile application using smartSync,
    but when the application running (on client) got an error message :
    Error: 500
    Location: /UPLOAD_TEST/upload_testapp/Menu.do
    Internal Servlet Error:
    javax.servlet.ServletException: cannot find message associated with key : dispatcher.forwardException
    at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:238)
    at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:423)
    at 0002findex0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.java:62)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    note:
    when create this application, I'm using tcode : merep_sbuilder
    Sync type : U01 - Upload using SMAPIs
    Bapi wrapper : MEREP_CONTACT_CREATE
    SAP Mobile Engine 2.1
    and generate .war file using MDK tool
    any one know about this ??
    thanks & regards,

    Hi,
    this error comes up when the destination serlvet throws an exception other than ServletException!
    Its a standard tomcat bug!
    Rgds Thomas
    -->
    http://issues.apache.org/bugzilla/show_bug.cgi?id=19114
    -->From apache.org:
    When a forwarded servlet throws an exception other than ServletException or
    IOException, the thrown exception is lost. This is due to the line:
    throw new ServletException(sm.getString("dispatcher.forwardException", t));
    (found in org/apache/tomcat/facade/RequestDispatcherImpl.java:210)
    the earlier catched t is here not passed into the constructor of
    ServletException but into getString.
    To reproduce construct a servlet that throws an Exception (other than
    ServletException and IOException) and another servlet that forwards to it. You
    will get just a forwardException (if you have the proper locale strings
    installed!) but the originally thrown exception will get lost forever.

  • Error : 'cannot find symbol getText()'

    please check my java coding. when I compile it, the error: 'cannot find symbol
    getText() ' is appear. What wrong with this coding.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class buatAction
    public static void main(String[] args)
    JFrame f= new JFrame("Contoh Action");
    f.setSize(150,200);
    f.setLocation(200,200);
    f.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent we)
    System.exit(0);
    //setkan button
    final JPanel OK = new JPanel();
    JButton buttonOK = new JButton("OK");
    OK.add(buttonOK);
    final JPanel txt = new JPanel();
    JTextField inputText = new JTextField(15);
    inputText.setFont(new Font("Serif", Font.PLAIN, 12));
    txt.add(inputText);
    Container content = f.getContentPane( );
    content.setLayout(new GridLayout(1,1));
    content.add(txt);
    content.add(OK);
    buttonOK.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    String ayat = txt.getText().getActionCommand();
    System.out.println(ayat);
    f.setVisible(true);
    }

    please check my java coding. when I compile it, the error: 'cannot find symbol
    getText() ' is appear. What wrong with this coding.
    final JPanel txt = new JPanel();...
    buttonOK.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    String ayat = txt.getText().getActionCommand();
    System.out.println(ayat);
    });Final variable 'txt' is a JPanel. JPanels don't have a 'getText()' method; hence
    the compiler diagnostics message.
    kind regards,
    Jos
    ps. better stick your code between [code] ... [/code] tags for readability reasons.

  • Installation error: cannot find the data source checking utility (dbcheck)

    BO XI 3.0:
    During the process of installing "Dashboard and Analytics Servers", we've got this error.
    Installation error: cannot find the data source checking utility (dbcheck)
    Have anyone encountered this issue? We can't move on after this error.
    Thanks,

    I've fixed the problem.
    Lianjun.
    Lianjun (guest) wrote:
    : I've tried to run the latest beta version of OMWB to migrate
    from
    : MS SQLSERVER7.0 to Oracle8i. At step 4:Source Database Details,
    : every time I put in the data source name (which is in the
    control
    : panel-ODBC data source Administrator), it gave an error message
    : that Data source name not found and no default driver
    : specified).Anybody has any ideas?
    : Thanks for the help!
    : Lianjun.
    null

  • Cannot find message resources under key

    Hi All,
    I get the following error in the JSP page in weblogic 9.2 environment. The same JSP works fine in 8.1
    Cannot find message resources under key ${language}' javax.servlet.jsp.JspException: Cannot find message resources under key ${language} at org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103) at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294) at org.apache.strutsel.taglib.bean.ELMessageTag.doStartTag
    The web.xml entry:
    <servlet><servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>application</param-name>
    <param-value>com.ccrg.resources.common.ApplicationResources</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    struts-config.xml entry:
    <message-resources parameter="resources.ApplicationResources"/>
    <message-resources parameter="resources.TextResources_Profile_en" key="TEXT_RESOURCES_PROFILE_en"/>
    <message-resources parameter="resources.TextResources_Profile_fr" key="TEXT_RESOURCES_PROFILE_fr"/>
    the login.jsp:
    <%@ taglib uri="/WEB-INF/avis-html.tld" prefix="avishtml" %>
    <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
    <%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
    <%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic-el" %>
    <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
    <c:set var="language" value="TEXT_RESOURCES_PROFILE_${SiteLanguage}/profile"/>
    </c:if>
    <bean-el:message key="profile.login.pi.memberLogin" bundle="${language}"/>
    thanks,
    Balaji

    Hi Balaji,
    Did you find any solution ?
    I have the same problem.
    Thanks in advance!

  • Cannot find message resources under key org.apache.struts.action.MESSAGE ?

    Hi All,
    I am getting the following error.. while running a simple application in struts.
    Cannot find message resources under key org.apache.struts.action.MESSAGE ?
    As I have searched in google but could not find the concreate example so please help and give me a proper answer..
    my struts-config.xml file is as .....
    <code>
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
    <struts-config>
    <!-- ========== Form Bean Definitions ============ -->
    <form-beans>
         <form-bean name="login" type="test.struts.LoginForm" />
    </form-beans>
    <!-- ========== Global Forward Definitions ========= -->
    <global-forwards>
    </global-forwards>
    <!-- ========== Action Mapping Definitions ======== -->
    <action-mappings>
    <action
         path="/login"
         type="test.struts.LoginAction"
         name="login"
         input="/jsp/LoginView.jsp"
         validate="true">
         <forward name="valid" path="/jsp/MainMenu.jsp" />
         <forward name="invalid" path="/jsp/LoginView.jsp" />
         </action>
    </action-mappings>
    <message-resources null="false" parameter="test.struts.MessageResources"/>
    </struts-config>
    </code>
    And my LoginView.jsp file is as:
    <code>
    <!-- LoginView.jsp -->
    <%@ taglib uri="/struts/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/struts/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/struts/WEB-INF/struts-logic.tld" prefix="struts" %>
    <HTML>
    <HEAD><TITLE><bean:message key="title.login" /></TITLE></HEAD>
    <BODY>
    <bean:message key="heading.login" />
    <html:errors />
    <html:form action="/login">
         <p>
         <bean:message key="label.userId" />:
         <html:text property="userId" size="10" />
         <br>
         <bean:message key="label.passWord" />:
         <html:password property="passWord" size="10" />
         <br><br>
         <html:submit>
              <bean:message key="button.submit" />
         </html:submit>
    </html:form>
    </BODY>
    </HTML>
    </code>
    MessageResources.properties is as :
    <code>
    button.submit=Send for Verification
    error.no.userId=<li>User ID is a required field</li>
    error.no.passWord=<li>Password is a required field</li>
    error.invalid.login=<li>The User ID and/or Password are invalid. Please try again.</li>
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    label.userId=User ID
    label.passWord=Password
    heading.login=<H2>Enter your user information</H2>
    title.login=Login Screen
    title.mainmenu=Welcome
    heading.mainmenu=<H1>Welcome!</H1>
    label.userType=<H2>You are authorized to use this system as a</H2>
    </code>
    Please reply soon.
    Thanks in advance
    Amitindia

    Hi All,
    I am getting the following error.. while running a simple application in struts.
    Cannot find message resources under key org.apache.struts.action.MESSAGE ?
    As I have searched in google but could not find the concreate example so please help and give me a proper answer.. my struts-config.xml file is as .....
    <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts- 
      config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-
    config_1_0.dtd"> <struts-config> <!-- ========== Form Bean
    Definitions ============ --> <form-beans> <form-bean name="login"
    type="test.struts.LoginForm" /> </form-beans> <!-- ========== Global Forward Definitions ========= --> <global-forwards> </global-
    forwards> <!-- ========== Action Mapping Definitions ======== --> <action-mappings> <action path="/login" type="test.struts.LoginAction" name="login" input="/jsp/LoginView.jsp" validate="true"> <forward name="valid" path="/jsp/MainMenu.jsp" /> <forward name="invalid" path="/jsp/LoginView.jsp" /> </action> </action-mappings> <message-resources null="false" parameter="test.struts.MessageResources"/> </struts-config>
    And my LoginView.jsp file is as:
    <!-- LoginView.jsp --> <%@ taglib uri="/struts/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/struts/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/struts/WEB-INF/struts-logic.tld" prefix="struts" %> <HTML> <HEAD><TITLE><bean:message key="title.login" /></TITLE></HEAD> <BODY> <bean:message key="heading.login" /> <html:errors /> <html:form action="/login">
    <bean:message key="label.userId" />: <html:text property="userId" size="10" /> <br> <bean:message key="label.passWord" />: <html:password property="passWord" size="10" /> <br><br> <html:submit> <bean:message key="button.submit" /> </html:submit> </html:form> </BODY> </HTML>
    MessageResources.properties is as :
    button.submit=Send for Verification error.no.userId=<li>User ID is a required field</li> error.no.passWord=<li>Password is a required field</li> error.invalid.login=<li>The User ID and/or Password are invalid. Please try again.</li> errors.footer=</ul><hr> errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul> label.userId=User ID label.passWord=Password heading.login=<H2>Enter your user information</H2> title.login=Login Screen title.mainmenu=Welcome heading.mainmenu=<H1>Welcome!</H1> label.userType=<H2>You are authorized to use this system as a</H2>
    Please reply soon. Thanks in advance Amitindia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Oracle 11gR1 on Windows Xp Error Cannot find J2SE SDK installed at path

    When I type in path for java.exe in SQL Dev. , I get error 'Cannot find J2SE SDK installed at path: C:\Program Files\Java\jre6.' when I entered the path C:\Program Files\Java\jre6\bin\java. What is the reason for this error? How can I correct it? Database installation said it was successful

    SQL Developer needs the Java JDK not the JRE to operate successfully. Your path looks like a path to the JRE. There is a windows download that comes complete with a Java Developer kit.
    regards
    Niall

  • SyncBo Example - cannot find message associated with key

    Hi,
    I followed the tuturial to create a SmartSync Project.
    And when I run the project I've got a Servlet Exception:
    javax.servlet.ServletException: cannot find message appropriated with key: dispatcher.forwardException.
    What I need to change?
    Thanks a lot,
    Rachid

    Hi,
    this error comes up when the destination serlvet throws an exception other than ServletException!
    Its a standard tomcat bug!
    Rgds Thomas
    -->
    http://issues.apache.org/bugzilla/show_bug.cgi?id=19114
    -->From apache.org:
    When a forwarded servlet throws an exception other than ServletException or
    IOException, the thrown exception is lost. This is due to the line:
    throw new ServletException(sm.getString("dispatcher.forwardException", t));
    (found in org/apache/tomcat/facade/RequestDispatcherImpl.java:210)
    the earlier catched t is here not passed into the constructor of
    ServletException but into getString.
    To reproduce construct a servlet that throws an Exception (other than
    ServletException and IOException) and another servlet that forwards to it. You
    will get just a forwardException (if you have the proper locale strings
    installed!) but the originally thrown exception will get lost forever.

  • Installation Error, Cannot find "CrossRef"

    I am trying to install Lync 2013 on a new server and I'm having an issue while preparing Forest, this is the error I am getting.
    > Prepare Forest
    Enable-CSAdForest -GroupDomain dc.emtecsu.com -Verbose -Confirm:$false -Report "C:\Users\......\AppData\Local\Temp\Enable-CSAdForest-[2014_06_18][10_43_04].html"
    Creating new log file "C:\Users\.......\AppData\Local\Temp\Enable-CSAdForest-9033ab00-1f99-4ea1-b23d-0ce8218c6c24.xml".
    Enable the Active Directory forest to host Lync Server 2013 deployments.
    Creating new log file "C:\Users\......\AppData\Local\Temp\Enable-CSAdForest-[2014_06_18][10_43_04].html".
     WARNING: Enable-CSAdForest failed.
     WARNING: Detailed results can be found at "C:\Users\.......\AppData\Local\Temp\Enable-CSAdForest-[2014_06_18][10_43_04].html".
    Command execution failed: Cannot find the object "CrossRef" in Active Directory.

    Have you looked at the note on Enable-CSAdForest?
    "If you receive the following error, “Cannot find the object ‘CrossRef’ in Active Directory” while running
    tasks to prepare a child domain of a single-forest environment with multiple domains, you may have to manually add the RTCComponentUniversalServices group from the parent domain to the Windows Authorization Access group in the child domain." - http://technet.microsoft.com/en-us/library/gg412764.aspx
    Also look at a similar thread: http://social.technet.microsoft.com/forums/lync/en-US/868714f4-26f6-4c19-86ff-cc69935b0153/cannot-find-the-object-crossref-in-active-directory
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • [SOLVED] internal error Cannot find suitable emulator for x86_64

    Hi,
    After a reboot due to unrelated issues, virt-manager is not showing any of the VMs I had configured via qemu:
    I checked connection properties, and everything else is showing up correctly, like the networks and storage. I tried to create new VMs out of existing storage and got this message:
    Googling it suggested this happens when KVM module is not loaded. I modprobed kvm, kvm_intel and still got same result.
    Systemd gave me the following:
    % systemctl status libvirtd
    libvirtd.service - Virtualization daemon
    Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled)
    Active: active (running) since Sat 2013-06-08 08:55:19 IST; 29min ago
    Main PID: 1499 (libvirtd)
    CGroup: name=systemd:/system/libvirtd.service
    ├─ 834 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf
    ├─ 863 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat_static.conf
    ├─ 881 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/closed_dhcp.conf
    └─1499 /usr/bin/libvirtd -p /var/run/libvirtd.pid
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:20 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:20 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:35 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:35 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Googling that seems to indicate that this happens when virtualization is disabled by BIOS. But cpuinfo tells me that vm is supported:
    % grep vmx /proc/cpuinfo | uniq -c
    8 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
    Can anyone help me? Has anyone else faced a similar problem?
    Here are some version info:
    local/libvirt 1.0.6-1
    API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
    local/qemu 1.4.2-1
    A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation.
    Of which, qemu got updated just today. I will try rolling back to older version and post and update.
    Ninja edit: Looks to be qemu. Just running qemu gives me this error:
    % qemu-system-x86_64
    qemu-system-x86_64: error while loading shared libraries: libiscsi.so.1: cannot open shared object file: No such file or directory
    EDIT: The resolution was
    pacman -S libiscsi libaio
    systemctl restart libvirtd
    EDIT2: Made subject line better searchable
    Last edited by railmaniac (2013-06-08 04:19:24)

    HI,
    First of all thanks a lot for this post. I am facing the same issue since yest.
    After reboot, my VMs gone missing and even virt-manager was not working (as shown in the screenshots which you have pasted in your post).
    Now after trying out the workout which you had mentioned, I am able to get the virt-manager working.
    But I am not sure if I can get back my missing VMs .
    I am new to linux. Kindly guide me on how I can get back those VMs.
    [root@skoduri lib64]# ls /etc/libvirt/qemu/
    networks  rhel6-vm2.xml  rhel6.xml
    [root@skoduri lib64]#
    [root@skoduri lib64]# ls /etc/libvirt/storage/
    autostart  default.xml  storage_1.xml
    [root@skoduri lib64]#
    [root@skoduri lib64]#
    Thanks,
    Soumya

  • Error: cannot find symbol method Text

    Hi
    I want to make an index for txt files by using Lucene, it got an error: cannot find symbol method Text. what is it about? Does it mean the Text is not in Field?
    thank you v much
    pls look into my code:
    package TestLucene;
    import java.io.File;
    import java.io.FileReader;
    import java.io.Reader;
    import java.util.Date;
    import org.apache.lucene.analysis.Analyzer;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.document.Field;
    import org.apache.lucene.index.IndexWriter;
    import org.apache.lucene.document.Fieldable;
    import java.io.Serializable;
    * This class demonstrate the process of creating index with Lucene
    * for text files
    public class Lucene {
         public static void main(String[] args) throws Exception{
              //indexDir is the directory that hosts Lucene's index files
            File   indexDir = new File("D:\\luceneIndex");
            //dataDir is the directory that hosts the text files that to be indexed
            File   dataDir  = new File("D:\\luceneData");
            Analyzer luceneAnalyzer = new StandardAnalyzer();
            File[] dataFiles  = dataDir.listFiles();
            IndexWriter indexWriter = new IndexWriter(indexDir,luceneAnalyzer,true);
            long startTime = new Date().getTime();
            for(int i = 0; i < dataFiles.length; i++){
                 if(dataFiles.isFile() && dataFiles[i].getName().endsWith(".txt")){
              System.out.println("Indexing file " + dataFiles[i].getCanonicalPath());
              Document document = new Document();
              Reader txtReader = new FileReader(dataFiles[i]);
              document.add(Field.Text("path",dataFiles[i].getCanonicalPath()));
              document.add(Field.Text("contents",txtReader));
              indexWriter.addDocument(document);
    indexWriter.optimize();
    indexWriter.close();
    long endTime = new Date().getTime();
    System.out.println("It takes " + (endTime - startTime)
    + " milliseconds to create index for the files in directory "
              + dataDir.getPath());

    Hal-.- wrote:
    I downloaded Lucene from its homepage, I have tried Lucene 2.3.0 and Lucene 2.2.0, but same errors occurs which is cannot find symbol method Text.
    I checked class Field under Lucene, it doesn't have Text function. Well there you go. You can't call methods that don't exist.
    What should I do to add two Fields "path" & "contents" into Document?It seems very likely that the object that represents an indexed document, has some way to express the concepts of "path" and "contents". You should probably just read the docs some more.
    But other than that I have no idea. Ask on a Lucene forum.

  • Xmlreader schema validation error: Cannot find the declaration of element

    I have multiple schemas with namespaces but I would like to validate an xml document without namespaces. The schemas all have elementFormDefault="unqualified" in the root element.
    I am encountering error below in my validation using xmlreader:
    ERROR:
    Cannot find the declaration of element 'NewTradenetDeclaration'.
    my code is:
    xmlReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    xmlReader.setFeature(VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_NAMESPACE_FEATURE_ID, true);
    xmlReader.setProperty(JAXP_SCHEMA_LANGUAGE, XMLConstants.W3C_XML_SCHEMA_NS_URI);
    String schemaURI = "NewTradenetDeclaration.xsd";
    // ive tried all of the ff but throws the same error
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, "urn:crimsonlogic:tn:schema:xsd:NewTradenetDeclaration NewTradenetDeclaration.xsd");
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, schemaURI);
    xmlReader.setProperty(JAXP_SCHEMA_SOURCE, schemaURI);
    // set entity resolver to resolve xsd locations
    MyResolver resolver = new MyResolver();
    xmlReader.setEntityResolver(resolver);the entity resolver has:
    public InputSource resolveEntity (String publicId, String systemId) {
      String filename =  "c:/workspace/TXParser/schema/"+ systemId.substring(systemId.lastIndexOf("/")+1);
      File f = new File(filename);
      InputSource source = null;
      try {
        source = new InputSource(new FileReader(f));
      } catch(Exception e) {
      System.out.println("InputSource exception: " + e.getMessage());                 
      return source;
    }Help please. Thanks.

    I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(

  • Installation error:  Cannot find a J2SE SDK installed at path C:\Program Fi

    I am installing latest version of SQL Developer, Release 1.2. I have Sun Java 2 Standard Edition Version 1.5.0 (build 1.5.0_10-b03). When I browse and select the java.exe found it comes up with error: Cannot find a J2SE SDK installed at patch
    C:\Program Files\Java\jre1.5.0_10
    I am installing the version I downloaded for Windows systems with JDK1.5.
    I have tried on two different machines.
    Any ideas?

    This is going to seem loooong, but comprehensive.
    I'd initially always suggest using the bundled
    package, since that's supposed to be a tested and
    proven combination.You know what, I'm gonna be mighty surprised if you're implying that Oracle hasn't 'tested and proven' the releases at http://www.oracle.com./technology/software/products/sql/index.html other than the first 77 MB download labeled Oracle SQL Developer for Windows... :)
    After having problems with a graphics card for
    example, installing the latest JDK might be
    indicated.Huh?!? Not a clue what you're talkin' 'bout! :S
    It's also easy for users who don't know which Java
    version to download, or even where to find it! You
    guys have proven that: although it's stated you need
    .First of all, it says right there on the download page (http://www.oracle.com./technology/software/products/sql/index.html) that:
    "JDK 1.5 (JDK 5.0) is required. This is the minimum JDK version required"
    And we've "proven that [..] although it's stated you need the JDK, [we]'ve tried running with the JRE" and have NOT been able to run the application. It just presents the user a dialog box to locate the 'SDK' manually and exits gracefully if you try to dismiss it. So, conclusively proven, the JDK (or as SQL Developer puts it, Java SDK) is required- QED.
    And given users might have several versions running
    on the same machine (I have half a dozen), sqldev
    could easily pick up a wrong version.And every JRE installation (atleast all of Sun's) make sure they update the default (via PATH and other required system variables) JRE point to the latest one installed. So if you have anything 1.5+ you're good to go; if not, you've got an incompatile JRE. Doesn't sound that hard to me!
    As for being bulky, even without the bundled JDK, it
    still is.Ya missed the point. Developers are making Java applications bulkier by including the JRE/JDK with their distributions. A SQL Developer release sans JDK is about 46 MB; with JDK that climbs to 77 MB (sizes quoted from download page linked above).
    Imagine what happens when you have, besides SQL Developer (JDK 1.5 included), some-cool-java-app that also includes the JRE/JDK it was built on; and then another-java-app that also includes a JRE/JDK... I bet JDeveloper also comes with a JDK bundled in. So, now you have FOUR copies of JRE/JDK (aside from the "have half a dozen" that probably installed themselves via Java Update Checker)!
    Here's the big picture, the savings in disk space would only be the beginning of your benefits. Here's a few others:
    - Class Data Sharing (http://java.sun.com/javase/6/docs/technotes/guides/vm/class-data-sharing.html) introduced in Java SE 5.0 provides for storing definitions of commonly used classes in a representation closer to machine code, even closer than bytecode, this reducing load and startup time. Plus all VM's launced using that particular distribution get to share the cache- Performace+ !!
    Running each app offa' it's own VM just causes multiple caches to be loaded. You just multiplied your losses! :(
    - Sun is currently working on a way to have applications simply inject into a running JVM. That way, there is no load and startup time for the JVM, just the time to load you app classes. Using different distros would completely defeat this!
    (The reason why this feature isn't out yet is because they're still trying to make it possible to specify hitherto VM configurations like security and logging as application configurations. Then there's also the issue of setting up class loading boundaries between applications.
    You say you don't have to bring over the VB runtime
    for each app? I remember in the 90's doing it all the
    time. Of course, being MS, now that's not necessary
    anymore, since it's "magical" Windows. I don't have
    any machine from Sun, but for sure they've got Java
    bundled with it, right?I don't believe you had to do that since VB 5; and that's because MS realized that they messed up on this very point upto then! Sun worked the simple solution to that into their deployment strategy- install only ONE runtime and run all apps off that. As for you're half-a-dozen, I think you can safely uninstall the five older versions; because, even today, people are running apps developed using JDK1.1 on Java SE 6.0!
    Again, I find the most logical difference between JRE
    and JDK being the debugger. As you say it yourself:
    JRE for end-users, who don't need to do any
    debugging.
    Now, sqldev is not just a table browser, but also for
    debugging PL/SQL. 1 + 1 = 2.I think it's a little naive to differentiate between the JRE and JDK on just the debugger! Aside from the obvious inclusion of a compiler, the JDK has several other tools for monitoring/managing the heap, threads and logging on the fly. There's also the Doclet API and Sun's javadoc implementation, dev interfaces for instrumenting the VM, native interfaces, ...
    And I reiterate, we're talkin' PL/SQL developers here. Why would I want to give a PL/SQL developer a Java Development Kit?!? ;|
    Nevertheless, as said in the other thread, if the
    team discloses how to circumvent the SDK check at
    startup, you can go ahead and use the JRE. In any
    case, you'd have to agree that won't work as
    out-of-the-box solution...You're right, it won't work like a standard Windows OOTB app. But, it WILL work as a Java OOTB that only mandates that there be a JRE available; just like the scores of Java apps out there- from tiny little Pong clones to large IDE's like NetBeans.
    BTW, don't even think about quoting Websphere/Rational/Eclipse as counter-arguments. They are the biggest offenders as far as this issue goes. And jikes is an abomination, a curse Sun must carry as a result to opening the VM Spec. But, I digress...

  • Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache

    hi,
    I have created a separate project which contains a class which has some generic methods- its a Utility class.[ its a  class library project ]
    I added this dll into my SharePoint project's wsp package [package--> advanced-->add assembly project from output ]  [ SP 2013/ VS 2012]
    So till yesterday everything was working fine, its has successfully deployed in the GAC.
    But today when I tried to deploy my solution I got this error
    "Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache" .
      I closed the  VS and did iisreset , and uninstalled dll using powershell . and i  went to package removed the dll from the wsp package and deployed again.
    Now when i added  the  dll into this package again, it failed to deploy.
    can anyone tell ,  why this is happening. i have not done any changes in the dll yesterday or today.
    suddenly , it  started behavin stranegly. 

    Use the power shell command to delete dll
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-install-or-uninstall-dll-in-gac-using-powershell/

Maybe you are looking for

  • LaserJet 2015 prints black boxes instead of PDF

    We have four LaserJet 2015 printers that are being served by a Windows 2003 server on a network.  In one application we enter data into a web based application for an outside vendor.  That vendor then "packages" the data into a pdf and sends it back

  • Adobe pdf resource files not found

    All of a sudden I can't convert MS Office 2007 files to PDF. I get the error message 'unable to find adobe pdf resource files.' The solutions recommended on other forums don't work. I can print to abobe PDF. Using Vista for Business, all service pack

  • Data centre connectivity options

    Hello I am currently investigating a dual data centre design running in active/active mode. The data centres will each have connectivity to our WAN (MPLS) and to the Internet. They will have also have dedicated links to each other for site replicatio

  • Youtube issues via widget - iWeb 09

    Yesterday i updated my website and I wanted to add a few new videos to my page and was surprised that the URL I copied from youtube will not work in iWeb. It kept saying the URL was invalid. I noticed a few months ago youtube changed the URL's for al

  • Linking SCSI baed flat-bed scanner to new Mac Pro with PCI-Express

    I need information on how to link my current scanner (Microtek Scanmaker 4) with a recently ordered Mac Pro. It is a SCSI based peripheral, and the only (last) of my currently owned peripherals that I'll need after getting my new Mac Pro. I've been s