JavaEditorKit sun.tools.java.Constants jar help
I found a good article on JavaEditorKit using JEditorPane.
Problem is this article uses sun.tools.java.Constants. I could not find a jar that would provide the functionality.
I was able to see api for sun.tools.java.Constants.
I need someone to help me in getting the approriate jar.
Thanks & Regards
Ajay Kalidindi
Hi,
I saw that too thinking it would be a good way to learn about a simple editor in Java.
I got it working only after upgrading the code to Java 2 (ie com.java to javax) and extracting out all of sun.tools.java package from tool.jar out of my jdk. It looked ok but I think this is way too old example to be using now days.
I think that the sun.tools.java package has been protected from developers use so it wouldn't help you
develope anything anyway, however http://www.jext.org uses a similiar idea to do its' syntax highlighting
it might worth checking out.
regards
David
Similar Messages
-
Any idea where I can find sun.tools.java.Constants ?
I've been playing around with all that syntax highlighting nonsense which seems to be a rite of passage around here. I came across the Sun version but they assume I know where to find
sun.tools.java.Constants
which, of course, I don't. Any ideas on where I can get this class?Thanks. I thought I'd looked there... still, only three bucks. Mind you, that example still isn't working.
-
Hi,
I am a new to Web Services and was following some site for implementing it.
The link is as below:
http://www.roseindia.net/webservices/netbeans/Web-Service.shtml
However while doing the "build and deploy" -- I am getting the following error while doing a ::
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Warning: MANIFEST.MF modified in the future.
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\META-INF
Warning: META-INF\context.xml modified in the future.
Warning: WEB-INF\lib\jaxws-tools-2.1.7.jar modified in the future.
Warning: WEB-INF\sun-jaxws.xml modified in the future.
Warning: WEB-INF\web.xml modified in the future.
Warning: index.jsp modified in the future.
Warning: modified in the future.
Warning: META-INF modified in the future.
Copying 5 files to D:\WebServices-NB-Practice\webservice1\build\web
library-inclusion-in-archive:
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
library-inclusion-in-manifest:
Warning: modified in the future.
wsgen-init-nonJSR109:
wsgen-MyWebService-nonJSR109:
*java.lang.NoSuchMethodError: com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I*
BUILD FAILED (total time: 1 second)
I am using netbeans version 5.5 for this.
Although from the initial investigation I understand that this error is related to "jaxws-tools.jar".
However I could not resolve this error.
Can Somebody provide me with the steps to resolve this error.
Regards,
AvinashNo, I put the 'main' method just to see if it solved the problem
-
Error when testing java -jar whitelist.jar -help
I found an error when executing this commande
C:\oracle-javacloud-sdk\lib>java -jar whitelist.jar -help
Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/cloud/
scanning/cli/ScannerMain (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
what can be the origine of this error
ThanksTry using JDK 1.7 - (version 51.0) as I have no problem running with 1.7.0_21
/michael -
Read images from external jar file (Sun's Java L&F Graphics repository)
Hi!
I don't know how to read images from an external jar file. Sun has a Java Look and Feel graphics repository that contains a lot of good images that can be used on buttons and so on. This repository is delivered as a jar file, containing only images, and I want to read the image files from that jar file directly without including them inside my application jar file. The application and image jar files will be in the same directory.
I have absolutely no clue how to solve this. Is it necessary to include the images inside my application jar file or is it possible to have them separate as I want.
Would really appreciate some help!
Best regards
LarsHi,
There is two ways :
1) Add your jarfile to the classpath.
Use the class loader :
URL url = ClassLoader.getSystemResource("your/package/image.gif");
Image im = (new ImageIcon(url)).getImage();
or
Image im = Toolkit.getDefaultToolkit().getImage(url);2)If you don't want to add the jar to the classpath you can use this (under jdk 1.4):
import java.util.*;
import java.util.jar.*;
import java.awt.*;
import java.io.*;
import java.awt.image.*;
import javax.imageio.*;
public class ImageUtilities {
public static Image getImage(String jarFileName, String fileName) {
BufferedImage image = null;
try {
JarFile jar = new JarFile(new File(jarFileName), false, JarFile.OPEN_READ);
JarEntry entry = jar.getJarEntry(fileName);
BufferedInputStream stream = new BufferedInputStream(jar.getInputStream(entry));
image = ImageIO.read(stream) ;
catch (Exception ex) {
System.out.println(ex);
return(image);
}I hope this helps,
Denis -
Including helper classes in java proxy jar file
I must not be using the right header search criteria because I'm sure this question
has been asked before. In a Web Service File (.jws) I've imported a couple of
helper classes that function as data transfer objects. I did this to maintain
consistency with other portions of the application. The Java Proxy jar file generated
by Workshop does not include these files. Is there a way of including these dependencies
or do I need to distribute another jar file with my helper classes?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 -
Hi,
I got the following during build. Any ideas?
Thanks in advance.
javac An exception has occurred in the compiler (1.5.0_12). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
javac java.lang.*NullPointerException*
javac at com.sun.tools.javac.jvm.*ClassReader.fillIn(ClassReader.java:1583)*
javac at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1535)
javac at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)There is a bug in the compiler.
You would need to localize the problem to the source file, class and specific code. Once you do that you can file a bug but do not count on a fix without updating to 1.6. However locating it would allow you to modify the code to get around this problem. -
Help:how to use java.util.jar to zip or unzip a binary file.
how to use java.util.jar to zip or unzip a binary file or a file contain native code.
It may help you to know how I add JARs
1. I open my Project (myProject)
2. I Mount the JAR to the FileSystem (like mypackages.jar = which includes com.mus.de.myClass.java)
3. I Mount the File to the FileSystem (like c:\..myfiles..\myProject)
3.1 I add the File to my Project
4. I select File | New -> Classes | Main
4.1 I typed "import com.mus.de.myClass.java" to refer to this package.
4.2 I called some of the public methods
thats it
Andreas -
Has anybody used jsmooth tool to convert .jar to .exe?help needed
Hello,
has anybody used jsmooth tool to convert .jar to .exe if so please let me how to do because i couldnt do using the user manual since its not clear pls if any one uses it please let me know the procedure to do its really urgent plsssssPrabhav (guest) wrote:
: We were looking for a tool from which we could directly embed
: PL/SQL codes to our pre built HTML pages. When I came across
: WebAlchemy, developed by the Aussie pro, I thought that was
the
: thing I wanted. I am using the beta version 2.1 of WebAlchemy
: but I am having problems converting my pl/sql embedded Html
file
: into web PL/SQL cartridge as the Alchemy cannot convert few
: attributes properly.
: Has any body used it and have solution? Is there any other
: product like this on the web or market? Pleaes advice, only
: thing I want is to let my HTML be able to listen to Pl/sql
: procedure and generate dynamic contents without use of CGI and
: JavaScript.
: Please suggest anything u can.
Hi,
I have also used Web Alchemy, but have never come across a
production version (I tried also). It's a shame it was never
completed, as it only seems to support HTML v2.
Regards
Toby.
null -
Com.sun.tools.javac.Main: method compile errors
I had a working web project the other day, and something happened that caused every page to start throwing this error:
# javax.servlet.ServletException: com.sun.tools.javac.Main: method compile([Ljava/lang/String;Ljava/io/PrintWriter;)I not found
# at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:779)
# at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
# at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
# at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
# at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
# at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
# at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
# at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
# at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
# at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:978)
# at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
# at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
# at com.mayco.mvc.MVCServlet.processRequest(MVCServlet.java:426)
# at com.mayco.ldap.MayServlet.service(MayServlet.java:415)
# at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
# at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
# at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
# at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
# at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
# at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
# at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
# at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
# at com.mayco.cy.filter.AuthenticateFilter.doFilter(AuthenticateFilter.java:167)
# at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
# at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
# at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
# at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
# at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
# at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
# at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
# at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
# at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
# at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
# at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
# at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
# at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
# at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
I tried setting up a clean environment (server, EAR, web project), but haven't been able to re-solve the problem I had with the original project yet. If I could get a starting point to look for how to solve this type of error it would be greatly appreciated!I checked my JDK compliance (1.4) and the installed JREs (Standard VM; WebSphere v5.1 EE JRE; C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51_stub\java\jre)
I did notice that it was using the JRE System LIbrary [WebSphere v5.1 JRE] and I changed it to the WebSphere v5.1 EE JRE like I think it should have been...
and the web server startup begins with:
*** Starting the server ***
************ Start Display Current Environment ************
WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 2692
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
user.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
Java Home = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre
ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/web/help;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/IBM/SQLLIB/java/db2java.zip;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2/runtime/worf.jar
Classpath = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/lmproxy.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/urlprotocols.jar;C:\WebSphere\properties;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\bcprov-jdk14-139.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\config.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\spi4jStub_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES100J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES110J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES120J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES200J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XTCP211.jar;C:\spi4j2.5.4_J2ee1.4\Demo\log4j-1.2.8.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\spi4jCore_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\axis-1.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xmlParserAPIs-2_2_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jaxrpc.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\wsdl4j.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fsgWsif1.1.jar;C:\spi4j2.5.4_J2ee1.4\Demo\commons-logging.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\tools.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-pool-1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\saaj.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-beanutils-core.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-collections-3.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-discovery.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-lang-2.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\connector.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\FEDRWSCHECKSTATUSAxisInfo.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fscontext.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\IFSClassLoader1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\j2ee1.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jca.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jta.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\mail.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\providerutil.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\qname.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\soaprmi-1_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xalan.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xercesImpl-2_2_1.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
Java Library path = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1\bin;Y:\oracle\ora92\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\IBM\SDP70\jdk\bin
************* End Display Current Environment ************* -
Sun One Java mobile Application start error
Hi,
I established sun one java mobile application builder but I coudn not start it . when it come to %27 it show me this messagebox "This application has unexpectedly has caused an ExceptionInInitializerError. This Application will now exit (LAX)"
in detail
"java.lang.NullPointerException
at com.aligo.tools.action.NewApplicationAction.<clinit>(NewApplicationAction.java:34)
at com.aligo.tools.applicationbuilder.ApplicationBuilder.defineActions(ApplicationBuilder.java:460)
at com.aligo.tools.applicationbuilder.ApplicationBuilder.<init>(ApplicationBuilder.java:325)
at com.aligo.tools.applicationbuilder.ApplicationBuilder.<init>(ApplicationBuilder.java:82)
at com.aligo.tools.applicationbuilder.ApplicationBuilder$83.construct(ApplicationBuilder.java:3278)
at com.aligo.tools.thread.SwingWorker$2.run(SwingWorker.java:149)
at java.lang.Thread.run(Thread.java:484)
at com.aligo.tools.thread.SwingWorker.start(SwingWorker.java:192)
at com.aligo.tools.applicationbuilder.ApplicationBuilder.main(ApplicationBuilder.java:3325)
at java.lang.reflect.Method.invoke(Native Method)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)"
Please help me..
Thanks ...This question does not appear to relate to Java Studio Enterprise. Try locating the forum for the product you are using, and ask your question there.
-
Hi,
I am creating a java bean in a jsp file. I want to pass this bean to a java class in the same jsp file.
eg:
A1.jsp
<jsp:useBean id="customer" class="com.Customer" scope="session"/>
<jsp:setProperty name="customer" property="*"/>
<% Teller teller=new Teller();
int custid=teller.addCustomer("customer");
%>
Teller.java
public class Teller
public int addCustomer(*C*ustomer pcus)
CustomerDb Cdb=new CustomerDb();
return Cdb.addCustomer(pcus);
CustomerDb.java
public class CustomerDb{
int customerid;
public int addCustomer(*C*ustomer pcus){
try{
some code....
When I try to compile Teller.java and CustomerDb.java it is giving error in the lines highlighted with bold.
Please help in this.Problem Description
You are getting
FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-105100.
When you run FileUpload utility
Solution Description
Follow the steps given below to fix and run the FileUpload Bean successfully.
Make sure you have set your System Path similar to following, in the same order:
System PATH:
E:\Dev6i\bin;E:\Dev6i\forms60\java;E:\jdk1.2.2\bin;E:\jdk1.2.2\jre\bin;
E:\jdk1.2.2\jre\bin\classic; %SystemRoot%\system32;%SystemRoot%;
%SystemRoot%\System32\Wbem;C:\Program Files\Oracle\JInitiator1.1.8.16\bin;.
CLASSPATH :
E:\dev6i\forms60\java;E:\dev6i\forms60\java\UploadServer.jar;
E:\jdk1.2.2\jre\bin\classic;E:\jdk1.2.2\jre\lib;E:\Dev6i\TOOLS\COMMON60\JAVA\IMPORTER.JAR;.
Now, Open Form Builder ->Layout Editor->Program menu->Import Java Classes
Check here to make sure that the FileUpload.class is displayed there under
Oracle/forms/demos/uploadclient folder.
Note that the java bean uses the implementation class
file oracle.forms.demos.uploadclient.FileUploader
So, you need to put the FileUploader.class in
<ORACLE_HOME>\FORMS60\java\oracle\forms\demos\uploadclient\FileUploader.class
or you need to change the oracle.forms.demos.uploadclient.FileUploader
in implementation Class property matching to
the class name where you have actually put it.
You need to set archive_jini=f60all_jinit.jar,uploadclient.jar.sig in formsweb.cfg
Open the fileupload.fmb, remove the attached Library.
Open the fileupload.pll from File->Open.
Recompile all the procedure and packages again.
Save this fileupload.pll.
Then reattach this library as a attached library to this form, recompile the form.
This should solve the problem.
If the path is set as explained above solves the PDEUI0001 problem of
Java Importer also.
Explanation
Reason:
This error occurs when the upload button is pressed in the File upload utility
because the attached PLL library is not compiled properly.
Please let me know if this helps.
Regards
Grant Ronald
Forms Product Management -
I have created a key to sign my jar but i am having a problem adding the relevant files to the jar. The tutorial that I used was from a forum on this site that said the command for adding file to the jar is:-
jar cvf squawk.jar squawk.class
The error message I get is 'no such file or directory'. I know this is probably because the applet code is saved as squawk.java. I have tried to add squawk.java instead but I get an error message saying that no main has been found. How do i get the file into the jar with the extension .class? I take it that by having the filename squawk.class this means I would have to have a seperate main.class and any other classes I need. The program has been written using JCreator and as it is a project, it has the .java extension.
please help........How do I compile it into a class fileBetter start at the beginning:
http://java.sun.com/learning/new2java/index.html
Though I don't know how you've managed to do anything yet, and still have been posting questions here for as long as you have (i.e. more than just today). -
Dead-end with EJB3.0 and Sun's Java WebApp
Hi,
Wondering if you can help me as I'm a bit stuck with my EJB3.0 remote connection using Sun's Java WebApp9.0 Server.
Quick over-view:
I have a Client.war file which contains my Servlets and the Remote interfaces for teh EJB and other 'client' classes
I have a EJB.jar which contains the EJBs with their interfaces
I need to make a remote connection to the CreateNewUserAccountBean (Stateless) which connects to the Uploader (Entity) Bean
I have tried to post all the relivent parts of the code, but it's quite hard to make sure I have everything.
My code gets as far as the [InitialContext ic = new InitialContext(this.getEjbRemoteProps());] then bombs out claiming it can not find the Uploader class (under EJB.jar)
As I say, there is rather a lost here and it's not the easiest to look through, but kust wondering if there are any glaring erroes in the code.
All the code bits.........
THESE ARE IN THE CLIENT WAR
============================
CreateUserAccountServlet
code:
final private boolean uploadUserAccountDetails(CreateNewUserAccountBean crUsrAccBean) {
System.out.println("uploadUserAccountDetails()");
try {
System.out.println("point 1");
ICreateUserAccountManager crUsrAccMan = new CreateUserAccountManager();
isSuccessful = crUsrAccMan.uploadAccountDetails(crUsrAccBean);
} catch (NamingException e) {
e.printStackTrace();
isSuccessful = false;
return isSuccessful;
CreateUserAccountManager
code:
final public boolean uploadAccountDetails(CreateNewUserAccountBean crUsrAccBean) throws NamingException {
System.out.println("point 2");
IRemoteEjbConnector remEjbConn = new RemoteEjbConnectionManager();
ICreateAccountRemote createAccRem = remEjbConn.createUserAccountRemoteConnection();
createAccRem.setFirstname(crUsrAccBean.getFirstname());
isValid = remEjbConn.uploadAccountDetails(createAccRem);
return isValid;
RemoteEjbConnectionManager
code:
final private Properties getEjbRemoteProps() {
Properties props = new Properties();
// To be put into a Properties file!
props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
props.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
props.setProperty("org.omg.CORBA.ORBInitialHost", "localhost");
props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
return props;
final public ICreateAccountRemote createUserAccountRemoteConnection() throws NamingException {
System.out.println("point 3");
InitialContext ic = new InitialContext(this.getEjbRemoteProps());
System.out.println("point 4");
// ##### SEEMS TO ONLY GET THIS FAR, THEN BOMBS OUT! #####
ICreateAccountRemote createAccRem = (ICreateAccountRemote) ic.lookup("createNewUserAccountEjb");
System.out.println("point 5");
return createAccRem;
THESE TWO ARE IN THE EJB3.0 JAR
===============================
CreateNewUserAccountBean
code:
@Stateless (mappedName="createNewUserAccountEjb")
@Remote ({ICreateAccountRemote.class})
public Uploader findByPrimaryKey(String fname) {
Uploader uploader;
try {
EntityManager em = emf.createEntityManager();
uploader = (Uploader)em.find(Uploader.class, fname);
em.close();
return uploader;
} catch (Exception ex) {
ex.printStackTrace();
uploader = null;
return uploader;
ICreateAccountRemote
======================
code:
@Remote
public interface ICreateAccountRemote {
public String getFirstname();
public void setFirstname(String sFname);
public boolean createNewUserAccount();
public Uploader findByPrimaryKey(String name);
Uploader
code:
@Entity
@Table(name="tbl_user_details")
persistence.xml (under EJB.jar)
================================
code:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="create_account_persistence_ctx" transaction-type="JTA">
<provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
<jta-data-source>jdbc/testDB</jta-data-source>
<properties>
<!-- empty -->
</properties>
</persistence-unit>
</persistence>
SERVER.LOG OUTPUT
=================
code:
[#|2008-08-26T10:15:55.387+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|2008-08-26 10:15:55,387 INFO [com.test.client.web.pageloader.PageLoader] - <Loading page [pages/welcome.jsp]>
|#]
[#|2008-08-26T10:15:58.662+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|2008-08-26 10:15:58,662 INFO [com.test.client.web.servlets.CreateUserAccountServlet] - <createUserAccount()>
|#]
[#|2008-08-26T10:15:58.662+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|2008-08-26 10:15:58,662 INFO [com.test.client.web.servlets.CreateUserAccountServlet] - <iStep: 1>
|#]
[#|2008-08-26T10:15:58.662+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|loadRegistrationPage()|#]
[#|2008-08-26T10:16:11.060+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;|
2008-08-26 10:16:11,060 INFO [com.test.client.web.servlets.CreateUserAccountServlet] - <createUserAccount()>
|#]
[#|2008-08-26T10:16:11.060+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;|2008-08-26 10:16:11,060 INFO [com.test.client.web.servlets.CreateUserAccountServlet] - <iStep: 2>
|#]
[#|2008-08-26T10:16:11.150+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;|>> CreateUserAccountServlet step 2 - crUsrAccBean.setFirstname: bob|#]
[#|2008-08-26T10:16:11.150+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;|
>> CreateUserAccountServlet step 2 - crUsrAccBean.setSurname: fish|#]
[#|2008-08-26T10:16:11.170+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;|
validateRegistrationDetails()|#]
[#|2008-08-26T10:16:11.210+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;|
loadRegistraionConfirmation()|#]
[#|2008-08-26T10:16:12.822+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
2008-08-26 10:16:12,822 INFO [com.test.client.web.servlets.CreateUserAccountServlet] - <createUserAccount()>
|#]
[#|2008-08-26T10:16:12.822+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|2008-08-26 10:16:12,822 INFO [com.test.client.web.servlets.CreateUserAccountServlet] - <iStep: 3>
|#]
[#|2008-08-26T10:16:12.832+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|>> CreateUserAccountServlet step 3 - crUsrAccBean.setFirstname: bob|#]
[#|2008-08-26T10:16:12.832+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
>> CreateUserAccountServlet step 3 - crUsrAccBean.setSurname: fish|#]
[#|2008-08-26T10:16:12.832+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
uploadUserAccountDetails()|#]
[#|2008-08-26T10:16:12.832+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
point 1|#]
[#|2008-08-26T10:16:12.832+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
point 2|#]
[#|2008-08-26T10:16:12.862+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
point 3|#]
[#|2008-08-26T10:16:12.882+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
point 4|#]
[#|2008-08-26T10:16:12.882+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
java.naming.factory.initial: com.sun.enterprise.naming.SerialInitContextFactory|#]
[#|2008-08-26T10:16:12.882+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
java.naming.factory.url.pkgs: com.sun.enterprise.naming|#]
[#|2008-08-26T10:16:12.882+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
java.naming.factory.state: com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl|#]
[#|2008-08-26T10:16:12.892+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
org.omg.CORBA.ORBInitialHost: localhost|#]
[#|2008-08-26T10:16:12.892+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;|
org.omg.CORBA.ORBInitialPort: 3700|#]
[#|2008-08-26T10:16:13.043+0100|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=httpWorkerThread-80-1;_RequestID=c61ac1aa-c2f1-4535-941f-572cf6e3e528;|StandardWrapperValve[RegisterUserAccount]: Servlet.service() for servlet RegisterUserAccount threw exception
java.lang.NoClassDefFoundError: com/test/ejb/user/createaccount/Uploader
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
at java.lang.Class.privateGetPublicMethods(Class.java:2488)
at java.lang.Class.getMethods(Class.java:1406)
at com.sun.ejb.codegen.RemoteGenerator.<init>(RemoteGenerator.java:108)
at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:367)
at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:332)
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:297)
at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:61)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:314)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.test.client.ejb.RemoteEjbConnectionManager.createUserAccountRemoteConnection(RemoteEjbConnectionManager.java:53)
at com.test.client.user.account.CreateUserAccountManager.uploadAccountDetails(CreateUserAccountManager.java:55)
at com.test.client.web.servlets.CreateUserAccountServlet.uploadUserAccountDetails(CreateUserAccountServlet.java:225)
at com.test.client.web.servlets.CreateUserAccountServlet.createUserAccount(CreateUserAccountServlet.java:168)
at com.test.client.web.servlets.CreateUserAccountServlet.doPost(CreateUserAccountServlet.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#]
Any help would be fantastic, cheers!!!KPS_UK wrote:
It has been deployed, incorrectly.
it's in the ejb.jar which is deplyed under the 'Applications/EJB Modules' in Sun's WebApp 9.0.it's still incorrect - the app server is telling you so.
I don't know if there is any other config that needs to be done with the WebApp to tell it where the WebApp .war should look to find the EJB Module?I use weblogic, so I don't know. Without seeing anything else, I'd say it's not packaged correctly. You think that class is available, but the app server disagrees with you. Believe the app server and figure out where you've gone wrong. Check your assumptions.
% -
Exception from weblogic.ejbc trade.jar, help for that please.
I am using weblogic 7.0.4 and this is the exception thrown out when I use weblogic.ejbc
to generate container classes before building web services:
C:\Java\test>java weblogic.ejbc trader.jar
Exception in thread "main" java.io.InvalidClassException: javax.management.MBean
AttributeInfo; local class incompatible: stream classdesc serialVersionUID = 704
3855487133450673, local class serialVersionUID = 8644704819898565848
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:454)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
1)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
1)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
1)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
616)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1593)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1261)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
30)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
636)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:281)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:186)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:169)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:212)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:105)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:90)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:670)
at weblogic.ejbc20.runBody(ejbc20.java:425)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:29)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: - with nested excepti
on:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class
incompatible: stream classdesc serialVersionUID = 7043855487133450673, local cl
ass serialVersionUID = 8644704819898565848]
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:286)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:186)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:169)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:212)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:105)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:90)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:670)
at weblogic.ejbc20.runBody(ejbc20.java:425)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:29)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationError: No MBeanInfo found for MBe
an with name = null, type = EJBDescriptor, Class = weblogic.management.descripto
rs.toplevel.EJBDescriptorMBeanImpl - with nested exception:
[weblogic.management.configuration.ConfigurationException: - with nested except
ion:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class
incompatible: stream classdesc serialVersionUID = 7043855487133450673, local cl
ass serialVersionUID = 8644704819898565848]]
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:193)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:169)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:212)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:105)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:90)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:670)
at weblogic.ejbc20.runBody(ejbc20.java:425)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:29)Hello,
I don't know...but the good folks that monitor the EJB newsgroup [1]
would have a better shot at an answer.
Regards,
Bruce
[1]
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.ejb
CottonXu wrote:
>
I am using weblogic 7.0.4 and this is the exception thrown out when I use weblogic.ejbc
to generate container classes before building web services:
C:\Java\test>java weblogic.ejbc trader.jar
Exception in thread "main" java.io.InvalidClassException: javax.management.MBean
AttributeInfo; local class incompatible: stream classdesc serialVersionUID = 704
3855487133450673, local class serialVersionUID = 8644704819898565848
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:454)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
1)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
1)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
1)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
616)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1593)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1261)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
30)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
636)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:281)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:186)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:169)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:212)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:105)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:90)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:670)
at weblogic.ejbc20.runBody(ejbc20.java:425)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:29)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: - with nested excepti
on:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class
incompatible: stream classdesc serialVersionUID = 7043855487133450673, local cl
ass serialVersionUID = 8644704819898565848]
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:286)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:186)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:169)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:212)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:105)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:90)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:670)
at weblogic.ejbc20.runBody(ejbc20.java:425)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:29)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationError: No MBeanInfo found for MBe
an with name = null, type = EJBDescriptor, Class = weblogic.management.descripto
rs.toplevel.EJBDescriptorMBeanImpl - with nested exception:
[weblogic.management.configuration.ConfigurationException: - with nested except
ion:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class
incompatible: stream classdesc serialVersionUID = 7043855487133450673, local cl
ass serialVersionUID = 8644704819898565848]]
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:193)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:169)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:212)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:105)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:90)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:670)
at weblogic.ejbc20.runBody(ejbc20.java:425)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:29)
Maybe you are looking for
-
Update IPad 2 to IOS 5.1?
Would like to Update my version 4.3.4 (8K21) on IPAD 2 to IOS 5.1. The Info I have found say to go to settings / general/ software update, but software Update does not show. How Can I update ?
-
Hi Friends, I have front-end printing set according to the instructions in note 771683. Essentially you print to a PDF file which appears in a pop-up window, from where you can save or print as you would with and other PDF file displayed in a web b
-
Soap Reciver Time out connection
hai, iam doing idoc to soap. iam send the data from sap side this data is going xi server but problem is reciver side is connection time out. iam check the monitoring in sxmb_moni the status is block flag status is successful going to xi server and x
-
I recently purchased a set of composite AV cables from my local Apple Store for use with my 3rd gen Touch (v. 4.3.3). When I connect to the TV, I get audio output, but no video. When I connect my daughter's 4th gen Touch in the same way, with all s
-
3rd party junk mail filter for Mail?
Does anybody know of one that works? I have been dutifully labeling junk mail as junk, and it just doesn't work. I am so sick of graphic images and lubricious subject lines. Anybody? Does anything exist that really works?