EJB classpath problem when refering a DAO in library jar file

Hi
When I tried to deploy an EJB jar file in 10g which references the DAO for getting database[SQL Server2000] query results.Its not retriving data nor throwing any exceptions.Other DAO business methods which do not access database are working well.
When I tried to import the DAO inside a JSP and calling the DAO data access method which is working fine. Even I have set the resource-ref [datasource JNDI Name] in ejb-jar.xml files for the EJB beans, but its not referencing. If you have any ideas, how to resolve this problem, please forward me your suggestion.
Thanks in Advance
Best Regards
Venugopal Balu

Hi
When I tried to deploy an EJB jar file in 10g which references the DAO for getting database[SQL Server2000] query results.Its not retriving data nor throwing any exceptions.Other DAO business methods which do not access database are working well.
When I tried to import the DAO inside a JSP and calling the DAO data access method which is working fine. Even I have set the resource-ref [datasource JNDI Name] in ejb-jar.xml files for the EJB beans, but its not referencing. If you have any ideas, how to resolve this problem, please forward me your suggestion.
Thanks in Advance
Best Regards
Venugopal Balu

Similar Messages

  • Got error when trying to generate Java proxy jar file for webservice

    Hi,
    I am having a warning message when trying to generate java proxy jar file on weblogic8.1
    webservice test web app, the message is as follows:
    "Warning Failed to generate client proxy from WSDL definition for this service.
    Prescription Please verify the <types> section of the WSDL."
    in the mean time, on weblogic starting terminal, I saw the following exceptions,
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\AlphaLength4Deserializer.java:36: cannot resolve symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkLengthFacet(__typed_obj,4L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\OSIFieldAnonTypeDeserializer.java:36: cannot resolve symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkMaxLengthFacet(__typed_obj,69L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\AlphaLength2Deserializer.java:36: cannot resolve symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkLengthFacet(__typed_obj,2L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\FreeFormAnonTypeDeserializer.java:36: cannot resolve symbol
    symbol : class FacetUtils"
    Can anybody help me about this issue? I attached WSDL file, also United Airlines
    got an enterprise weblogic license deal with BEA, any help will be highly appreciated.
    Thanks!!!
    Naichen
    [ModifyPNRWSContract.wsdl]

    Hi Naichen,
    I was able to successfully run both the autotype and clientgen Ant task, on the
    WSDL you provided. The code behind those Ant tasks are pretty much what the WebLogic
    Web Services test page run. Are you using WLS 8.1 SP2? If not, you might want
    to try with that version.
    Regards,
    Mike Wooten
    "Naichen Liu" <[email protected]> wrote:
    >
    >
    >
    Hi,
    I am having a warning message when trying to generate java proxy jar
    file on weblogic8.1
    webservice test web app, the message is as follows:
    "Warning Failed to generate client proxy from WSDL definition for this
    service.
    Prescription Please verify the <types> section of the WSDL."
    in the mean time, on weblogic starting terminal, I saw the following
    exceptions,
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\AlphaLength4Deserializer.java:36: cannot resolve symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkLengthFacet(__typed_obj,4L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\OSIFieldAnonTypeDeserializer.java:36: cannot resolve
    symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkMaxLengthFacet(__typed_obj,69L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\AlphaLength2Deserializer.java:36: cannot resolve symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkLengthFacet(__typed_obj,2L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\FreeFormAnonTypeDeserializer.java:36: cannot resolve
    symbol
    symbol : class FacetUtils"
    Can anybody help me about this issue? I attached WSDL file, also United
    Airlines
    got an enterprise weblogic license deal with BEA, any help will be highly
    appreciated.
    Thanks!!!
    Naichen

  • Problem with JSP using bean packaged in jar file

    Hi,
              I am trying to use a java bean in a jsp file. The java bean is packaged
              into a jar file. I am getting class not found compilation error. If the
              bean remains to be a seperated class file, everything work well.
              Does anyone know how I can use bean in a jar file within jsp , i.e. to
              allow the bean to be found during compilation ?
              Thanks,
              Terence.
              [email protected]
              

    Jacek,
              Thanks for replying.
              My JSP's are just files in my document root . However, I found a solution to
              my
              problem. That is to have the jar file defined in my weblogic.class.path. I may
              have missed some files in my original jar file which causes my problem.
              Mayby I should package everything into a web application for deployment. That
              will be my next step.
              Thanks anyway.
              Terence.
              Jacek Laskowski wrote:
              > Terence Lai wrote:
              > >
              > > Hi,
              > >
              > > I am trying to use a java bean in a jsp file. The java bean is packaged
              > > into a jar file. I am getting class not found compilation error. If the
              > > bean remains to be a seperated class file, everything work well.
              >
              > How do you use the JSP file ? Is it a part of web application ? If so,
              > the bean jar package should be located in WEB-INF/lib directory. It's
              > also recommended to put the bean class into a package, so it's not in
              > 'unnamed' package, and <jsp:useBean> can find it.
              >
              > >
              > > Does anyone know how I can use bean in a jar file within jsp , i.e. to
              > > allow the bean to be found during compilation ?
              >
              > see above.
              >
              > > Terence.
              >
              > Jacek Laskowski
              > HP Consulting
              

  • Classpath problem when deploying a persistence unit (in JBoss)

    Hello,
    I have a JAR file containing an EJB with a persistence.xml file.
    I also have another JAR project containing a persistent annotated POJO class that the persistence unit is supposed to map.
    I defined the class in the persistence unit using a class XML element, but because it's in another JAR, the persistence unit implementation cannot find it. I tried to use a jar-file element instead and specify the name of the JAR containing the POJO, and from the log it seems the class is found and identified as persistent, but then the actual mapping operation fails because of the same reason! I also tried to edit the classpath property in the EJB JAR's manifest fileto include the POJO JAR, but that did not help too...
    Does anyone know what I'm missing here and how to make the persistence unit succeed in mapping the POJO class?
    Thanks.

    Ok, some more details regarding the problem:
    Here is the persistence unit definition:
    <persistence-unit name="NorthwindPU" transaction-type="JTA">
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>jdbc/NorthwindDB</jta-data-source>
              <!-- <class>personal.test.domain_layer.Product</class> -->
              <jar-file>TestProjectPersistence.jar</jar-file>
              <properties>
                   <property name="hibernate.transaction.factory_class"
                        value="org.hibernate.transaction.CMTTransactionFactory"/>
                   <property name="hibernate.transaction.manager_lookup_class"
                        value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
                   <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
                   <property name="hibernate.current_session_context_class" value="jta"/>
              </properties>
    </persistence-unit>Here is the stack trace I get when starting the server and deploying the application:
    javax.persistence.PersistenceException: [PersistenceUnit: NorthwindPU] class or package not found
         at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1093)
         at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:871)
         at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:758)
         at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
         at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
         at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
         at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
         at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
         at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
         at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
         at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
         at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
         at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
         at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
         at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
         at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
         at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
         at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
         at org.jboss.Main.boot(Main.java:209)
         at org.jboss.Main$1.run(Main.java:547)
         at java.lang.Thread.run(Unknown Source)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Hashtable containsKey() problem when String key is read from a file - HELP

    I'll try to be brief:
    I open a .txt file of Unicode encoding (not ANSI) in order to fetch some info.
    After I manipulate each line with splits etc I use a String as a key to a Hashtable.
    The problem is that later inside my code, I try to check wether this key (and hence its corresponded value) exists and I get a false value from the containsKey() method.
    and here's the code (I have embedded some comments //-type that address to this thread):
    FileInputStream fis = new FileInputStream(initFilename);
    InputStreamReader isr = new InputStreamReader(fis, "UTF-16");
    BufferedReader br = new BufferedReader(isr);
    lineText = loadSubiPhraseFilter(br);
    //In the loadSubiPhraseFilter method
    //parsing an input like this:
    //&#948;&#972;&#958;&#945; &#964;&#974; &#920;&#949;&#974;,1:1,2:2
    //Yeah, I know, its all greek to you ;)
    //Thus we first split the line with ','
    //we split the first token with ' ' and each one of the N words,
    //serves as an index in a N-dimension hashtable
    //This is achieved implicitly by adding another hashtable as a value to a String key etc...
    //When all words are added, the hashtable which contains the last word is used
    //to put another hashtable whose only key is the String "Index"
    //which points to the rest of the data. The thing is, I never get that far...
    //I dont get to even get a positive containsKey() when giving an inserted key at a later time
    //here's the loading procedure
    while((lineText = br.readLine()) != null && (lineText.charAt(0) != '#'))
         String [] info = lineText.split("[,]");
         /*Load subi indeces in a vector*/
         Integer [][] subiIndex = new Integer [info.length-1][2];// = new Vector<Integer>();
         for(int i = 1; i < info.length; i += 1)
              //load subiIndex here...
         /*Then fetch phrase to be modified and load its 'n' words in an n-dimesion hash which will utterly point to the subi indeces*/
         /*Starting from the last word, we  put the index vector*/
         String [] word = info[0].split("[ ']+");
         Hashtable<String, Object> nextWord = new Hashtable<String, Object>();
         nextWord.put("Index", subiIndex);
         /*Then we create a chain of hash dimensions corresponding to phrase words*/
         for(int i = word.length-1; i >= 0; i -=1)
              Hashtable<String, Object> prevWord = new Hashtable<String, Object>();
              //Yeah, I even tried the .trim() method...
              prevWord.put(word.trim(), nextWord);
              nextWord = prevWord;
              System.out.print(word[i] + "<-");
         /*We update the hash head and also add the first word with its first letter capitalized as key pointing to the same next key in hash dimension chain*/
         subiPhraseFilter = nextWord;
         subiPhraseFilter.put((capitalMap.get(word[0].charAt(0))+word[0].substring(1)).trim(), subiPhraseFilter.get(word[0]));
         //The following debbuging print outs work just fine. Its only just later when I cant get a containsKey()...
         System.out.println("|| "+subiPhraseFilter);
         System.out.println("subiPhraseFilter.containsKey("+word[0]+"): "+subiPhraseFilter.containsKey(word[0]));
    //Then the following code is executed
    Integer [][] subiPhraseIndeces(String word1, String word2, String word3)
         String [] tmp = {word1, word2, word3};
         Hashtable<String, Object> dimension = subiPhraseFilter;
         //The following debbuging print out does NOT return true
         //even when I explicitly give a String key which I know it is inserted
         System.out.println("subiPhraseFilter.containsKey(" + tmp[0] + "): " + subiPhraseFilter.containsKey("&#949;&#957;&#955;&#972;&#947;&#969;".trim()));
         for(int i = 0; (i < tmp.length) && (tmp[i] != null) && dimension.containsKey(tmp[i]); i += 1)
              //This is NEVER executed...
              System.out.println(i + ": dimension.containsKey(" + tmp[i].trim() + ")");
              dimension = (Hashtable<String, Object>)dimension.get(tmp[i].trim());
              return (Integer [][])dimension.get("Index");
    Whats most irritating is that this also happens arbitrarily in another place of my code where I load again info by using each line as a key to another Hashtable and, the containsKey() method returns true to all but one (!) line-words, even if I change its position in the file. I won't put the latter code here because its just very simple. (in case I wasnt clear I read a section of a file that looks like
    wordA
    wordB
    wordC
    wordN
    each wordX is put as a key to a Boolean value and yet, containsKey(wordA) returns false even if i change the input file to
    wordB
    wordA
    wordC
    wordN
    isn't that just peculiar?
    A significant note in this problem is that I do not read english characters, rather than greek (hence the unicode filetype) which I put as keys to the hashtable; later I try to get corresponded values by fetching text (which I also manipulate) from a JTextfield, as key, and I'm afraid that maybe something is happening there.
    However the code sample I added above didnt work even when I added an english word in the file and explicitly asked wether it is contained as a key...
    Maybe I am doing something I really can't see right now...
    Help would be appreciated                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    BalusC: "I would also not be surprised if that file is after all actually just UTF-8"
    No, it's not cause I explictly saved the .txt file as Unicode in wordpad and NOT as UTF-8. By the way notepad has ANSI as its default save-type.
    However I converted my input files to UTF-8 and read them using the "UTF-8" String flag in the constructor of the reader I was using. All the same.
    EDIT: Not to metion, the UTF-8 file needed an empty line at the beggining or my parsing would skip the first line, messing everything up!
    Just for the sake of it I will show the output of my program (redirected to a file cause cmd.exe does not support greek letters, or I didnt find a way to make it so):
    (This is the output when I load from the UTF-8 file the word "&#949;&#957;&#955;&#972;&#947;&#969;" in my has as a key (pointing to a Boolean i think - it doesnt really matter). What I print is the key of each dimension of the hash -here there's only one dimension- and then I print the hash reference, i.e like a toString() representation. The result shows that the Hashtable contains at key "&#949;&#957;&#955;&#972;&#947;&#969;" a value which is another Hashtable which contains the key "Index" pointing to something you shouldnt care. The hash head also contains the key "&#917;&#957;&#955;&#972;&#947;&#969;", which is actually the same as before only to have its first letter capitalized, which in turn points to a hash with one key etc...)
    &#949;&#957;&#955;&#972;&#947;&#969;<-|| {&#949;&#957;&#955;&#972;&#947;&#969;={Index=[[Ljava.lang.Integer;@360be0}, &#917;&#957;&#955;&#972;&#947;&#969;={Index=[[Ljava.lang.Integer;@360be0}}
    subiPhraseFilter.containsKey(&#949;&#957;&#955;&#972;&#947;&#969;): true
    (And later on I get a string from a JTextField I tokenize it and here's what I get when I reach the same word:)
    (Don't mind "Checking: ..." its 'cause I check a window of three words in order to reach up to a 3-dimension hash key. Yet I dont even get the first key!)
    Current token: '&#949;&#957;&#955;&#972;&#947;&#969;'
    Checking: &#949;&#957;&#955;&#972;&#947;&#969;, null, null
    subiPhraseFilter.containsKey(&#949;&#957;&#955;&#972;&#947;&#969;): false
    Now isn't that making one crazy?
    Any other ideas?
    Thnak you in advance!
    P.S. In case that I haven't done something really stupid which is ommitted here and yet can't be tracked, I think the problem must be somewhere between the encoding of JTextField and the encoding I read...
    P.S.2 Excuse me for saying hash instead of Hashtable sometimes in the above text
    Edited by: M.M. on Sep 2, 2009 3:22 AM
    Edited by: M.M. on Sep 2, 2009 3:23 AM

  • Teststand problem when try to close a modified seq file.

      I have a problem when using Teststand. My seq file consists several custom step types, which call external DLL/VIs. The problem is every time when I modified this seq file and tried to close it without save it, Teststand will always popup a warning dialog "Unable to discard seq file, because it is in use", please see below. Hope somebody here could give me some suggestions on it and tell me how to resolve this problem.
    Thanks!
    Jacky
    Attachments:
    screenshot1.JPG ‏108 KB

    Hi Ray
      Attached is the structure I used in Teststand. Here I want to describe my problem once again:
    Case1: if I open a seq file and then close it, there will be OK
    Case2, if I open a seq file and insert some custom step types, then close it, it will be OK.
    Case2: if I open a seq file and run it, then try to close it, but without any chang, there will popup a dialog"unable to discard this seq file,because it is in use...."
    Thanks!
    Jacky
    Attachments:
    Structure.jpg ‏13 KB

  • Problems with loading Ressources out of a jar file

    Hi Folks !
    My current job for my university is to make some Java programms runnable as a WebStart Application. With most of the programms this was no problem. But i have a problem with one.
    The gui of the program loads some icons out of the jar file with the following code:
    try {
          openIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/open.png"));
          generateIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/generate.png"));
          editIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/edit.png"));
          propertiesIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/properties.png"));
          alphabetIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/alphabet.png"));
          cutIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/cut.png"));
          saveIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/save.png"));
          helpIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/help.png"));
          aboutIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/about.png"));
          exitIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/exit.png"));
          startIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/start.png"));
          stopIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/stop.png"));
          preferencesIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/preferences.png"));
          okIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/ok.png"));
          noIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/no.png"));
          clearIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/clear.png"));
          plusIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/plus.png"));
          minusIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/minus.png"));
          overlapIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/overlap.png"));
          canselIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/cansel.png"));
        catch(NullPointerException e){
          JOptionPane.showMessageDialog(frame,
              "There was an error while loading icon files. Probably the needed icon files are not present.",
              "Missing icon files!", JOptionPane.ERROR_MESSAGE);
        }When i start the program as a normal jar with
    java -jar ssstester.jarAll Icons are loaded normaly. But when i start it as a WebStart Application i get the catch (NullPointerException e) error message "There was an error while loading icon files. Probably the needed icon files are not present. Missing icon files!".
    So where is the problem ? Don't know if it is important, but the Application gets full rights in the jnlp File
    <security>
        <all-permissions/>
    </security>Greetings and sorry for my horrible english,
    Christoph

    Thread.currentThread().getContextClassLoader().getResource(imageFilePath); to load the images than the one you are using right now
    Edited by: Mayya on Jun 17, 2008 4:34 AM

  • Jar file referring to classes in another jar file

    I want to deploy my application as a WAR file. Let's say deploying it as an EAR is not an option. I have utility1.jar in WEB-INF/lib that needs classes in other utility2.jar (which is also in WEB-INF/lib) at runtime. Do I need to classpath entry in utility1.jar manifest pointing to utility2.jar? Your help is appreciated.

    When a *".war"* is loaded by the server as that application_name* , it unloads the .jar files into "classes" directory with accordence the structure of the folders/package-hierarchy implicitly.

  • CLASSPATH issues on DOS/NT and loading of jar files

    Hello all,
    I have the following problem on running WebLogic 5.1 on
    NT. The CLASSPATH is getting truncated after a certain number of
    characters. I have a lot of third party jar files that I use in my
    application. How do I overcome this problem ? I tried increasing my DOS
    environment space by changing the default values in config.sys.
    What are other alternatives ?
    One idea that I have is to use URLClassLoader to load the jar files. I
    am running a RMI based application and I need to load these jar files
    before I load the RMI code. Where would I run this URLClassLoader code
    ? Is there some system startup class that can load jar files ?
    Thanks,
    Aswin.

    Thanks for the reply. I much appreciate it. What about the other idea that I
    had outlined-loading these jar files using a ClassLoader. Is that viable ?
    Aswin.
    Cameron Purdy wrote:
    In Win2k: Control Panel, System, Advanced, Environment Variables
    ComSpec=%SystemRoot%\system32\cmd.exe /e:16384
    You still will not be able to have a command line exceeding a certain size
    (around 1k or so). That is a hardcoded limit somewhere inside the NT kernel
    ("kernel" being a poor term for the piece so named in NT ;-).
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    Tangosol: How Weblogic applications are customized
    "Aswin Dinakar" <[email protected]> wrote in message
    news:[email protected]..
    Hello all,
    I have the following problem on running WebLogic 5.1 on
    NT. The CLASSPATH is getting truncated after a certain number of
    characters. I have a lot of third party jar files that I use in my
    application. How do I overcome this problem ? I tried increasing my DOS
    environment space by changing the default values in config.sys.
    What are other alternatives ?
    One idea that I have is to use URLClassLoader to load the jar files. I
    am running a RMI based application and I need to load these jar files
    before I load the RMI code. Where would I run this URLClassLoader code
    ? Is there some system startup class that can load jar files ?
    Thanks,
    Aswin.

  • Problem in loading applet from non executable jar file

    hello ,
    I am new to jar concept plz help.. I am trying to call an applet from another applet through frame it is working fine but its download time is much more. now i want to store all my images , sound files and class files of other applets in a jar file and want to access these inner applets from this jar file so that it will make only one http connection with the server for this jar file only and can reduce the download time of applet.
    Can anyone can give me suggestion plz..
    Thanx

    You have to download what you have to download. You
    probably can't easily share images between 2 separate
    Jar files. Unless you can expose them through the
    other applet via a method that can be known once you
    have the reference to the other applet.Thanx but i think i have to elaborate the problem :
    my project structure is just like this ::
    on the top is ::
    Applet A---> from this applet i am callling Applet B & Applet C in frame
    and communication is established between these 3 applets successfully .
    now i have made a single non executable jar file which contains images , sound and class files of these applets .
    so i am referencing images and sound files in applets through this jar.
    but i wanted to load Applet B & C through this jar file only.
    How can i do this ??
    Thanx .. I hope now the problem is clear

  • Problem deploying and using custom Tags in jar files

    I am trying to create a custom tag library of Java classes, package them in a JAR file, and use them in another web application. Here is the JAR file structure, named mytags.jar:
    META-INF
    META-INF/manifest.mf
    META-INF/taglib.tld
    mytags/FooBar.class
    mytags/Another.class
    ...Here is the taglib.tld file:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <taglib xmlns="http://java.sun.com/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
    version="2.0">
       <tlib-version>1.0</tlib-version>
       <short-name>foo</short-name>
       <uri>fooTags</uri>
       <info>My tags</info>
       <tag>
         <name>fooBar</name>
         <tag-class>mytags.FooBar</tag-class>
         <body-content>empty</body-content>
         <attribute>
           <name>name</name>
           <required>false</required>
           <rtexprvalue>true</rtexprvalue>
         </attribute>
      </tag>
    </taglib>The FooBar class has getName(String) and setName() methods.
    In the web application, I have copied mytags.jar into the WEB-INF/lib directory. I've verified that it lands in the corresponding directory for my appserver (I'm using Tomcat 6.0.10).
    Here's the header for my JSP:
    <%@ page language="java" contentType="text/html;charset=UTF-8" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib uri="fooTags" prefix="foo" %>
    <foo:fooBar name="dummy" />
    ...When I access my page, the browser sits there and spins, not able to do anything. I know that some of the content is executed, but it is not able to get to the fooTags. I have tried replacing fooTags with WEB-INF/lib/mytags.jar, to no effect.
    According to the docs, I should not need to include anything in web.xml to reference the fooTags. The tag library classes are valid, since I used them as local tags prior to moving them into a Jar library.
    Any help would be appreciated

    Take the code of the jsp file :
    <%@ page language="java" %>
    <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
    <html>
       <head>
         <title> First Struts Application </title>
       </head>
         <body>
            <table width="500" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td> </td>
            </tr>
            <tr bgcolor="#36566E">
              <td height="68" width="48%">
                <div align="left">
                  <img src="images/hht.gif" width="220" height="74">
                </div>
              </td>
            </tr>
            <tr>
             <td> </td>
            </tr>     
           </table>
           <html:form action="Lookup"
                      name="lookupForm"
                      type="wiley.LookupForm" >
           <table width="45%" border="0">
            <tr>
              <td>Symbol:</td>
              <td><html:text property="symbol" /> </td>
            </tr>
             <tr>       
              <td colspan="2" align="center"><html:submit/> </td>
             </tr>       
            </table>              
          </html:form>
         </body>
    </html>

  • Classpath problems when importing my classes

    I'm using a tutorial with sample programs dealing with bank accounts.
    I get this error:
    InterestBearingAccount.java [9:1] '.' expected
    import Account;
    ^
    1 error
    Errors compiling InterestBearingAccount.
    The Account class already exists in the current directory. I've tried everything as far as setting the classpath variable (nothing, just a period, period & slash, the actual complete path for the current directory, nothing works!!!!!). I also tried using -classpath (.) and the end of my javac command and that seemed to not work at all.
    The Java Coffee Break tutorial have some already compiled (*.class) files and they run fine. My *.java files are identical. In fact, I cut and pasted them so I know it's not a typo.
    My path is set to include the jdk1.4.0\bin directory and I've only begun to have problems now that I need to import existing classes into the programs.
    I should mention that I get the same error using Forte environment or doing it at the command prompt window. Please help.

    Thanks ATMGUY. I commented out the import statements in both InterestBearingAccount and AccountDemo and it worked fine. I guess the author of that tutorial was obviously not working with jdk 1.4.
    As far as using packages, com.kusek.bank would make a good package name then??
    The statement:
    package com.kusek.bank; OR a shorter version package kusek.bank;
    should be added to all three classes and no import statements would then be necessary, right??
    I just remember reading that it should be something unique as a good habit to get into.
    I'm trying to learn enough to make a useful GUI program for a special project so I probably should be using packages anyway when I get to that point.
    My programming backround is limited to procredural languages Basic, QBasic, Pascal, and Fortran and I find myself still wanting to think in those terms. I have read several web sites and worked through some basic examples but I still have much to learn. I once I can grasp how to write OOP style it would be nice to look at code for a somewhat detailed application (like a store checkout app) and have every line explained as to why it's there. I can see where it makes sense to have your GUI classes predefined (Swing), File I/O, serial port communications, and even things like this InterestBearingAccount example that extends from the Account class utilizing its basic attributes but overriding the constructors for the additional parameters (interest calculation) that are passed. How to take a common problem and go about creating a solution is what I need to see being done to help me.
    My telemetry project uses VHF radios with packet radio modems to monitor two diesel engines and turn one off if the other turns off. The modems have built in A/D data gathering and can also output control signals, they just need to be told what to do. I can manually use a Windows Hyperterminal session and type in "connect Engine1" and use commands to determine the A/D inputs "analog". The modems have built in end-to-end acknowledgement so the only think I need is an application than can be setup to run in the Startup folder to handle this. It would use a timer class to "poll" engine1 every 5-10 minutes and if it has stopped (based on the response of the "analog" command) I would "disconnect" from engine1 and "connect" to engine2 and send a "ctrl B off" or something similar. The standard responses from the modem should allow me just to send and recieve STRING data to and from the serial port and parse them as needed. I need at least this much but it shouldn't be too much harder to develop a way to reset the system(reverse of this) when that is required. I could also read a water pressure value at one of the locations and display that on the screen along with the current status of the engines (using values obtained from the "analog" command on the modems).
    The hardest part of OOP programming seems to be knowing what classes are already out there and knowing how to find them or apply them. I hope Swing has classes that provide for displaying values on the Windows taskbar (my motherboard monitor freeware displays temperature readings down on the taskbar). I appreciate all the help given here. It's almost like having a private tutor.
    randy

  • Classpath problems when generating deployment xml

    Hi,
    I am new to using Toplink (9.0.4), but not new to CMP. I'm using the Toplink Mapping Workbench and have created my CMP Entity. I right-click on my project and export the Java Source. Everything (homes, local, remote) generates successfully. I then try to export the project deployment XML. However, I get a classpath error stating that it can't find my bean classes. My classpath is set to the area where the Java/Class files are. Do I have to compile my generated classes before creating the deployment XML? It appears as if I do because it works when I compile first, then generate the deployment XML. Is this the correct way to use the tool (generate Java, compile, generate XML)?
    Also, Is there a way this can all be generated via Ant (i.e. something similar to EJBGen)?
    Thanks,
    Mike

    Generating Java using the Mapping Workbench is good only for the initial Java Objects.
    After the initial Java Objects has been generated TopLink recommend to generate / modify Java Objects using IDE -&gt; compile -&gt; And in the Mapping Workbench 'Add or Refresh classes' -&gt; Map -&gt; generate XML is the right way of using TopLink.

  • A problem when referring to a stored procedure in a crystal report

    Hi all,
    I've checked that when calling one stored-procedure within a crystal report, one sequence will be selected for 2 times. Thus 2 will be added to the corr. sequence No. And I've also directly ran such procedure in 'SQL/Plus' that follows, to make sure that actually the corr. sequence will be referenced by only once.
    SQL> execute p_rpT_FCL_col (:te, 'ZIMU00000537SJU',:GRP)
    PL/SQL procedure successfully completed.
    SQL> print :te
    TE
    17
    SQL> execute p_rpT_FCL_col (:te2, 'ZIMU00000537SJU',:GRP)
    PL/SQL procedure successfully completed.
    SQL> print :te2
    TE2
    18
    Bst Rgds,
    Edward

    Well, can you please post the details about your stored proc?
    <quote> I've checked that when calling one stored-procedure within a crystal report, one sequence will be selected for 2 times. Thus 2 will be added to the corr. sequence No.</quote>
    Question: What do you mean by that? How many times did you run the report?
    More details please.
    -Raj Suchak
    [email protected]

  • RE: freezing and resetting problems when syncing a large music library

    Hi there,
    I got a new ipod classic 160gb for christmas. I updated the firmware to 1.0.3 and synced it for the first time. When I tried to play any music it locked up and went into a loop of resetting itself which I could only break by forcing the ipod into disk mode.
    I restored the ipod and tried again syncing the music in chunks. This worked until the ipod was about 50% full then it started to freeze and reset again. I took this ipod back to the store but the new one had the exact same problem!
    Through a lot of trial and error I have managed to get the ipod working with only part of my library synced. By syncing music a few albums at a time I have managed to get about 86gb (of 120gb) onto it, but surely this is not how it is supposed to be! I have a dual boot system and have the same problems using windows XP or vista.
    I know that I'm not the only person experiencing resetting problems with the ipod classic. Are the users who are experiencing these endless resetting problems with the ipod classic those who have large music libraries (i.e over 80gb)? Can the ipod classic simply not handle the large volumes of music it was designed to hold?
    The only features I was looking forward to in the new ipod were a) larger capacity hard drive and b) the ability to organise playlists into folders on the ipod for easier browsing. As it stands I cannot sync my full library and navigating through my playlists is so slow it is hardly worth bothering. I never had a minutes trouble with my 5th gen.
    Have I been unlucky and the ipod classics I have recieved have been duds? In which case should I arrange another replacement? Or is this typical of the ipod classic user experience when the user has a large music library and many playlists? Should I await a firmware update that might remedy my problems?
    Lastly am I doing something wrong? Any help or workarounds would be gratefully appreciated.

    best thing to do is use Playlist and Smart Playliss to fill your iPod. Just so you know, since your post seemed to indicate you thought the playlists have to be tailored to what is already on the iPod, when you sync to playlists, any songs needed for those playlists are automatically moved onto the iPod. And any songs NOT in the playlists get removed.
    Patrick

Maybe you are looking for

  • View gerber files from other programs

    I have gerber that were made in Cadsar 6 back in 2001 in RS274X fromat. I now have Ultiboard 10 and want to view these older gerber files. Can the Ultiboard 10 gerber viewer open these files? I tried but was not able to see them.

  • TS1314 why do my photos show up on my iPad out of order?

    why do my photos show up on my iPad out of order? I have them organized (by numerical sequence in their file name) and they synced up on my iPad in a random order...

  • User exit in Z program

    Hello all, I have copied a standard program to a Z program. The standard program as a user-exit, but in the Z program this user-exit won't work. Does anyone know what i have to do so it will work? Thanks in advance, Nuno Silva

  • JavaScript FileUpload Question...

    Hi there! I'm uploading a file using the JavaScript code below. Is it possible to change the default browse button, to for example an image? If not, can the uploading be done using another language? ...<INPUT TYPE="file" NAME="x">.... Best regards Pa

  • I cannot use to pay my credit card that is registre in my apple account

    I CANNOT USE MY CREDIT CARD TAHT IS REGISTRY ON MY APPLE ACCOUNT..... APPEARS THAT MY SECURITY NUMBER IS INCORRECT, WHEN THE INFORMATION IS CORRECT...