Cutom tag tld in jar problem
I am using Tomcat 5.5 and I have a jar file called util.jar:
util.jar
-com.util.tag.class
-META-INF
-tag.tld
When I put this util.jar under WEB-INF/lib/ and try to use the custom tag, I always get Unable to read TLD "META-INF/taglib.tld" from JAR file "file:/c:/apache-tomcat-5.5.23...."
How do I change it to read the tab.tld instead of taglib.tld?
Any help will be appreciated.
Thanks BalusC,
I tried version 2.4 already but I still got the same problem.
Any other possible reason?
My web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<taglib>
<taglib-uri>http://www.myTags.com/tags/util</taglib-uri>
<taglib-location>/WEB-INF/lib/util.jar</taglib-location>
</taglib>
I can make it work if I take the tld out and put it under WEB-INF, and changed the web.xml tablib-location to /WEB-INF/util.tld. I just don't know why it doesn't work if it is in a jar.
Thanks.
Similar Messages
-
Xsl/stylesheet transformation problem in soap response(usinf xmlx-tags.tld)
Hi,
I have problem in transforming the soap response using xmlx-tags.tld.....
I was not able to read the <EmpName> value from the returned xml...
The stylesheet / xsl does not return any elements if I use other then "/" in match
attribute : <xsl:template match="/">
here is my soap call and stylesheet in JSP:
<x:xslt media="html">
<x:xml>
<ws:soap ttl="360000">
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
... making soap call here...
</soap:Body>
</soap:Envelope>
</ws:soap>
</x:xml>
<x:stylesheet media="html">
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="xmll" omit-xml-declaration="no"
doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" indent="yes" />
<xsl:template match="GetEmpResult">
<html>
<body>
Result: <B>Symbol <xsl:value-of select="EmpName"/></B>
</body
</html>
</xsl:stylesheet>
</x:stylesheet>
</x:xslt>
the SOAP response looks like this:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetEmpResponse xmlns="http://ws.cdyne.com/">
<GetEmpResult>
<EmpID>string</EmpID>
<EmpName>string</EmpName>
<SalAmount>decimal</SalAmount>
<Error>boolean</Error>
</GetEmpResult>
</GetEmpResponse>
</soap:Body>
</soap:Envelope>
I tried all the possibilities of template matches, but not succeeded....
Can somebody help me the correct <xsl:template> to access EmpName from the above
SOAP responses...
regards
VijayHi,
Dynamic xslt are not quite supported in OSB, there are some approaches that may be helpful for your case though...
Have a look at these...
http://atheek.wordpress.com/2011/12/21/using-xalanevaluate-to-parametrize-xpath/
http://beatechnologies.wordpress.com/2010/12/01/dynamic-xquery-in-oracle-service-bus/
Let me know how you go...
Cheers,
Vlad -
Compilation erros when tld in jar
Running Jdev 11g 11.1.1.0.2 I am unable to compile a simple struts2 web application because of this jsp taglibrary issue:
No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.I have added the struts2 tag lib in the Project Properites-->JSP Tag Libraries section pointing to tld within the struts2 jar:
jar:file:/C:/development/lib/struts-2.1.6/lib/struts2-core-2.1.6.jar!/META-INF/struts-tags.tldThe jsp editor understands the struts tags and provides hints but the compilation fails. I can get this to work if I extract the tld file, place it locally, and explicitly map to it in my web.xml:
<jsp-config>
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>
</jsp-config>But I shouldn't have to do this! Any help would be greatly appreciated. Thanks!Thanks BalusC,
I tried version 2.4 already but I still got the same problem.
Any other possible reason?
My web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<taglib>
<taglib-uri>http://www.myTags.com/tags/util</taglib-uri>
<taglib-location>/WEB-INF/lib/util.jar</taglib-location>
</taglib>
I can make it work if I take the tld out and put it under WEB-INF, and changed the web.xml tablib-location to /WEB-INF/util.tld. I just don't know why it doesn't work if it is in a jar.
Thanks. -
Unable to read TLD "META-INF/jsf_core.tld" from JAR file "file:
Hallo everybody :-)<br /><br />i've installed Workflow-Server + ARES + FormManager. When i call localhost:8080/adminui i can log in and the browser loads the next site --> it fails and says:<br /><br />org.apache.jasper.JasperException: Unable to read TLD "META-INF/jsf_core.tld" from JAR file "file:/C:/Adobe/LiveCycle/jboss/server/all/tmp/deploy/tmp56414LiveCycle.ear-contents/admi nui.war/WEB-INF/lib/jsf-impl.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: com.sun.faces.taglib.FacesTagExtraInfo<br /> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:5 0)<br /> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)<br /> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:183)<br /> org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:181)< br /> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)<br /> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)<br /> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)<br /> org.apache.jasper.compiler.Parser.parse(Parser.java:126)<br /> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)<br /> org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)<br /> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)<br /> org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)<br /> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)<br /> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)<br /> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)<br /> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)<br /> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)<br /> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)<br /> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)<br /> com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)<b r /> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)<br /> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)<b r /> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)<br /> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)<br /> javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)<br /> com.adobe.framework.SecurityFilter.doFilter(SecurityFilter.java:177)<br /> com.adobe.idp.um.auth.filter.PortalSSOFilter.doFilter(PortalSSOFilter.java:106)<br /> com.adobe.framework.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter .java:161)<br /><br />Any idea what' wrong?<br /><br />Thanks,<br />Valerio
Hi Howard,
thank you for your post.
I actually new about the problems with the jvm version. Still i wanted to ask, cause there are different reports on this `java problems` and even though the 1.4.2_08 seems to be the best version (by the way this version is not to be downloaded any longer *sig*), there are people getting all installed with other versions. I couldn't find any regularity in the misbehavior of the servers while installing.
I finally achieved and got everything working ... but very slow. Loading the adminui or BAM features takes very long time (over one minute). Have you already had this delay. Any hint?
Thanks again,
Valerio -
Question about cutom tag jars on Tomcat
I have written a custom tag for data connection in Java and wrote a TLD to use it. My problem is a I have three applications that all use it, so I put the jar file in my CATALINA_HOME/common/lib and the tld finds the jar but the jar has a properties file it uses to get the DB name and user names. The jar can not find the properties file, I tried putting it in the common/lib/, I put it in the common/ and I also tried in the APP_DIR/WEB-INF/ and it still can not find them. Is there a place I can put the properties file that tomcat will have it available for the jar file.
Thanks in advancePut the properties file inside the jar file. Then you can load it from your code using the classloader. Lets say you put the properties file in a subdirectory "props" inside the jar, you can then load it using this code:
InputStream is = this.getClass().getClassLoader().getResourceAsStream("props/db.properties");
Properties props = new Properties();
props.load(is);
is.close();Assuming you name your file "db.properties" of course. -
JSP referencinc taglib.tld in JAR file doesn't work.
I have some custom tags which work fine under Weblogic 5.1 when I do a
normal deployment of files, including the taglib.tld. However, when I
try to reference the taglib.tld located in a JAR file, then weblogic
throws an error saying that it cannot resolve into a valid tag library.
I am only doing this because I am testing the same site agains both
iPlanet Web Server and Weblogic. iPlanet will only find the taglib.tld
when it is in a JAR file.
Can anyone shed some light on referencing the taglib.tld in a JAR file.
This should work, as it is covered in the JSP 1.1 specification.
FYI - the jar file is in the same location as the JSP which references
it. The URI to the JAR file (in the JSP) is from the root of the site.
Thanks for any help.
-Scott Edwards
Welcome to the Sun forums.
Subject: My Applet Jar file doesn't work !! .
1) Note that one '!' denotes exclamation, whereas 2 or more often denotes a dweeb.
2) Since you are on your first post, I will point out that applets are an advanced topic, and should not be attempted by newbies.
3) "doesn't work" is very vague. It is likely to produce a reply like "maybe the applet is lazy - try flogging it".
Amera wrote:
..I have written this java applet :When posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags help retain the formatting and indentation of the sample. To use the code tags, select the sample and click the CODE button.
Also note that the most preferred form of code is an SSCCE *(<- link).* In an SSCCE, your would remove all but one button (if the actionPerformed fails with 6 or 7 buttons, trim it down to fail with just one or two.
i made a jar file :So does the applet work before you make the Jar file? Your post so far suggests the Jar file is the problem.
i created a file and named it MANIFEST.MF .i wrote inside it :
Main-Class: test
Then i placed it in a folder with the test.class .I created jar file using command line.
I entered the test.class path and then wrote this command :
jar cvfm myjar.jar MANIFEST.MF *.class
Then the jar file "myjar.jar" is created .
it's executed but this function "public void actionPerformed(ActionEvent e) " won't wrok.
i keep pressing the buttons but nothing is happening !!So you get 'no output in the console & no effect in the applet'?
What is the URL where I can see your applet failing?
As an aside, since Sun does not guarantee that applet clients will act on the showDocument command, even if it does not work, it would not be a 'bug'.
Edited by: AndrewThompson64 on Dec 28, 2009 11:18 AM -
Custom tags & re-creating jar file
Question from a novice!
How, when I have made changes to a custom tag library tld file, do I get the deployment JAR file to re-zip the new files? The ones in that I have in the JAR file are out of date compared with the new files that I have edited after creating the tag library.
ThanksYes, you would need to either re-deploy to a JAR file to re-create the JAR file containing the new Tag Library.
Rob -
ejb-local-ref where to put this tag in ejb-jar.xml ??
I have an ejb-jar.xml that looks like this. I have had no problem with remote interfaces. Now I want the bean to have a local interface too.
Just let me know where the tag I have mentioned for the <ejb-local-ref> has to be put into.
When I compile this file it throws me an error which i have shown below the output of the ejb-jar.xml file
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>IDMaster</ejb-name>
<home>maxateev.mondial.brg.idmaster.IDMasterHome</home>
<remote>maxateev.mondial.brg.idmaster.IDMaster</remote>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
<ejb-class>maxateev.mondial.brg.idmaster.IDMasterEJB</ejb-class>
<persistence-type>Container</persistence-type>
<ejb-local-ref>
<ejb-ref-name>ejb/IDMasterLocalHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
</ejb-local-ref>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>IDMaster</abstract-schema-name>
<cmp-field>
<field-name>idPrefix</field-name>
</cmp-field>
<cmp-field>
<field-name>idValue</field-name>
</cmp-field>
<primkey-field>idPrefix</primkey-field>
<query>
<query-method>
<method-name>findAllIDMasters</method-name>
<method-params/>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT (f) FROM IDMaster as f]]></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>IDMaster</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
I have also added the following tag in the weblogic-jar.xml
<local-jndi-name>IDMasterEJB.IDMasterLocalHome</local-jndi-name>
Just let me know whether I am correct
On compilation (using ant utility) the error thrown is like this :
ejbc:
[java] ERROR: Error parsing 'ejb-jar.xml' line 47: The content of element type "entity" must ma
tch "(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,e
jb-class,persistence-type,prim-key-class,reentrant,cmp-version?,abstract-schema-name?,cmp-field*,pri
mkey-field?,env-entry*,ejb-ref*,ejb-local-ref*,security-role-ref*,security-identity?,resource-ref*,r
esource-env-ref*,query*)".
[java] ERROR: ejbc found errors
[java] Java Result: 1
Kindly Help !!!
Thanks n regards
SajivThis should take care of it
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>IDMaster</ejb-name>
<home>maxateev.mondial.brg.idmaster.IDMasterHome</home>
<remote>maxateev.mondial.brg.idmaster.IDMaster</remote>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
<ejb-class>maxateev.mondial.brg.idmaster.IDMasterEJB</ejb-class>
<persistence-type>Container</persistence-type>
<ejb-local-ref>
<ejb-ref-name>ejb/IDMasterLocalHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
</ejb-local-ref>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>IDMaster</abstract-schema-name>
<cmp-field>
<field-name>idPrefix</field-name>
</cmp-field>
<cmp-field>
<field-name>idValue</field-name>
</cmp-field>
<primkey-field>idPrefix</primkey-field>
<ejb-local-ref>
<ejb-ref-name>ejb/IDMasterLocalHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
<local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
</ejb-local-ref>
<query>
<query-method>
<method-name>findAllIDMasters</method-name>
<method-params/>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT (f) FROM IDMaster as f]]></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>IDMaster</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar> -
Object tag not downloading jars with JRE 1.4.2 and above
Hi All,
I have a HTML page and following object tag in it:
<OBJECT id = obj classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="0" HEIGHT="0">
<PARAM NAME ="code" VALUE="VIP6.class">
<PARAM NAME ="archive" VALUE="vipjar.jar,vipserver.jar,powerj.zip">
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4">
<PARAM NAME="scriptable" VALUE = "true">
<br>
<P>
<H2>The Java 2 plugin is required for this application. Please call Application Support or the Inventory Hotline<br>
</H2>
</P>
</OBJECT>Above OBJECT tage downloads files vipjar.jar,vipserver.jar and powerj.zip on user's machine when page is browsed using JRE version 1.3.1. But when JRE version 1.4.2 and above is used then the jar's doesn't get downloaded and the application does not find the neccessary class files for execution.
Please advice what needs to be done so that the object tag runs correctly with JRE version's 1.4.2 and above.
Thanks in advance for any help.
VineetHello,
Indeed those JAR files are compiled with JDK 1.3. However, the AS Java systems are running 1.4.x, hence, there is no problem to use those JARs with the JRE 1.4. That's why I do not believe your issue is related to the JRE version. In addition, those JAR files do not have 1.4 compiled version.
Kind regards,
Tsvetomir
Edited by: Tsvetomir Tsvetanov on Jun 9, 2009 5:47 PM -
Itunes does not read id3 tags and its a problem
Ok I have 60 gig of music and all of it is labeled correctly in id3 tags. But when i add them all to itunes some of the songs are blank with no information at all but if i go into "show in explorer" the information in the id3 tags instantly pops up. I'v searched google and found nothing so i hope someone can tell me a fix or another program to use that will organise my music like itunes does and also can put music on my ipod. So please help me with the problem.
ThanksIt doesn't work. I'v already tried that. I'v even tried converting the id3 tags and then removing them from the libray and adding them again. Still nothing. It might help if someone could tell me where itunes gets it information for its tags when you add music to its libray seeing as it doesn't use id3 tags for the information like any smart program does.
-
CS3/4, Mac OS X, XCode .jar problem
Hi there,
I got some problem while trying to launch a .jar file from a SDK plug-in.
First, I have to start a .jar file to do some work with an open InDesign document.
I try to do this with:
system("open /Application/Adobe InDesign CS3/Plug-Ins/myFile.jar");
but nothing happens - the file doesn't start.
Then I've tried another location for the file:
system("open /Application/myFile.jar");
and it works! so it seems to be a problem for system function to deal the path part: "Adobe InDesign CS3" (the file I try to start is in both folders just for test).
Have anyone an idea why the name of a folder with spaces cause a problem for system()?
On the other side I do the same stuff on windows platform and start a .jar file according to a path to InDesign CS3 like this:
PMString strFolder;
...geting the path to InDesign using iCoreFilenameUtils and adding the subfolders - it works fine...
then:
TCHAR *path=strFolder.GrabTString();
ShellExecute(NULL,NULL,TEXT("myExecutable.exe"),NULL,path,SW_SHOWNORMAL);
It woks fine on the windows but now I have to do the same on Mac OS X.
My questions are:
how to convert IDFile (contain the full path to my .jar file) to something accepted from system() function OR
how to start .jar file other way then with system() getting the path as a PMString or IDFile.
Some example code or suggestions would be nice.
Thx in advance
jaremaYour trying execute a system command that requires a posix path.
The path " /Application/Adobe InDesign CS3/Plug-Ins/myFile.jar" should be " /Application/Adobe\ InDesign\ CS3/Plug-Ins/myFile.jar" or " /Application/"Adobe InDesign CS3"/Plug-Ins/myFile.jar"
You can either search and replace the spaces in the path with "\ " or I believe the FileUtils class in the SDK has some funcs for working with IDFiles and posix paths.
Mike -
IE - signed cab vs. signed jar problems
In IE on Windows when I sign an applet that is part of a package in a cab file it works like this; The first time the user hits the applet tag, IE downloads the cab and asks if you trust the applet. When the user clicks yes, it is installed to the downloaded program files system folder. The next time the user hits the applet tag the version in useslibraryversion param is compared to the installed cab and the applet is run without asking the user or attempting to download the cab, even if IE is restarted or the system rebooted.
When I use my signed jar I get two undesired results, when IE is restarted the jar is downloaded again and the user is asked if they trust it again. Any way to make this work like the cab as far as not downloading the second time and not asking the user again?as far as not downloading the second time How about checking the server settings, (last-modified and expires??)
and not asking the user again?Allways trust? -
Hi guys
We are having a problem with the migration to WLCS 3.2 SP2 / WLS 5.1 SP10.
We are moving from WLCS 3.2 and WLS SP6. Our CMP beans generate errors when
the container tries to update them. They deploy without error though.
See below for the stack trace
We use the recommended weblogic driver for our Oracle 8.1.7.0 database. WL
runs on w2k, and Oracle on Solaris 7.
Extract from set-environment:
SET DB_CLASSPATH=
SET PATH=%PATH%;%WEBLOGIC_HOME%\bin\oci815_8;%WLCS_ORACLE_HOME%\bin
SET
SQLPATH=C:\WebLogicCommerceServer3.2\db\oracle816;C:\WebLogicCommerceServer3
.2\db\oracle816\event;
Extract from weblogic.properties:
weblogic.jdbc.connectionPool.commercePool=\
url=jdbc:weblogic:oracle,\
driver=weblogic.jdbc.oci.Driver,\
I made a few experiments, and I noticed that generating the CMP classes
(with EJBC) with the old WebLogic_RDBMS.jar (from WLS SP6) is working fine.
Here is what I mean : ejbc uses the library
c:\weblogic\lib\persistence\WebLogic_RDBMS.jar And this library has changed
with SP10. However since that change and after rebuilding our jars, all CMP
entity beans fail to update.
If I just replace that WebLogic_RDBMS.jar with the previous one (from SP6),
and without changing anything else, our CMP beans work fine. I did not
change any driver or xml deployment descriptor.
One of the generated files in the jar (for our bean
VisibilityPSWebLogic_CMP_RDBMS.class) differs, and that seems to be the
cause of the problem.
I jadded that class and here is a difference I notice:
OLD, ejbc ran with SP6 WebLogic_RDBMS.jar : visibilitybean.targetCompanyId =
(BigDecimal)resultset.getObject(5);
NEW, ejbc ran with SP10 WebLogic_RDBMS.jar : visibilitybean.targetCompanyId
= resultset.getBigDecimal(5, 35);
Similar differences for the SETbigdecimal.
Dunno if that will help, but I'm attaching the 2 jar files with explicit
names.
Damn that was long, I hope someone will read it... Thanks for any help on
this, see stack trace attached below
Nicolas Lejeune
Stack trace:
mer. oct. 03 12:16:22 CEST 2001:<I> <EJB JAR deployment
C:/WebLogicCommerceServer3.2/lib/foundation.jar> Exception in
non-transactional EJB invoke:
java.rmi.UnexpectedException: Unexpected exception in
com.b2boost.visibility.VisibilityBean.getVisibilityId():
java.sql.SQLException: ORA-01722: invalid number
at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
at weblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java:980)
at
weblogic.jdbc20.pool.PreparedStatement.executeUpdate(PreparedStatement.java:
47)
at
com.b2boost.visibility.VisibilityPSWebLogic_CMP_RDBMS.update(VisibilityPSWeb
Logic_CMP_RDBMS.java:446)
at
com.b2boost.visibility.VisibilityPSWebLogic_CMP_RDBMS.store(VisibilityPSWebL
ogic_CMP_RDBMS.java:376)
at
weblogic.ejb.internal.EntityEJBContext.store(EntityEJBContext.java:192)
at
weblogic.ejb.internal.EntityEJBContext.beforeCompletion(EntityEJBContext.jav
a:227)
at
weblogic.ejb.internal.StatefulEJBObject.postInvokeNoTx(StatefulEJBObject.jav
a:355)
at
weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:865)
at
com.b2boost.visibility.VisibilityBeanEOImpl.getVisibilityId(VisibilityBeanEO
Impl.java:198)
at
com.b2boost.visibility.pipeline.LoadFirstVisibilityRequestPC.process(LoadFir
stVisibilityRequestPC.java:83)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImpl.process(Pipelin
eExecutorImpl.java:193)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImplEOImpl.process(P
ipelineExecutorImplEOImpl.java:56)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImplEOImpl_ServiceSt
ub.process(PipelineExecutorImplEOImpl_ServiceStub.java:154)
at
com.beasys.commerce.webflow.PipelineProcessor.callPipeline(PipelineProcessor
.java:170)
at
com.beasys.commerce.webflow.PipelineProcessor.process(PipelineProcessor.java
:102)
at
com.beasys.commerce.webflow.WebflowAdvisor.handleTarget(WebflowAdvisor.java:
409)
at
com.beasys.commerce.webflow.WebflowAdvisor.processTarget(WebflowAdvisor.java
:156)
at
com.b2boost.framework.B2boostPortalDestinationDeterminer.determineDestinatio
n(B2boostPortalDestinationDeterminer.java:208)
at
com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:438
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:922)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:886)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
[Visibility_generated_with_SP6_weblogic_rdbms_jar.jar]
[Visibility_generated_with_SP10_weblogic_rdbms_jar.jar]You are using WebLogic jDriver for Oracle which needs exact version of OCI API, that comes with the Oracle client installation. Ensure that you have installed the right Oracle client version. And updated the PATH properly.
I notice that you have
bin/oci815_8
oracle816
Thsi looks liek the inconsistency in your environment.
What you need to do is
1. find oci817_8 and place that in the PATH.
2. install oracle 817 and use that client and set the ORACLE_HOME environment variable and the PATH properly.
Try this and see if it helps.
BTW - WLS 5.1 is EOL -
Resources inside JAR - problem
I have a strange problem with resources inside JARs.
I can't load any resource form a JAR file (for example a .property file or .png icon).
It's not a problem with my progams only. JDBC drivers doesn't work because they cannot find .properties files while they work well when, the driver JAR i uncompressed. It happens every time when some resouces are inside JAR library (classes are loade correctly). The same project runs well on my friend's computer while I've got an error on my computer.
I tried it on WinXP and Win2003 Server - the same. My java version 1.5.0_06-b05 (but I had the same problem with older versions).
I figured out that I can find a file inside a JAR, open a stream, load data and everything is OK but data is always 0bytes length. For example using:
ImageIcon myImageIcon = new ImageIcon(getClass().getResource(pathandfilename));
I get empty ImageIcons without any error.
Can anyone help me. Maybe I should find something somwhere in java configuration.
Message was edited by:
peperBut can anyone tell me why my servlet can not access the
contents inside a jar file?? Any suggestions please?
Thanks.Without seeing your code, it is likely that you are trying to use file names (like /some/path/yourFileName.ext), not resource names (loadable from the class loader) like /yourFileName.ext.
Example:
Instead of:
FileInputStream stream = new FileInputStream("/some/path/yourFileName.ext");
do this:
InputStream stream = getClass().getResourceAsStream("/yourFileName.ext");
There are other API's which take either a string file name or a URL. You want to go the URL way, where the URL is taken from the classpath as:
URL url = getClass().getResource("/yourFileName.ext"); -
JDBC ojdbc6.jar problem with passing parameters for PreparedStatements.
The JDBC Driver being used in ojdbc6.jar. I am using this driver because I of its compatibility with Java 6 which is on my machine
The database I am connecting to is 10.2 (10g) Oracle database.
The connection works fine its the parsing of the SQL query that is giving the problem Below is the code specific to this
// never mind the syntax this is a JavaFX module and the query syntax doesn't use the '+' concats.
sql = "select sfrracl_pidm,\n"
" sfrracl_term_code, \n"
" sfrracl_source_cde, \n"
" sfrracl_reg_access_id \n"
"from SFRRACL \n"
"where sfrracl_term_code=? \n"
"and sfrracl_pidm =\n"
" (select spriden_pidm from spriden\n"
" where spriden_id=? \n"
" and spriden_id like 'G%'\n"
" and spriden_change_ind is NULL);";
//stmt = conn.createStatement(sql);
try{
ps = conn.prepareStatement(sql);
ps.setString(1, stud_id);
ps.setString(2, term_code);
catch(fr:SQLException)
fr.printStackTrace();
try{
//ps.executeUpdate();
System.out.print('Student ID: ');
System.out.println(stud_id);
System.out.print('Term Code: ');
System.out.println(term_code);
System.out.println(sql);
ps.executeQuery(); // error occurs here
The output and exception thats thrown is below
//debug output
Student ID: GXXXXXXXX
Term Code: 201020
//sql statement thats in string
select sfrracl_pidm,
sfrracl_term_code,
sfrracl_source_cde,
sfrracl_reg_access_id
from SFRRACL
where sfrracl_term_code=?
and sfrracl_pidm =
(select spriden_pidm from spriden
where spriden_id=?
and spriden_id like 'G%'
and spriden_change_ind is NULL);
// end debug output
java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at sfrracl.Main.buttonOnMouseClicked(Main.fx:215)
at sfrracl.Main.buttonOnMouseClicked(Main.fx:215)
at sfrracl.Main.invoke$(Main.fx:117)
at sfrracl.Main.invoke$(Main.fx:117)
at com.sun.javafx.functions.Function1.invoke(Function1.java:44)
at com.sun.javafx.functions.Function1.invoke$(Function1.java:38)
at javafx.scene.Node.impl_processMouseEvent(Node.fx:2917)
at javafx.scene.Node.preprocessMouseEvent(Node.fx:2946)
at javafx.scene.Scene$MouseHandler.process(Scene.fx:1499)
at javafx.scene.Scene$MouseHandler.process(Scene.fx:1361)
at javafx.scene.Scene.impl_processMouseEvent(Scene.fx:679)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.fx:956)
at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.doMouseEvent(SwingScene.java:446)
at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.mouseClicked(SwingScene.java:454)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
BUILD FAILED (total time: 31 seconds)
The invalid character that this is claiming are the ? marks however that would mean my setString
is not working I am following what the documentation says why is this?http://forums.oracle.com/forums/forum.jspa?forumID=99 is the JDBC forum
Maybe you are looking for
-
Hi, I installed the new Exchange 2013 on 2 servers, with DAG. Everything seems to be working except for OAB. Outlook is eternally downloading the address book. If I try to open the site locally on the server I get the following error: System.Configur
-
DOWLOAD function module not working in Portal
Hello, We are in 4.6C. I have a piece of code that downloads an internal table to the presentation server using function module DOWNLOAD. This works fine in SAPGui. The function module DOWNLOAD does not work in the EP6 portal environment (the part wh
-
Purchase requisition not subject to a release strategy
Hi All, When I will release PR, appears Error: "Purchase requisition not subject to a release strategy". I've check the configuration, but it was appropriate. Can anyone help me to find the solution? Regards, MamaRara
-
I create a safari widget and it shows in dashboard...great... but how can i use this widget in iWeb? hope someone can enlighten me? thanks
-
Search tool unable to find anything. What shoul Ido?