Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!

Sami Kent

Greenhorn
+ Follow
since Jun 22, 2004
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 Sami Kent

You guys might have known that, but I really got scared for few seconds. The mock exam is counting down from 1:30 hours instead of 2 hours and the passing score is set at 80%.

Besides, the characters are not displayed very well especially for semicolons. Does anybody know if the real exam will look like that?

The book is very good and sticks to the newest exam ojbectives, but I just cannot understand why the included CD is so misleading.
I know the rule to doing "~", but the problem how to convert the looooooong binary result back to decimal? Am I supposed to do some calculation like 2*2*..........*2 in the exam???

Thanks.
In the project I'm working on, PDF and RTF files are generated programmatically using iText Java API.
There's a very special element required in the output files. The following steps tell you how to create manually it in MS Word.

1. Go to "View"->"Header and Footer".
2. Insert a "textbox" into the header area.
3. Insert a picture into this textbox.
4. Move this textbox out of the header area, and put it on the left-hand side of the document.
Resize the picture so it runs from the top to the bottom on the page.
5. Therefore this left-side picture bar will show up on every page of this document since it's created in the header.
And it magically sits out of the header area.

I've achieved this element for PDF files using "WaterMark" object of the iText API. Unfortunately, iText documentation explicitly
claims it doesn't support WaterMark in RTF files.

I tried to post this question in the maillist of iText and got the answer that there's no plan to support this feature for RTF
files in the near future.

I've ever thought about Jfor, another Java API for generating RTF file, which I believed could be more powerful than iText to handle RTF
files since iText was originally designed to handle PDF files and does have too much interest on RTF. But Jfor requires a
XSL-FO input and I don't even know how to represent my required element in a XSL-FO.

I've also checked Jakarta POI, unfortunately, the component for handling RTF is still "in the early stages of development".
(Actually, they are still recruiting volunteer developers for this Open Source project).

Is there anybody here having encountered the similar problem before?

Any ideas and clues to help achieve this element are very welcome regardless of what APIs.
If I didn't make myself clear or any further information required, please shoot me an email at iTextSubscriber@gmail.com
15 years ago
I'm learning Websphere Portal and following IBM red books. I got the following exception when I tried to run my HelloWorld portlet project.( I remember I ran it successfully before)

Please help.

2004.11.14 12:08:44.578 com.ibm.wbi.PluginInstaller load
java.lang.UnsatisfiedLinkError: Can't load library: C:\IBM\WEBSPH~1\runtimes\PORTAL~1\IBMTrans\bin\x86_Windows_XP\Distiller.dll
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1689)
at java.lang.Runtime.load0(Runtime.java:729)
at java.lang.System.load(System.java:842)
at com.ibm.transform.imageengine.Distiller.loadLibrary(Distiller.java:121)
at com.ibm.transform.imageengine.ImageEditor.initialize(ImageEditor.java:92)
at com.ibm.wbi.Plugin.initializeMegs(Plugin.java:178)
at com.ibm.wbi.PluginManager.register(PluginManager.java:130)
at com.ibm.wbi.PluginInstaller.load(PluginInstaller.java:121)
at com.ibm.wbi.Proxy.initialize(Proxy.java:478)
at com.ibm.wbi.Proxy.initialize(Proxy.java:401)
at com.ibm.transform.wps.Toolkit.getTranscodingService0(Toolkit.java:159)
at com.ibm.transform.wps.Toolkit.getTranscodingService(Toolkit.java:119)
at com.ibm.transform.wps.service.LocalServiceHandler.init(LocalServiceHandler.java:336)
at com.ibm.transform.wps.service.TranscodingServiceImpl.initializeServiceHandler(TranscodingServiceImpl.java:98)
at com.ibm.transform.wps.service.TranscodingServiceImpl.init(TranscodingServiceImpl.java:84)
at com.ibm.wps.services.Service.init(Service.java:108)
at com.ibm.wps.services.Service.init(Service.java:84)
at com.ibm.wps.services.ServiceManager.init(ServiceManager.java:268)
at com.ibm.wps.services.ServiceManager.init(ServiceManager.java:123)
at com.ibm.wps.engine.Servlet.init(Servlet.java:167)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:882)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:257)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:573)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1253)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:275)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:345)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:208)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:968)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:133)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:397)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:751)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:347)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:539)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:250)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:228)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:415)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:415)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:131)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:228)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

2004.11.14 12:08:44.594 com.ibm.wbi.PluginInstaller load IBM WebSphere Transcoding Publisher
TPX1053E An attempt to load the plugin named Image Transcoder could not be completed.
15 years ago
I'm self-studying Websphere Portal and preparing for the Webspehre Portal Developer certificate exam. I want to build all necessary envrionment on my home computer. But the thing I'm not sure is whether the static IP is a must for a self-learning purpose Websphere Portal environment. Because I read a documentation that says I don't have to have a static IP unless I need JAAS feature. Is that correct?

Does anybody have the experience in building Websphere Portal environment ( including runtime and development environment) at home? Any suggestion or warning?

