Teena George

Ranch Hand
+ Follow
since May 01, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Teena George

Hi Lester,

Thanks for the reply.

Regards,
Teena
7 years ago

Hi Everybody,

Sorry if this is not the right forum to post it.
Acoustic finger printing algorithm helps comparing and identifying an audio file, even though the audio file is not a bit-by-bit match of the original audio file. I would like to know if Java Media Framework (JMF) has APIs to compare audio files using acoustic fingerprints.

Thanks in advance,
Teena
7 years ago
Hi,

I deployed my ear file in Weblogic 9.2.1.
Now I am getting Automation Exception in log files . This exception occurs continuosly

<Error> <oms.automation> <700023> <An automation exception has occurred At AutomationDispatcherImpl.runAutomator:null , the reason is :com.mslv.oms.automation.AutomationException: java.lang.NullPointerException
com.mslv.oms.automation.AutomationException: java.lang.NullPointerException
at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.a(Unknown Source)
at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source)
at com.mslv.oms.automation.AutomationDispatcher.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)

Anybody can throw light here?

>
7 years ago

Thank you Ivan. It works now.

Regards,
Teena
7 years ago
Hi,

I am trying for unmarshalling with JAXB. I am getting an error msg
Exception in thread "main" javax.xml.bind.JAXBException
- with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:196)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:385)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
at com.jax.PersonUnmarshaller2.main(PersonUnmarshaller2.java:24)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:192)
... 4 more

Am i missing something
Can somebody help me in solving this issue?
7 years ago
Thank you all.. Sorry, I got very late to reply.. the link was useful. However, i had got another way to reach my solution. It turned out that i do not need many of the things that come with the xml. So i created an XPath expression to pick up the things i wanted. then i created a parameterized string in the properties file to create the final result, which is again an xpath expression. This requirement was kind of really odd

Thank you

Teena

Hello everyone,

Can we create an XPath expression from an XML document? my XML document is exactly like this:


I need to create an xpath which shows all of these nodes

Thanks


Hi Rupa,

Sorry for the delayed response. I was caught up with some work. I hope you have already cracked it But, even if you haven't, here is how i tried it.



Please let me know if this is not working for you.
Best Regards,
Teena
8 years ago
JSP
Thanks Stefan.
8 years ago

Thanks Tim. You are right. I never created a resources file in the source packages. I copied all my properties files under a folder in WebContent and accessed it using the '/'. Yes, we can access it using the fully qualified name of the resource file, when the resource files are under one of the source packages, or even under WebContent. Thanks once again, it was a new piece of information.

Regards,
Teena
8 years ago
JSF
Change the bean scope to session.
8 years ago
JSF
Where is your mypackage located? always give the full path like mypackage/messages.properties. Its a '/' which separates the path hierarchy and not a '.'

Regards,
Teena
8 years ago
JSF
Thanks Garrett. I will try it out.

Regards,
Teena
8 years ago

You can also grab a Head First Servlets and JSP book. It will give you clear idea of EL (and many other topics).
8 years ago
JSP
Hi Rupa,

I hope you are using EL in your JSP pages. You can access a map like this:

or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena
8 years ago
JSP