Hi,
im having a ClassLoader issue.
Since im quite an osgi newby, hopefully the answer isn't that hard :)
I think it has to do with Compile vs. Runtime libraries.
in Netbeans 6.7.1 project properties, the compiletime libs are always propagated to the other categories.. so i can't differentiate there.
When compiling the FelixHost the ...
Hi,
We needed to consume MOSS out of the box web services hosted on HTTPS protocol from a Java application running on WebLogic server. Do we need to import SSL certificate of the MOSS website into WebLogic server or can we simply bypass certificate validation? What is the best approach? We may need to support more than one web site as mo...
Hi ...
some of you may know the Java Almanac : http://www.exampledepot.com/ where a lot of code snippets exist for a day-to-day use.(like reading a file etc.)
I'm currently using C++ and i was just curios if there exists something similar ?
...
Hi,
I created an Axis2 client to test my axis2 webservice. However, i am getting the below error at runtime:
org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError: Could not initialize
class com.sample.LoginRequestDocument
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j
ava:517)
at org.ap...
I am attempting to implement an HTTP tunnel using similar techniques to those employed by web browsers to simulate a full-duplex connection, in Java using the Netty framework. I wish to implement this in such a way that it will work in the presence of real world HTTP proxies. I am attempting to do this without using a servlet container, ...
Hi
I have written 2 filters 1 for a normal user and 1 for a admin yet you have to be admin to login. Here is the source for both of my filters:
public class newFilter implements Filter {
String UUIDInDB;
String UUIDInCookie;
public void init(FilterConfig filterConfig) throws ServletException {
//To change body of implemented metho...
I am using RMI to implement some distributed algorithm, and since we're transmitting quite big objects, I'd like some precisions about when RMI transmits serialized objects over the network.
Suppose I have a Remote classe with the following method.
class MyServer extends Remote {
public synchronized void foo (Bar bar) {
......
In a project I'm working on, I have a main class (named TrackWin) that extends JFrame. In this frame, I make use of a JTabbedPane.
A user can create a new tab in the pane from the Menu Bar. Whenever this occurs, tabbedPane.addTab() is called in TrackWin.
I also have a class called TrackTab, which extends JPanel. This class contains a...
Hi,
I have a bit of an unusual question: How can I create a "Command Console" using Swing?
What I want to have is a console where the users type in commands, press enter, and the output from the command is displayed under. I don't want to allow the user to change the "prompt" and older output. I am thinking of something like Windows CM...
When editing JSPs in Eclipse, I periodically get stack overflows. Once I get one, each time I click a character I get a pop-up telling me there was another stack overflow. This continues until I close the JSP and re-open it, at which time it's fine for a while.
org.eclipse.jst.jsp.core.internal.parser.JSPSourceParser:
input could...
Hi There,
I have an application which has been running happily under Java 1.5 for around a year. We've just had the boxes updated and had Java 1.6 installed.
After deploying the app to the new server we've found the application is throwing an exception when it tries to transform some XML. We couldn't understand why this was happening u...
I need to create a panel where I can put some rectangles and it automatically reorder just inserting a scrollbar and growing up vertically. Also this panel can be resizable and again the rectangles must to be reordered to correctly be displayed inside the panel.
...
in my applicationContext.xml, i put this
<bean id="something" class="com.to.theController"/>
in com.to.theController
i have this method like
@Controller
public theController{
@RequestMapping(value="/api/add", method= RequestMethod.GET)
public String apiAddHandler(Model model){
model.addAttribute("api", new Api());
re...
Hi, I want to set up a program where all incoming emails into vpopmail of the form
[email protected] get forwarded to a java program / daemon that is running
the java program will receive the information about the person sending the email
so it needs to access the standard email and from the account (in the above case 12345678) infer...
I'm looking at a solution to manage my content between a website & intranet and was playing with Hippo CMS in combination with Jetspeed. It looks good, bus does anybody have any experience with this combination? And where do you shop for more portlets?
...
Does java.util.concurrent.atomic.AtomicBoolean not have a method that can atomically negate/invert the value? Can I do it another way? Am I missing something?
...
I'm trying to generate graphs dynamically using JFreeChart as a result of some checkboxes the user selects, but I can't figure out how best to get the generated datasets into chart form (I have code that makes charts from these, but need to produce pngs) and into the JSP view. Currently, I can only think of sending the Datasets to the J...
Hi all! How can i read http stream with HTML page in page's encoding? Here is a code fragment i use to get the http stream. InputStreamReader has the encoding optional argument, but i have no ideas about the way to obtain it.
URLConnection conn = url.openConnection();
InputStream is = conn.getInputStream();
BufferedReader d = new Buffer...
I have written information to a file in python using struct.pack
eg.
out.write( struct.pack(">f", 1.1) );
out.write( struct.pack(">i", 12) );
out.write( struct.pack(">3s", "abc") );
Then I read it in java using DataInputStream and readInt, readFloat and readUTF.
Reading the numbers works but as soon as I call readUTF() I get EOFExcept...
In Java or via some Eclipse plugin, is it possible to find a process by name without dropping down to native code? Specifically, I want to determine if a web browser is running and let the user know they may need to restart the browser.
I know native code is always an option but I want to avoid setting up another JNI library if I can av...