Missing classes from servicegen client jar
If you generate the WSDL, stubs, etc from an EJB jar, not all the required classes
are copied to the service_client.jar.
If your EJB method takes a class (say HomeAddressDTO) and that class inherits from
a base-class, AddressDTO, then the AddressDTO is not included in the client jar.
Regards,
Nick
if you want to use the same classes on both client and server side
pls set useservertypes=true in the client element of servicegen.
It seems wls 7.0ga is not adding base classes for value types to
the client.jar file. I have filed a CR on this bug. Hope this will be
fixed for sp1.
Anyway, it is ok to add more classes to the client.jar manually.
You may have to do it when reflection cannot find all the required
classes or if you want to add your client app specific classes.
regards,
-manoj
"Michael Jouravlev" <[email protected]> wrote in message
news:[email protected]..
I have the same problem. Do you think it is a bug? AFAIK, the processlooks
like this: value objects --> WSDL --> client-side stubs for value objects,
that actually do not have much in common with original ones. As I
understand, it is possible either to copy manually created value objectsto
client JAR file (no portability to non-Java clients), or to generate these
stubs from WSDL. There is a parameter for clientgen task which changes the
default behaviour. In my case all the parent classes in my value object
hierarchy are not "mirrored" in client JAR. I think that this is correct,
because client stubs do not have any hierarchy in them, they are just flat
structures.
I added needed classes to client JAR manually, but I think that this is my
personal design error that I need these classes.
What do you think?
Michael.
"Nick Minutello" <[email protected]> wrote
in message news:3d094c10$[email protected]..
If you generate the WSDL, stubs, etc from an EJB jar, not all the
required
classes
are copied to the service_client.jar.
If your EJB method takes a class (say HomeAddressDTO) and that classinherits from
a base-class, AddressDTO, then the AddressDTO is not included in theclient jar.
Regards,
Nick
Similar Messages
-
Missing classes from the javax.swing package?
Can anyone throw any light on what appears to be a missing class from the javax.swing package?
When CelsiusConverter.java from The Swing Tutorial (code fragment shown below) is compiled the JFrame class can't be found.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CelsiusConverter implements ActionListener {
JFrame converterFrame;Despite the package javax.swing being imported, the compiler does not seem to be be able to find the JFrame class.
CelsiusConverter.java:14: Class JFrame not found in type declaration.
JFrame converterFrame;To attempt to solve this issue all the files in jdk1.5.0_02\lib were added to CLASSPATH.
CLASSPATH was set to C:\Program Files\Java\jdk1.5.0_02\lib\dt.jar;C:\Program Files\Java\jdk1.5.0_02\lib\htmlconverter.jar;C:\Program Files\Java\jdk1.5.0_02\lib\jconsole.jar;C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar;C:\Program Files\Java\jdk1.5.0_02\lib;C:\Program Files\Java\jdk1.5.0_02\lib\ir.idl;C:\Program Files\Java\jdk1.5.0_02\lib\jawt.lib;C:\Program Files\Java\jdk1.5.0_02\lib\jvm.lib;C:\Program Files\Java\jdk1.5.0_02\lib\orb.idl;C:\Program Files\Java\jdk1.5.0_02\demo\jfc\SwingApplet\SwingApplet.jar;.;c:\CoreJavaBookThis is extremely strange... If you're sure it's not a problem in your code or with your classpath, the only other thing I can think to suggest is re-downloading / installing java
-
How to get missing classes from J2SE to J2ME?
Hello,
I am currently developing a J2ME project. As IDE I use Eclipse with the plugin EclipseME. It works great.
Now I have the following problem: I need some classes which are present in J2ME (e.g. sorting of Strings, date functions). So I downloaded the source code for the JDK. Now I want to compile the missing classes (the ones that are not in the libs coming with the WTK) from JDK source into my project, so I can use these functions which are missing in standard J2ME. Importing the whole JDK tree is problematic, because then all classes will be compiled from source. This will cause errors with the JVM on the target device.
Is there a possibility to import the JDK sources and only let compile the classes that are missing in J2ME libs? What is the best way to do this? Or do I have to add the source of each class (and it's dependencies) i need manually? Can I in this case use the original tree of packages and classes (e.g. java.util.ClassName) or do I have to create and new subtree (project.ClassName) in my project and import from there?
Greetz
schneidexeGenerally, this is not possible. The classes have far to many references to other classes, and there are far to many incompatibilities to make it work.
Best solution is to make your own J2me substitution, or find some j2me api that already does what you want. -
Missing ejb stubs in client.jar
Hi,
When I deploy me ear file then sunOne will generate a clientEjb.jar for me automatically with the stubs inside.
Now I recently had to change the remote ejb's with local ejb's, but when I now deploy the ear the client jar does not include the stubs, yet then I get a javax.naming. NamingException: invoccation exception. If I include the stubs manually, it works.
Any idea why now suddenly these stubs are not included anymore
Version SunOne AS = Sun ONE Application Server 7.0.0_02
OS = Windows XP
J2EE=1.3
Thank you in advanceHi joyv,
Please post the exception stack trace you observed. That will help to debug the problem further. Thanks.
--ken -
Missing class in weblogic-tags.jar for 6.1 beta
I am using the weblogic-tags.jar and am getting an error when
pre-compiling my jsps:
[java] [jspc] parsing /ami/drugsearchtestresult.jsp:
[java] [jspc] resolved taglib uri 'weblogic-tags.tld' to
taglib-location /WEB-INF/lib/weblogic-tags.jar:
[java] Error: translation of /ami/drugsearchtestresult.jsp failed:
weblogic.servlet.jsp.JspException: (line 1): Error in using tag library
uri=
'weblogic-tags.tld' prefix='wl': cannot find tag class:
'weblogicx.jsp.tags.PrefetchTag'
I looked in the weblogic-tags.jar and indeed, the PrefetchTag class is
non-existent though it is referenced in the .tld (I am not using that
tag)
I tried testing this page (very simple JDBC-query based page with the wl:process tags wrapping it) with vtags and I got the following output (and then Weblogic died. There was a lot of tracing output which inferred that the page kept looping on itself.): I think we get a stack overflow or something. There is nothing in the WL log.
One note: if the page fails validation, it renders the error and stays alive. it seems like when it wants to submit the form, that's when the problem hits. The example uses SQL Server 2000 with a tx datasource, but
you could probably remove that entirely to get this to happen again. And I did try using the redirect information in the summary tag, but the same thing happens.
Hope this helps,
Ken Rimple
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]processRedirect
[Summary]location /test.jsp
[Summary]rd is not null
[Summary]doStartTag of :/test.jsp
[Summary]initializeValidators
[Summary]REDIRECTpAGE /test.jsp
[Summary]ACTION/test.jsp
[Summary]processValidation
[Summary]proces -
Missing class when exporting to jar
for some reason, when i export my project to a jar using eclipse, it exports all the files excpet the file that contains the main method.
the same project has been succesfuly exported before...
is it a bug in eclipse, or something i'm doing wrong, and is there a solution?but i haven't cahnged my configuration and the same projects worked before...
even if i try just to export the main class to a jar, without any other files, all i get is a jar with only the metafile within -
Missing DTOs in Client JAR Using Appc
Hello,
I've been running Appc on my server JAR to generate my client JAR. It works great,
except that some of the files utilized by the application, namely the DTOs, are
not being packaged into the JAR. I think I know why this is occurring, but I'm
not sure how to fix it. Let me explain how a simplified version of the app works:
It's a security administration app, so there's this idea of users and their roles.
The only remote bean in the JAR is a stateless session bean. It has the following
methods:
public UserDTO getUser(String pUserId);
public List getRolesForUser(String pUserId);
public void updateUser(UserDTO pUser);
public void replaceRolesForUser(List pRoles);
Simple enough, right? The Appc process knows to place the UserDTO class in the
client JAR since it is referenced in the interface. However, what the Appc process
does not realize is that the List of roles being returned is actually a List of
RoleDTOs.
The calling client application uses the RoleDTO class when iterating through the
list of roles. Since the client application is a remote application and thus
has only the client EJB JAR in its classpath, the client app can't compile; it
can't find a definition for RoleDTO. Is there some way to force the Appc process
to include all DTOs?
Thanks,
LeoThanks. That's what I thought!
Rob Woollen <[email protected]> wrote:
Your analysis is correct. There's no real clean solution in this case
other than returning a RoleDTO[] or updating the client-jar file with
the missing classes.
-- Rob
Leo J. Hart IV wrote:
Hello,
I've been running Appc on my server JAR to generate my client JAR.It works great,
except that some of the files utilized by the application, namely theDTOs, are
not being packaged into the JAR. I think I know why this is occurring,but I'm
not sure how to fix it. Let me explain how a simplified version ofthe app works:
It's a security administration app, so there's this idea of users andtheir roles.
The only remote bean in the JAR is a stateless session bean. It hasthe following
methods:
public UserDTO getUser(String pUserId);
public List getRolesForUser(String pUserId);
public void updateUser(UserDTO pUser);
public void replaceRolesForUser(List pRoles);
Simple enough, right? The Appc process knows to place the UserDTOclass in the
client JAR since it is referenced in the interface. However, whatthe Appc process
does not realize is that the List of roles being returned is actuallya List of
RoleDTOs.
The calling client application uses the RoleDTO class when iteratingthrough the
list of roles. Since the client application is a remote applicationand thus
has only the client EJB JAR in its classpath, the client app can'tcompile; it
can't find a definition for RoleDTO. Is there some way to force theAppc process
to include all DTOs?
Thanks,
Leo -
Client Jar packing with common-ant.xml - Why is (EJ)Bean class included ?
Hi,
I'm using for all my projects the same build mechanism as in the samples.
This property
<property name="add.ejbjarclasses.to.clientjar" value="true"/> let Ant copy the EJB classes into the client jar. Fine so far.
But I've seen in my projects and in the samples, that the client jars not only contain the necessary home and remote classes, they also contain the (EJ) Bean class.
Why?
*1.)* Is this just a snugness in the ant tasks of common-ant.xml or is there good reason for this?
*2.)* Are you ignoring that or do you prevent somehow, that this not necessary class is in the client jar.
best regardsThe <empty> target list will appear whenever JDeveloper has trouble parsing the Ant XML document. In this case, it is because of the reference to the common-build.xml file. See the thread named "Building with Ant" in this forum, where this issue was recently discussed:
Re: How to bold a label ?
The end result of that discussion was that, due to a bug in JDeveloper, you need to specify the full URI to the included file. In a future release we will allow the use of relative URI's.
-Matt Hawkins, JDeveloper Team -
Loading classes from another jar file
I've set up my jnpl file so that it references a core jar file (contains main() function). The jnlp also references another jar file (app.jar) which contains class files that I load and instantiate dynamically (using ClassLoader). The core.jar file contains a manifest that includes a reference to app.jar.
The app works fine when I use "java -jar core.jar" from the command line.
However, when I wrap the jars using jnlp, I always get a null pointer exception because it cannot find any class that is in the app.jar file. I've tried different strategies, such as trying to load a class file that sits on the server (in a jar file and not in a jar file), but that also fails if I use jnlp (However, it works if I use "java -jar core.jar")
Any ideas what is going on?This is the "OckCore.jar" manifest before signing:
Manifest-Version: 1.0
Main-Class: com.Ock.OckCore.OckApp
Class-Path: . OckMaths.jar
Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
Name: com.Ock.OckCore.OckApp.class
Java-Bean: FalseThis is the manifest after signing:
Manifest-Version: 1.0
Main-Class: com.Ock.OckCore.OckApp
Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
Class-Path: http://hazel/Ock/. http://hazel/Ock/OckMaths.jar
Name: com/Ock/OckCore/OckApp.class
SHA1-Digest: KRZmOryizx9o2L61nN+DbUYCgwo=I have removed a load of irrelevant stuff from the "after" manifest to keep it readable.
note that :-
The OckApp.class loads normally from webstart and tries to load a class from OckMaths.jar.
I can prove that OckApp.class does load because it creates a log file when it does.
The OckApp.class tries to load a class from the OckMaths.jar. This fails if webstart is used but works if OckCore is launched using "java -jar OckCore.jar".
The jars do exist at the location specified by the manifest.
The application launches normally if I use "java -Jar OckCore.jar"
Here is the jnlp file
<?xml version='1.0' encoding='UTF-8'?>
<jnlp
spec="1.0"
codebase="http://hazel/Ock"
href="OckMaths.jnlp">
<information>
<title>Ock Maths Demo</title>
<vendor>Rodentware Inc</vendor>
<description>Demo of a ported app running as a Java Webstart application</description>
<description kind="short">An app running as a Java Webstart application"></description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.3"/>
<jar href="OckCore.jar"/>
<jar href="OckMaths.jar"/>
</resources>
<application-desc main-class="com.Ock.OckCore.OckApp">
</jnlp> I have also signed the jars outside of a webdirectory. I get the following manifest file:
Manifest-Version: 1.0
Main-Class: com.Ock.OckCore.OckApp
Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
Class-Path: . OckMaths.jar
Name: com/Ock/OckCore/OckApp.class
SHA1-Digest: KRZmOryizx9o2L61nN+DbUYCgwo=
note that :-
The jars do exist at the location specified by the manifest.
The application launches normally if I use "java -Jar OckCore.jar".
The application doesn't launch from webstart.
I've found that cache, but the jar files have been renamed.
OckCore.jar is anOckCore.jar, etc... so I'm not sure if trying to write a cmdline will work anyway. -
FileGeneration/Wlappc not including local ejb interfaces in client jar
With the following setting in the EJB source:
@FileGeneration(
remoteClass = Constants.Bool.TRUE,
remoteHome = Constants.Bool.TRUE,
remoteClassName = "ReportService",
remoteHomeName = "ReportServiceHome",
localClass = Constants.Bool.TRUE,
localHome = Constants.Bool.TRUE,
localClassName = "ReportSvc",
localHomeName = "ReportSvcHome")
@JarSettings(ejbClientJar = "dist/ReportFacadeClient.jar")
@JndiName(remote="service-ReportFacade", local="local-ReportFacade")
@Session(maxBeansInFreePool = "100",
initialBeansInFreePool = "10",
transTimeoutSeconds = "0",
type = Session.SessionType.STATELESS,
defaultTransaction = Constants.TransactionAttribute.SUPPORTS,
ejbName = "statelessSession",
enableCallByReference = Constants.Bool.TRUE)
Along with the "<ejb-client-jar>ReportServiceClient.jar</ejb-client-jar>" entry in the ejb-jar.xml
the ant build script invocation of wlappc successfully creates the "dist/ReportFacadeClient.jar" file as specified which includes the Remote Home and Remote interface, however the local definitions are absent.
It is confirmed that the wlcompile does create the local implementation and interface files, they are just missing from the client jar.
Do I need to manually append them to the jar or is there a configuration setting that I am missing to have this done automatically as is is done
for the remote interface?
Thanks.Hi,
the local interface and local home is for local client which is within the same application (.ear). So local client needn't any client jar. it can always load the classes (local interface, local home, etc. ) it needs.
so there isn't needs to put local interface and local home to a client jar.
the client jar is for client out of the application, and it will be a remote invocation certainly. -
Calling class from servlet gives 500
I have a servlet that works fine by itself, and another class that works fine by itself. However, when I try to create a new instance of the class using the servlet and access a method in the class such as:
Servlet code
Object a = new Object()
a.method
the server returns 500.
Is there some security aspect to calling classes from servlets that may be causing this?Thanks for the replies which have tracked the problem down.
The Server log says:
NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
This class is needed by the class being called by the servlet.
The missing class is in a jar file which is put on the classpath when running the class in a standalone environment. I don't know if it's possible to put this jar on the classpath in the Server environment.
However a solution is to explode the jar file and put the exploded classes in the WEB-INF/classes of the Server. The only disadvantage is that they get wiped out every time I re-deploy the application war file. -
Classes not found for jars listed in manifest
I have an applet whose main jar has a number of dependent jars listed in the manifest. All the jars are signed.
The applet works fine when downloaded from an HTTP server.
Previous to 1.6.14 it would also run from a local directory.
As of Java 1.6.15 and 1.6.16, the classes in the dependent jars are no longer loadable from the local directory. ClassDefNotFound is the reported on the java console. Obviously the class is present, as the application is running fine in JVMs 1.6.14 and previous.
I see that 1.6.16 includes changes for the security baseline, but I cannot find anything that suggests changes are needed to support dependent jars. None of the dependent jars request a specific version of JRE.
Anybody know what is going on?Is this the error? ...Yes, sorry, the exception is NoClassDefFoundError
If you provide a Short, Self Contained, Correct Example someone may be able to diagnosis the problem, as opposeed to guessing. A link to the real live application can be found at: http://download.equitrac.com/38834/InstallGUI.html. (This original application does not meet the definition of short ... but demonstrates the problem well.)
When run as an applet off this site, it works fine.
If you click on the download button, it will place a copy on your local harddrive. To execute it locally double click on your local copy of InstallGUI.html.
When running it locally with Java 1.6.15 and 1.6.16 it will give you a class def not found exception without doing any thing.
When running locally with Java 1.6.14, it will not experience any trouble.
This applet needs permissions to open sockets and store data on the harddrive.
Probably due to the presence of class files that once existed outside of the jars, but are now not thereClose ... the application is made up of a main jar (our product) and a number of third party jars. The manifest for the main jar properly references the other jars, and works in all JVMs before 1.6.15. As of 1.6.15, none of the classes from the referenced jars can be opened.
I found that I can work around the problem by placing all classes into a single jar ... which may infringe on licensing requirements for some of the third party jars we use.
Dave -
Using JarSettings to generate EJB client jar, but supported classes missed
Appreciated for any comments in advance.
I am using @jarSetting to generate EJB client jar file from workshop 9.2. The remote method of EJB has one input parameter that is defined as an interface. The interface is included in client jar, but the implementation of this interface is not.
Please advise how I can add the implementation of this interface to client jar?
Best Regards,
JamesHi James,
I believe the algorithm for creating the client jar is to simply inspect the EJB interfaces using reflection and to include all user defined classes and exceptions that are referenced by the interfaces. In your case, it sounds like a class is not being included because it is not directly referenced by one of the EJB interfaces.
I think the client jar creation algorithm can be described as "best effort" and unfortunately, it does not always end up including all classes needed by the client. I would recommend you add the additional classes manually using the jar tool.
- Matt -
I am using JDeveloper 10.1.3 and get the following error when executing the web service proxy with my call to the web service( this web service is using class OracleXMLSave with method insertXML):
I have included the xdb.jar in my project properties libraries of the web service project and added a file group with xdb.jar to the properties of the webservices.deploy. What else needs to be done? This worked in JDeveloper 10.1.2.
THE ERROR after running proxy in log window:
java.rmi.ServerException:
start fault message:
caught exception while handling request: caught exception while handling request: oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.xdb.XMLType
Dependent class: dbdata2package.DBDataOperations
Loader: DBData2WSApp-DBData2Operations-WS.web.WebServices:0.0.0
Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBData2WSApp-DBData2Operations-WS/WebServices/WEB-INF/classes/
Configuration: WEB-INF/classes/ in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBData2WSApp-DBData2Operations-WS\WebServices\WEB-INF\classes
The missing class is available from the following locations:
1. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-webservice-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-webservice-WS\WebServices\WEB-INF\lib)
This code-source is available in loader DBDataWSApp-webservice-WS.web.WebServices:0.0.0.
2. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-DBDataOperations-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-DBDataOperations-WS\WebServices\WEB-INF\lib)
This code-source is available in loader DBDataWSApp-DBDataOperations-WS.web.WebServices:0.0.0.
:end fault message
at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:545)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:390)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
at dbdata2packageproxy.runtime.DBData2WSSoapHttp_Stub.insertData(DBData2WSSoapHttp_Stub.java:80)
at dbdata2package.DBData2WSSoapHttpPortClient.insertData(DBData2WSSoapHttpPortClient.java:54)
at dbdata2package.DBData2WSSoapHttpPortClient.main(DBData2WSSoapHttpPortClient.java:34)
Process exited with exit code 0.Hi,
actually you increment the index
pstmt.setString(++idx,inrecord.getCommentID());
which means you never have an index of 0 but always start with 1
Frank -
Files missing in the ear and client jar
Hi,
I'm following the examples to build a web service using ANT servicegen task. My
web service calls a lot of other java classes, and those java classes in turn
call other classes. When I used the following taskes to generate the service and
client code, I found the generated ear, war and client jar files only contain
the compiled classes which are used directly by the web service class. Those classes
called indirectly by web service are missing.
<target name="ear">
<servicegen
destEar="${build}/${ear_file}"
warName="${war_file}">
<service
javaClassComponents="com.iit.integration.txlife.txlife28.txlifeProcessor.TxlifeProcessor"
targetNamespace="${namespace}"
serviceName="TxlifeWebService"
serviceURI="/txlifews"
generateTypes="True"
expandMethods="True">
<client
packageName="com.iit.integration.txlife.txlife28.client"
clientJarName="${client_jar_file}"
/>
</service>
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
</target>
<!-- generate the client jar and build the client calling class -->
<target name="client" depends="ear">
<clientgen
ear="${build}/${ear_file}"
warName="${war_file}"
packageName="com.iit.integration.txlife.txlife28.client"
clientJar="${client}/${client_jar_file}">
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</clientgen>
So when I invoked the client code, I always got the class not found exception.
Not sure if I missed anything here.
Thanks a lot,
Henry
[build.xml]Any required support classes have to be in the client's/server's classpath. Or
at least that's what I do.
"Henry Niu" <[email protected]> wrote:
>
>
>
Hi,
I'm following the examples to build a web service using ANT servicegen
task. My
web service calls a lot of other java classes, and those java classes
in turn
call other classes. When I used the following taskes to generate the
service and
client code, I found the generated ear, war and client jar files only
contain
the compiled classes which are used directly by the web service class.
Those classes
called indirectly by web service are missing.
<target name="ear">
<servicegen
destEar="${build}/${ear_file}"
warName="${war_file}">
<service
javaClassComponents="com.iit.integration.txlife.txlife28.txlifeProcessor.TxlifeProcessor"
targetNamespace="${namespace}"
serviceName="TxlifeWebService"
serviceURI="/txlifews"
generateTypes="True"
expandMethods="True">
<client
packageName="com.iit.integration.txlife.txlife28.client"
clientJarName="${client_jar_file}"
/>
</service>
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
</target>
<!-- generate the client jar and build the client calling class -->
<target name="client" depends="ear">
<clientgen
ear="${build}/${ear_file}"
warName="${war_file}"
packageName="com.iit.integration.txlife.txlife28.client"
clientJar="${client}/${client_jar_file}">
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</clientgen>
So when I invoked the client code, I always got the class not found exception.
Not sure if I missed anything here.
Thanks a lot,
Henry
Maybe you are looking for
-
What's changed in the 1.2 prototype.
The 1.2 prototype has surprisingly little documentation. I started this thread to try to remedy that, in part. I'm going to start off by listing what's I've noticed changed in 1.2, gotchas to watch out for, etc, and I hope you all will follow up belo
-
"Low Disk Space - You're running very low on Disk Space C:"
I'm running low on resources in my C: partition, where OS: MS Windows 7 Professional (32 bit) resides, in my ThinkPad T410 (2516-CTO). I should be cleaning it. I've already run CCleaner, and want to avoid the partition expansion operation. I have 50
-
Hello, I want to assign certain network users the ability to login via browser to the profile manager for 10.8.x server and add/remove other users from user groups. Think teachers managing their class rosters, if the class was a group and the users
-
How could we add fields in web ui
Hello Expert, Could any body say that how could I add new field in Web UI... Please revert... Thanks Satish Lath
-
Hello: I'm using AI CS3 (PC version). I want to save the ps file for distiller and change it be pdf format file. After I installed full set CS3, I have distiller9 and acrobat pro 9 (because I installed some from CS4 too). When I click print, I can ch