PS: I feel self-study is the only way to change your carrer path to a different technology field.

All the suggestion will be welcome.
15 years ago
I've ordered a book "Mastering IBM WebSphere Portal Server", and there's no description on that online bookstore mentioning it will come with a Trial version product. And on IBM official website, I did't see any trial version downloads about Websphere Portal. ( I remember they did have downloads for Trial version Websphere).

If it's impossible to get a free Websphere Portal( including Trial or Evaluation version), does anybody know how to build a development and test environment with only open source products.

Thanks.
15 years ago
Hi everyone,
I'm going to prepare for a WebSphere Portal Developer exam. In terms of techonlogy itself, I think it's not too difficult. The biggest difficulty for me, I think , is how I can get a Websphere Portal developing and test environment. I have all this intalled on my office computer, but it's almost impossible for me to make some time to study in the office. I need this test environment on my home computer.I tried to negotiate with our system administrator who keeps the CDs, but didn't convince him.

I know there are some free Portlets containers available, but since the exam is IBM Websphere specific, there are a lot of specific details about IBM Websphere Portal.

Anybody have ideas?

Thank you very much!
15 years ago
Hi there, I'm new to Websphere Portal. So I was working on my HelloWorld Portlet in the Websphere Studio Site Developer. I followed the instruction of the documentation step by step, but when I tried to run my first Portal application, I got this message:

************ Start Display Current Environment ************
WebSphere Platform 5.0 [BASE 5.0.0 s0245.03] running with process name localhost\localhost\server1 and process id 1604
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20021107 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\IBM\WebSphereStudio\runtimes\base_v5
user.install.root = C:\IBM\WebSphereStudio\runtimes\base_v5
Java Home = C:\IBM\WebSphereStudio\runtimes\base_v5\java\jre
ws.ext.dirs = C:\IBM\WebSphereStudio\runtimes\base_v5/java/lib;C:\IBM\WebSphereStudio\runtimes\base_v5/classes;C:\IBM\WebSphereStudio\runtimes\base_v5/classes;C:\IBM\WebSphereStudio\runtimes\base_v5/lib;C:\IBM\WebSphereStudio\runtimes\base_v5/lib/ext;C:\IBM\WebSphereStudio\runtimes\base_v5/web/help;C:\IBM\WebSphereStudio\runtimes\base_v5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/IBM/SQLLIB/java/db2java.zip;C:/IBM/WebSphereStudio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.0.2/runtime/ worf.jar
Classpath = C:\IBM\WebSphereStudio\runtimes\base_v5/properties;C:\IBM\WebSphereStudio\runtimes\base_v5/properties;C:\IBM\WebSphereStudio\runtimes\base_v5/lib/bootstrap.jar;C:\IBM\WebSphereStudio\runtimes\base_v5/lib/j2ee.jar;C:\IBM\WebSphereStudio\runtimes\base_v5/lib/lmproxy.jar;C:/IBM/WebSphereStudio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.2/runtime/wteServers.jar;C:/IBM/WebSphereStudio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.2/runtime/wasToolsCommon.jar
Java Library path = C:\IBM\WebSphereStudio\runtimes\base_v5/bin;C:\IBM\WebSphereStudio\runtimes\base_v5/java/bin;C:\IBM\WebSphereStudio\runtimes\base_v5/java/jre/bin;C:\IBM\WebSphereStudio\eclipse\jre\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\jdk1.3.1_12\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\IBM\SQLLIB\BIN;C:\IBM\SQLLIB\FUNCTION;C:\lotus\notes
************* End Display Current Environment *************
[6/22/04 12:00:02:969 EDT] 5fddd383 ManagerAdmin I TRAS0017I: The startup trace state is *=all=disabled.
[6/22/04 12:00:03:609 EDT] 5fddd383 AdminInitiali A ADMN0015I: AdminService initialized
[6/22/04 12:00:04:781 EDT] 5fddd383 WsServer E WSVR0003E: Server server1 failed to start
com.ibm.ws.exception.ConfigurationError
at com.ibm.ws.runtime.component.MultibrokerDomainImpl.initialize(MultibrokerDomainImpl.java:79)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:507)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:420)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:95)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:126)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
---- Begin backtrace for nested exception
java.lang.NoSuchMethodError: com.ibm.ws.runtime.service.ConfigRoot: method getResource(ILjava/lang/String Lorg/eclipse/emf/ecore/resource/Resource; not found
at com.ibm.ws.runtime.component.MultibrokerDomainImpl.initialize(MultibrokerDomainImpl.java:72)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:507)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:420)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:95)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:126)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

[6/22/04 12:00:04:844 EDT] 5fddd383 WsServer E WSVR0009E: Error occurred during startup

I don't have any idea about it. The only thing I'm wondering is if the installation of WebSphere Studio Site Developer requires fixed IP address of local machine. Because I know this is a requirement for Websphere Portal and since there's a rudimentary built-in Portal Server in WSSD to enable testing and debugging of Portal applications.

Anybody can help? Thank you in advance.
16 years ago