How to Modify Override Handler class in jsse.jar
Hi,
Is there a way to change port number in Handler class in jsse.jar and recompile the Java file, or override the class?
The Handler class seems to be using port number 443, whereas the the Webserver of PS Application is using a different port number (7004).
Any ideas.
Thanks
Jay
You're over-thinking this. The Handler class uses whatever port it is told to use by the person that constructs it. 443 is just the default.
All you have to do is put the required port number into the https URL, e.g. https://www.myhost.com:7004.
Similar Messages
-
How do I list all classes in a Jar file?
How do I list all classes in a Jar file?
Its no problem if the jar file contains classes, but I have an EAR file, which contains a jar-file, and I want to list all classes in that jar-file.
I would like to do something like this:
java.util.jar.JarFile jarfile = new java.util.jar.JarFile( new File("/meYear.ear"), true );
java.util.jar.JarEntry jar = jarfile.getJarEntry( "myJar.jar" );
// Cast it to a new JarFile:
java.util.jar.JarFile newJar = (java.util.jar.JarFile)jar;
But the method getEntry returns something like jarFile$JarEntry, if I try to class cast it I get an classCastException. -
How to modify a specific class in jar file ?
I've downloaded a jar file for applet, the jar file works fine... but when I extract a specific class file from the jar file and just recompie it from my IDE (Eclipse) without even making any change and then compress again jar class files including the new modified class file instead of the old one (without any modifications to other classes)... then I get
(NoSuchMethodError ) exception whenever methods of other classes are invoked from within the modified class !!
...The manifist file of the jar file reads the following line
Created-By: 1.4.0_01 (Sun Microsystems Inc.)
I thought it means that jar class files were built using JDK 1.4.0_01 ...I used JDK 1.5.0_01 in my IDE...
I thought JRE incompatiblity was the reason of the problem so I downloaded JRE 1.4.0_01 and used it to build this class file... but i got the same exception..
so what is the main reason of the problem ? ...should I make changes to IDX files accompanying applet jar files ??
If no, then how can I overcome this problem and be able to change and rebuild a specific class from this jar file ?
(I cannot rebuild all classes in jar because there are errors I cannot resolve !!)Could you please clarify: do you want to run your project or a project from an independent jar?
In the first case just select Run Project from the project context menu or select a class with main method and click Run File in the class context menu.
Regarding the second case:
- I don't think there is such a feature in the IDE (running third party jars is not an IDE function). Could you explain why you need this? -
How to include the inner classes in a jar file in netbeans ide
Dear java friends
how to say to netbeans ide that it has to include the
inner classes in the jar file.
(i have one single applet class
with two inner classes that show up
in the build/classes file but not in the jar).
The applet works in the viewer but not
in the browser (I believe because the
xxx$yyy etc should be in the jar)
willemjavFirst, please stop posting the same question multiple times:
Duplicate of http://forum.java.sun.com/thread.jspa?threadID=5269782&messageID=10127496#10127496
with an answer.
Second, If your problem is that you can't do this in NetBeans, you need to post to somewhere that provides NetBeans support - like the NetBeans website's mailing list. These forums do not support NetBeans (or any other IDE) - they are Java language forums. -
How to load all the classes in a JAR file at runtime?
Any clues o:
"How can I force JVM to load all the classes in a specified JAR at once?"
Thanx!
-RajeevWell I was thinking may be there exists an option with "java", when I
am starting an application from a jar file, I could force it to load all
the classes in the JAR. I don't want to do it programically. Is there such
an option available?? Or in other words can I ask JVM to not do the dynamic
loading for the JAR??
Thanx.
List all JarEntries and convert the paths to fully
qualified class files
e.g file in jar
[1] /com/mycompany/proj/X.class
should become
[2] com.mycompany.proj.X
then for each entry issue
Class.forName( [2] ); -
How to access all the classes in a jar file
hai
i have a custom built JAR file which has many classes(Translets) in it . i want to access the classes inthe JAR file in a JSP page or an servlet. I have tried setting the classpaths etc , but nothing has happened.
Where should the jar file be Palced - i am using Tomcat Server.
How Can i Access the class files .. Very Urgent .. Please Help me ..
Peter IyerWhat is showing a file not found error? The web browser? if so, that's probably not a problem with the jar file.
Also, have you expanded your jar file to make sure that you jarred it up correctly? -
How to Invoke a main class in a jar file from my project
Hi
I am a new user of the Sun Java Studio enterprise. I would like to know how i can invoke a main method in a jar file associated to the project.
regards
NisanthCould you please clarify: do you want to run your project or a project from an independent jar?
In the first case just select Run Project from the project context menu or select a class with main method and click Run File in the class context menu.
Regarding the second case:
- I don't think there is such a feature in the IDE (running third party jars is not an IDE function). Could you explain why you need this? -
How to modify the Manifest file in the JAR file
Hi guys,
i am having a JAR which contains one Manifest file and 10 class files.
actually i want to do some changes on the manifest file, but by using the ,
" jar -cmf new_manifest_file jar_fileName all_class_files " option i am able to modify the manifest file by repacking the .class also.
i want to modify the manifest file without disturbing the existing class files in the JAR file.
Thanx in advance.............! ! ! !
bye,
subbuyeah, that is correct.
my doubt is,
Is it possible to modify the Manifest file which is inside the jar file, by without disturbing the Class files.
--Subbu -
How to tell if a class within a jar file is being accessed?
Hello,
I have written a web app using NetBeans 5.5 and some external libraries.
Rome 0.9 and a Rome module georss-rome.jar.
Everything works fine with the integrated Netbeans tomcat 5.5...
When I try to deploy this as a war using Tomcat 5.5 standalone It will not work properly. To make things worse, I get no error.
In my code, I instantiate a class in the georss module by doing the following:
GeoRSSModule geoRssModule = GeoRSSUtils.getGeoRSS(entry);
if(geoRssModule != null)
...do something;
}I then check for null and if not null I do stuff with methods within that jar.
Basically I pass a rss feed or a georss feed. If its a georss feed then geoRssModule would not be null.
As I said, this works fine within integrated tomcat but does nothing (no expected action) with standalone which leads me to believe that this is a deployment/jar/classpath issue.
To me it seems that the class GeoRSSModule is never actually instantiated, but I never get any errors or expected output.
I set tomcat logging.properties to FINEST for all types of logging.
Is there a way to determine if the jar is even being accessed for that class file?
TIA!
BTW, I dont have the module source.
I also verified that the jars (rome.jar and georss-rome.jar) are being deployed to webapps/myapp/WEB-INF/lib
Message was edited by:
gfortyGeoRSSModule geoRssModule = GeoRSSUtils.getGeoRSS(entry);Try placing logging statements before and after this statement so that you can track execution. Make sure that your code at least gets to this particular line where you instantiate the GeoRSSModule object. Then place a logging statement afterwards to see if an object was indeed created.
What helps me in situations like this is that I also use the NetBeans attached debugger listening on your standalone Tomcat installation. This allows you to trace your execution on the server side, one line at a time, giving you a clearer understanding of program flow. -
Don't know how to make my main class import a jar file
OK, the title doesn't make much sense but here are my create-jar.bat and manifest files:
create-jar.bat:
jar cvmf manifest.txt dassimul-admin.jar player/ admin/ com/ connector/ common/ *.class
manifest.txt:
Main-Class: admin.DASAdmin
the problem is that in connector/ folder there is the jdbc mysql connector driver (.jar file).
in Eclipse I can add this jar to the Java Build Path, so the program runs.
When I double-click the dassimul-admin.jar file, I get a Class Not Found Exception
C:\MYWORK\dassimul>java -jar dassimul-admin.jar
FATAL ERROR WHILE LOADING SQL DRIVER: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
I think that the problem lies in the fact that admin.DASAdmin can't see and import the jar file in connector/ folder... am I right?It looks like you are putting the mysql jar file inside the dassimul jar. That won't work unless you write custom code. You should use the Class-Path attribute of the manifest to define a relative path(s) to the other jar(s) that you need to use.
[http://java.sun.com/docs/books/tutorial/deployment/jar/index.html] -
How to find a certain class in all "JARs" on my partition ?
Is there a way/tool which helps me to find out in which of all the JARs on my partition a certain class exists ?
Example: I want list all JARs (with path) which contain the Class
cmpack.mypack.mayclass234
Note that not only JARs in my CLASSPATH should be investigated but ALL JARs!Look at all files on the partition, check whether they're JARs (-->FileFilter), feed them to an UrlClassLoader and try to load that class. If that works, it's in there.
-
Override SWC classes in FB?
I have a Flash Pro project with numerous items in the Library linked to Class files.
I can successfully export a SWC and use the items in Flash Builder.
However, how would one override the Class in the SWC with a new one n FB?
Currently, to edit the Class, I have to open up the project in Flash Pro, edit the Class and export the SWC again. Only then will I see the changes.
When I try to put a new Class in Flash Builder with the same name as the one in the SWC, it will run that new Class but the assets of the Library item are not there.
Hopefully I am missing something obvious.This is a working hack but I would still prefer a better way!
In Flash Builder I create a Class that is near-to but not exactly the same as the original Class from the SWC.
In this Class I make it extend the original Class in the SWC.
eg:
Class in SWC: SomeClass.as
Class in FB: SomeClassExt.as
In SomeClassExt I use:
public class SomeClassExt extends SomeClass{
I still need to test this out further but so far so good. Obvious or not.
One thing I should mention, at least with my current example I need to remove a listener or the Class fires twice:
removeEventListener(Event.ADDED_TO_STAGE,Init);
So why do I not remove the Class from the Library item in Flash Pro to begin with?
I built all the items and their Classes in Pro. Moving to FB for this project is recent.
I can still test the functionality of the Classes in Flash Pro doing it this way and Not have to put them all in the same project folder in FB.
Again, I would still prefr a better way to just override the SWC's Class and not have to create new Class Names in FB. This requires a lot of changes to an otherwise functional application. -
How to submit a form in jsp from tag handler class
I have a form in jsp.I created some more links in the tag handler class.Based on the link we click form action will take place.Now how can i submit the form in tag handler class for the links i created in that class.
I have a form in jsp.I created some more links in the tag handler class.Based on the link we click form action will take place.Now how can i submit the form in tag handler class for the links i created in that class.
-
How to access SOAPAction in Handler class ?
How do I access the SOAPAction in a handler class? I've tried to get the SOAPACTION_URI_PROPERTY
from the SOAPMessageContext, but the value is null.Thanks Christian -- that worked great.
"Christian" <[email protected]> wrote:
>
Hi Nancy,
the SOAP Action is a HTTP Header field:
http://www.w3.org/TR/SOAP/#_Toc478383528
So it should be possible to get this information through the
getHeader() or getHeaders() method from the HTTPServletRequest
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html#getHeader(java.lang.String)
Christian Plenagl
Developer Relations Engineer
BEA Support
"Nancy" <[email protected]> wrote:
How do I access the SOAPAction in a handler class? I've tried to get
the SOAPACTION_URI_PROPERTY
from the SOAPMessageContext, but the value is null. -
How to avoid restart weblogic after I modify EJB implementation class?
I am sure I redeploy my application after I modify EJB implementation class. It
is unacceptable to restart weblogic server if I changed some EJB . Is there any
way to avoid this?
Thanks!I would open a case with BEA support. I would take a look at it, but I'm going
on vacation :(
pat
"CottonXu" <[email protected]> wrote:
>
My WLS version is 7.0 and I use weblogic console to redeploy the entire
application.
I am sure that EJBs are not in classpath.
What should I do ?
"Pat Bumpus" <[email protected]> wrote:
Hi,
I haven't seen this behavior. My EJBs seem to redeploy and pick upthe
EJB bean
changes. Make sure that your EJB is not in the system classpath that
could cause
this problem.
What version of WLS?
How are you deploying the EJB?
pat
"CottonXu" <[email protected]> wrote:
I am sure I redeploy my application after I modify EJB implementation
class. It
is unacceptable to restart weblogic server if I changed some EJB .
Is
there any
way to avoid this?
Thanks!
Maybe you are looking for
-
Sometimes when Safari downloads files, mainly images, it doesn't save with an extension. I have to manually rename it with ".jpg", or whatever file type it may be. Anyone else experience this? OS X Yosemite
-
MSOIDSVC.EXE - a LOOOOT of errors in non-internet environment
Hi, everybody! We've Office 2013 installed in a network with no connection to Inet. Almost on all computers with Office 2013 we've one and the same error from source MSOIDSVC.EXE EventID 0. The body of an error is (may be not exact, this is translati
-
IPhoto library to Apple TV?
Is it possible to send my iPhoto library straight to Apple TV without using MobileMe or some other Internet site? I have an Aquos TV. I don't see it mentioned in the Apple TV list. Is that a problem? Thanks!
-
To generate email alert when archive logs fill
Hi. I was away yesterday and the archive logs were filling up and were at 92% when I got in this morning. I need to have an email generated once the /archlogs directory fills past 90%. The total size of that directory is 8064M. So once it hits around
-
Why doesn't the stroke width tool create smooth curves?
Am I the only one who has edited a stroke with the stroke width tool, then outlined the stroke only to find a countless number of points and noticeably unsmooth edges? Is there a setting or certain way to ensure that the stroke width tool won't corru