Vladimir Bezugliy

Ranch Hand
+ Follow
since Sep 29, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vladimir Bezugliy

Is it possible to add custom log4j appender to WebLogic?
In case of JBoss it is possible - https://community.jboss.org/wiki/AddedACustomAppenderToJBossAS

How to do the same in WebLogic.
I've added jar with custom appender to class path of managed server, but it did not help - in this case WebLogic cannot find org.apache.log4j.AppenderSkeleton.
11 years ago

Roberto Perillo wrote:Well, it looks like com.inprise.vbroker.IIOP.Connection depends on com.inprise.vbroker.IIOP.Task. So, if this class can't be found in the class-path when you run the client, then you'll get NoClassDefFoundErrors. I tried to find the name of a jar that contains this class, but couldn't find any. Do you happen to know what is the jar file that contains this com.inprise.vbroker.IIOP.Task class? If you have it, try including it in your class path and hopefully everything will work well.


Hello Roberto.

Jar: vbjclientorb.jar
Class com\inprise\vbroker\IIOP\Connection.class uses class com\inprise\vbroker\IIOP\Task.class
But there is only com\inprise\vbroker\IIOP\Connection.class in vbjclientorb.jar.

Jar: vbjorb.jar
Class com\inprise\vbroker\IIOP\Connection.class uses class com\inprise\vbroker\IIOP\Task.class
There are both com\inprise\vbroker\IIOP\Connection.class and com\inprise\vbroker\IIOP\Task.class in vbjorb.jar.

13 years ago
We are migrating to VisiBroker 7.0.
In our client application we started to use VBJ Client Runtime provided as a Java archive vbjclientorb.jar file.

There is no com.inprise.vbroker.IIOP.Task in vbjclientorb.jar for AIX.
But com.inprise.vbroker.IIOP.Connection class located in vbjclientorb.jar uses com.inprise.vbroker.IIOP.Task class.

java.lang.NoClassDefFoundError: com.inprise.vbroker.IIOP.Task
at com.inprise.vbroker.IIOP.Connection.write(Unknown Source)
at com.inprise.vbroker.GIOP.OutputStream.write(Unknown Source)
at com.inprise.vbroker.GIOP.OutputStream.writeUnfragmented(Unknown Source)
at com.inprise.vbroker.GIOP.OutputStream.writeFragmented(Unknown Source)
at com.inprise.vbroker.GIOP.Message.write(Unknown Source)
at com.inprise.vbroker.GIOP.GiopConnection.send_message(Unknown Source)
at com.inprise.vbroker.GIOP.GiopConnection.send_message(Unknown Source)
at com.inprise.vbroker.GIOP.ProtocolConnector.invoke(Unknown Source)
at com.inprise.vbroker.orb.DelegateImpl.invoke(Unknown Source)

Is it a bug?
Or we should include some additional jar?
13 years ago
I have following xhtml



I would like to convert it to next HTML


I use next XSLT for this purpose:


I use org.apache.xalan.xslt.Process.

But as result I have next HTML


1. Why there are a lot of empty strings in this HTML?
2. Why this HTML is not formatted like first example?

There are two computers.
1. IBM RISC
osagent.
VisiBroker.
2. PC with Windows XP

We created the simplest client-server application like HelloWorld.
If we run server on PC and client on RISC then client successfully call method on server.
But if we run server on RISC and client on PC then client can not connects to server.

We start server and client with next vbroker parameters : -Dvbroker.agent.addr=hostname -Dvbroker.agent.port=portnumber

Firewall on PC was turned off.

Does anyone have any suggestions - why client can not connects to the server?
16 years ago
We generate jnlp files by our servlet.
As far as I can see Java WebStart 1.6.0 move jnlp to cache and if I try to call the same jnlp then Java WebStart 1.6.0 get this jnlp file from cache not from my servlet.

I tried to set next headers in order to force not to cache jnlp files:

But it does not help us.

We do not have such problems with Java WebStart 1.4 and Java WebStart 1.5.

What header should I set in order to get generated jnlp file but not cached?
16 years ago
REMOTE_ANT_FOLDER=\\COMP1\DIR1\ant1.7.0\lib
16 years ago
In our team Ant located on one remote computer in shared folder.
All programmers in build-scripts use CLASSPATH like this in order to run Ant:
CLASSPATH=%REMOTE_ANT_FOLDER%\ant.jar;%REMOTE_ANT_FOLDER%\ant-launcher.jar...

When we try to run Ant we get next errors:

********************************************************************
Buildfile: build.xml

BUILD FAILED
java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.<init>(File.java:326)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
at org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)

Total time: 0 seconds
java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.<init>(File.java:326)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
at org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
URI has an authority component
********************************************************************


But if we install Ant on local computer and use CLASSPATH like this then all work OK:
CLASSPATH=C:\ant_1.7.0\ant.jar;C:\ant_1.7.0\ant-launcher.jar...

Why we can not use Ant located on remote computer?

PS.
We do not have such problems with more old Ant 1.6.


[ April 17, 2007: Message edited by: Vladimir Bezugliy ]
[ April 17, 2007: Message edited by: Vladimir Bezugliy ]
16 years ago
I use task javac in my build.xml
We've worked on PC before.
Today I've tried to build my project on AIX.
But build failed.
Ant try to call com.sun.tools.javac.Main.
But we have AIX java, not SUN java!
If you look at org.apache.tools.ant.taskdefs.compilers.Javac13 you will see that Ant uses next code


What should I do in order to run ant on AIX?
18 years ago

Originally posted by William Barnes:
> call.setOperationName( method );

You need to put the name of the method you are trying to use here.



I pass its name as the parameter
java samples.userguide.example2.CalcClient add 2 5
19 years ago
I've installed Axis under TomCat.
I've added xerces.jar into axis\WEB-INF\lib.

I tried to run the simplest example from tutorial - Calculator.jws


If I try to call this service from browser
http://localhost:8080/axis/Calculator.jws?method=add&i1=1&i2=2
all work OK.

But if I try to call this service from java code


then I've got next error

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Premature end of file.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:ivbezugliy

org.xml.sax.SAXParseException: Premature end of file.
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
at org.apache.axis.client.Call.invoke(Call.java:2737)
at org.apache.axis.client.Call.invoke(Call.java:2413)
at org.apache.axis.client.Call.invoke(Call.java:2336)
at org.apache.axis.client.Call.invoke(Call.java:1793)
at samples.userguide.example2.CalcClient.main(CalcClient.java:46)
Exception in thread "main"


Where is mistake?
What do I do wrong?
19 years ago
JSF
It is very young technology.
But I think it will be very popular in the near future.
19 years ago
JSF
Could anyone advise me a good book about Swing?

Now I look at 3 books:
- O'Reilly � Java Swing, Second Edition (By Brian Cole, Robert Eckstein, James Elliott, Marc Loy, David Wood)
- Manning � Up to Speed with Swing, Second Edition
- Manning � Swing, Second Edition (MATTHEW ROBINSON, PAVEL VOROBIEV)

But I think that first book is the best from these 3 books.
Am I right?
Or there is a much good book in the world?
If yes, could you give me the name, please?
19 years ago
Try add <h:messages> on your page :-)

You should either use

or

[ March 16, 2005: Message edited by: Vladimir Bezugliy ]
19 years ago
JSF
This code works well:


19 years ago
JSF