comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * simpleDateFormat and April month - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/383df9c88dcb10ba * Inserting components into a JTextPane - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8de30a108c9b450 * How best to do this... - 9 messages, 6 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/139fe9ada71808aa * JVM as service - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ca2d0e75df3526fa * what is the difference between j2ee and j2se - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/363ad64739aa166c * Newbie Question JSP posting to MS-SQL DB - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d2f656a74da8a8d6 * Client server to web based server conversion - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/531afba0f141c8d8 * nested locks - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e57863f17acef231 * Servlet serialization - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d55088e393f71298 * Execute command on remote server - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/aea2e27783906e46 * chat client alpha version - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7b0e616eb35b4b1f * Dumb Media player inside applet questions... - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/588fe227b044101b * Need Help with Hibernate - "Not binding factory to JNDI, no JNDI name configured" - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/92fa24a5746bcb69 * Extracting text data from MS Word document - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/adadc7b9250f0fb1 ========================================================================== TOPIC: simpleDateFormat and April month http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/383df9c88dcb10ba ========================================================================== == 1 of 2 == Date: Thurs, Sep 16 2004 11:09 am From: Andrew Thompson <[EMAIL PROTECTED]> On 16 Sep 2004 10:40:21 -0700, Nurettin Arslankaya wrote: > Does anyone know why it resulting wrong. Daylight saving? If not.. <http://www.physci.org/codes/sscce.jsp> -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.lensescapes.com/ Images that escape the mundane == 2 of 2 == Date: Thurs, Sep 16 2004 11:26 am From: "Filip Larsen" <[EMAIL PROTECTED]> Nurettin Arslankaya wrote > possibly, i had a bug to report. Here is sample code to test : > > public Date StrToDate(String DT) throws Exception { > SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd > HH:mm:ss"); > return formatter.parse(DT); > } > > When I test with fallowing data I got wrong result. > > 1980-04-01 00:00:00 returns 1980-04-01 01:00:00 > 1975-04-12 00:00:00 returns 1975-04-12 01:00:00 > > for the dates It works wrong for 1 hour. when you enter 1980-04-01 > 01:00:00 it works correct but if you enter 1980-04-01 00:30:00 it > returns also 1 hour later time. Try fix the timezone on your formatter (for instance to GMT) and see if that helps. Regards, -- Filip Larsen ========================================================================== TOPIC: Inserting components into a JTextPane http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8de30a108c9b450 ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 11:12 am From: Andrew Thompson <[EMAIL PROTECTED]> On 16 Sep 2004 10:34:10 -0700, Jonck van der Kogel wrote: > I am trying to set up a JTextPane .. (snip) > Does anybody have some tips for me how to get this working? 1) Post an example.. <http://www.physci.org/codes/sscce.jsp> 2) To the best group for GUI matters, further described here.. <http://www.physci.org/codes/javafaq.jsp#cljg> HTH -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.lensescapes.com/ Images that escape the mundane ========================================================================== TOPIC: How best to do this... http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/139fe9ada71808aa ========================================================================== == 1 of 9 == Date: Thurs, Sep 16 2004 11:12 am From: "Ike" <[EMAIL PROTECTED]> I have a Vector() class.... I want to make it so that I will only have one instance of a given variable. So, if my Vector class contains, say, Strings only......I want to make sure that I don't have any dupe strings.......what ought I do? Just thought I would ask here to get other's feedback. Thanks, Ike == 2 of 9 == Date: Thurs, Sep 16 2004 11:18 am From: kjc <[EMAIL PROTECTED]> Use a Map Ike wrote: > I have a Vector() class.... > > I want to make it so that I will only have one instance of a given variable. > > So, if my Vector class contains, say, Strings only......I want to make sure > that I don't have any dupe strings.......what ought I do? Just thought I > would ask here to get other's feedback. Thanks, Ike > > == 3 of 9 == Date: Thurs, Sep 16 2004 11:20 am From: "Ike" <[EMAIL PROTECTED]> But I want to maintain the order of the tems in the ArrayList....I dont think a Map does that. -Ike "kjc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Use a Map > > Ike wrote: > > I have a Vector() class.... > > > > I want to make it so that I will only have one instance of a given variable. > > > > So, if my Vector class contains, say, Strings only......I want to make sure > > that I don't have any dupe strings.......what ought I do? Just thought I > > would ask here to get other's feedback. Thanks, Ike > > > > > == 4 of 9 == Date: Thurs, Sep 16 2004 11:21 am From: Paul Lutus <[EMAIL PROTECTED]> Ike wrote: > I have a Vector() class.... > > I want to make it so that I will only have one instance of a given > variable. > > So, if my Vector class contains, say, Strings only......I want to make > sure that I don't have any dupe strings.......what ought I do? An easy way, if you are limiting yourself to Vector, is to look at all the entries in the Vector to see if there is already a match to a string about to be inserted. If the string is present, don't insert another. -- Paul Lutus http://www.arachnoid.com == 5 of 9 == Date: Thurs, Sep 16 2004 11:24 am From: Paul Lutus <[EMAIL PROTECTED]> Ike wrote: > But I want to maintain the order of the tems in the ArrayList....I dont > think a Map does that. -Ike So why not read the documentation to see if it, or a related class, does? Hint: TreeMap. Do not top-post. -- Paul Lutus http://www.arachnoid.com == 6 of 9 == Date: Thurs, Sep 16 2004 11:26 am From: kjc <[EMAIL PROTECTED]> You can easily get the values of the map and sort them before they are used. Ike wrote: > But I want to maintain the order of the tems in the ArrayList....I dont > think a Map does that. -Ike > > "kjc" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Use a Map >> >>Ike wrote: >> >>>I have a Vector() class.... >>> >>>I want to make it so that I will only have one instance of a given > > variable. > >>>So, if my Vector class contains, say, Strings only......I want to make > > sure > >>>that I don't have any dupe strings.......what ought I do? Just thought I >>>would ask here to get other's feedback. Thanks, Ike >>> >>> >> > > == 7 of 9 == Date: Thurs, Sep 16 2004 11:32 am From: "Sam Palanivel" <[EMAIL PROTECTED]> set does not allow duplicates "Ike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a Vector() class.... > > I want to make it so that I will only have one instance of a given variable. > > So, if my Vector class contains, say, Strings only......I want to make sure > that I don't have any dupe strings.......what ought I do? Just thought I > would ask here to get other's feedback. Thanks, Ike > > == 8 of 9 == Date: Thurs, Sep 16 2004 11:52 am From: Sudsy <[EMAIL PROTECTED]> Ike wrote: > But I want to maintain the order of the tems in the ArrayList....I dont > think a Map does that. -Ike Um, didn't you say Vector in your first post? Why not just write your own class which extends Vector and invokes the contains method in the add method? == 9 of 9 == Date: Thurs, Sep 16 2004 1:22 pm From: "Will Hartung" <[EMAIL PROTECTED]> "Paul Lutus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ike wrote: > > > But I want to maintain the order of the tems in the ArrayList....I dont > > think a Map does that. -Ike > > So why not read the documentation to see if it, or a related class, does? > Hint: TreeMap. Actually, you want a TreeSet... Regards, Will Hartung ([EMAIL PROTECTED]) ========================================================================== TOPIC: JVM as service http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ca2d0e75df3526fa ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 11:23 am From: [EMAIL PROTECTED] (Anindo Ghosh) Hi, Is it a good idea to execute a program with an infinite loop and with the main thread in sleep state most of the time so that all the dlls of JVM are pre loaded when ever we execute another program ? Regards, Anindo Ghosh [EMAIL PROTECTED] (Jonathan Neve) wrote in message news:<[EMAIL PROTECTED]>... > Hi all! > > Has anyone ever tried to make the JVM into a OS service, so that > instead of having to load it for each and every Java application, it > could be loaded once by the OS at startup. Then, if you want to launch > a Java application, all you would have to do would be to call the JVM > service, and tell it which class to load, in exactly the same way as > it is now. The only difference would be that the JVM wouldn't have to > be loaded every time, which would considerably reduce both startup > time and memory consumption. > > Has anyone done this? Any ideas? > > Thanks! > Jonathan Neve. ========================================================================== TOPIC: what is the difference between j2ee and j2se http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/363ad64739aa166c ========================================================================== == 1 of 2 == Date: Thurs, Sep 16 2004 11:39 am From: [EMAIL PROTECTED] (Bob) can someone please explain to me the difference between J2ee and j2se? what is meant by enterprise application? regds, bob == 2 of 2 == Date: Thurs, Sep 16 2004 11:49 am From: Andrew Thompson <[EMAIL PROTECTED]> On 16 Sep 2004 11:39:38 -0700, Bob wrote: > can someone please explain to me the difference between J2ee and j2se? <http://www.google.com/search?q=j2se+j2ee+%22difference+between%22> > what is meant by enterprise application? ditto q=Java+22enterprise+application%22 Report back your findings and I am confident people will be happy to correct any misunderstandings. HTH -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.lensescapes.com/ Images that escape the mundane ========================================================================== TOPIC: Newbie Question JSP posting to MS-SQL DB http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d2f656a74da8a8d6 ========================================================================== == 1 of 2 == Date: Thurs, Sep 16 2004 12:00 pm From: [EMAIL PROTECTED] (Mike) That worked, thanks. Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On 15 Sep 2004 12:12:26 -0700, Mike wrote: > > <% > String name = request.getParameter("Name"); > String email = request.getParameter("Email"); > %> > > .. > ps.setString(1, name); == 2 of 2 == Date: Thurs, Sep 16 2004 12:05 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 16 Sep 2004 12:00:01 -0700, Mike wrote: > That worked, thanks. No worries. ========================================================================== TOPIC: Client server to web based server conversion http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/531afba0f141c8d8 ========================================================================== == 1 of 3 == Date: Thurs, Sep 16 2004 12:29 pm From: [EMAIL PROTECTED] (Shreya Menon) Hi all, I have been asked to play a crusial role in converting an existing Java based client server application to a web server based application. How should I proceed ? We have to use websphere/Oracle/J2EE. I know these. How do I approach this problem ? What will be the best way to think about a design approach for this kind of problems ? Please help. All suggestions welcome!!! Thanks == 2 of 3 == Date: Thurs, Sep 16 2004 1:14 pm From: Sudsy <[EMAIL PROTECTED]> Shreya Menon wrote: > Hi all, > I have been asked to play a crusial role in converting an existing > Java based client server application to a web server based > application. > How should I proceed ? Suggest to your employers that they contract with someone familiar with the appropriate technologies? Not meaning to offend, but it sounds like you're out of your depth on this one. == 3 of 3 == Date: Thurs, Sep 16 2004 2:48 pm From: Oscar kind <[EMAIL PROTECTED]> Shreya Menon <[EMAIL PROTECTED]> wrote: > I have been asked to play a crusial role in converting an existing > Java based client server application to a web server based > application. > How should I proceed ? > > We have to use websphere/Oracle/J2EE. I know these. > > How do I approach this problem ? What will be the best way to think > about a design approach for this kind of problems ? There are two distinctions to keep in mind: 1. Business logic versus interface 2. "Normal" GUI versus web application The first thing to do is to ensure that the current application has a clean separation between the business logic and the interface. Then, drive this separation even further: no automatic updates to the interface (the interface must take all initiative). Then, design the web pages for the web application to match the screens you already have. Follow this by several redesigns until you're satisfied with the result. The last step is to connect the business logic with the new interface. Of course, this assumes three additional requirements are met: - You're familiar enough with "normal" gui's to understand if the interface has all initiative or not. - The application can actually function as a web application. - The application has a good design. -- Oscar Kind http://home.hccnet.nl/okind/ Software Developer for contact information, see website PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2 ========================================================================== TOPIC: nested locks http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e57863f17acef231 ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 12:43 pm From: "VisionSet" <[EMAIL PROTECTED]> "Rogan Dawes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > VisionSet wrote: > > > I'm aware that nesting synchronisation blocks is generally a bad idea. > > Is this just due to the ease of deadlock? > > > > Does this advice apply to implicit inner locks eg > > > > Set mySyncedSet = Collections.synchronizedSet(new HashSet()); > > ... > > synchronized(this) { > > > > mySyncedSet.add(anObj); > > > > } > > > > I guess in this case it would be fine because the Set is not going to hold > > any locks for long. > > I suppose the only problem would be if the inner lock does a loop on wait() > > or blocks on I/O. > > But the Javadoc(umentation) is not enforced in this area, it is not always > > apparant if a method is synced or not, let alone the details of the objects > > blocking. > > Any guidelines available in this case? > > My understanding is that the risks of nesting locks is that you could > deadlock, as you suggest. The other possibility is the added overhead > involved in actually synchronizing. If you can synchronize once, rather > than multiple times, that might be a better approach. > > What I mean is, perhaps you don't need to make your set a > synchronizedSet, if accesses to the set are already done in synchronized > blocks . . . > Yes, I appreciate what you are saying, my point is that when calling a library method you may not know or be able to determine if there is any internal synchronization on that method or what it invloves. You may therefore inadvertently nest locks. -- Mike W ========================================================================== TOPIC: Servlet serialization http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d55088e393f71298 ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 12:42 pm From: [EMAIL PROTECTED] (Marcin Siewiera) public void destroy() { synchronized (players) { // player list serialization try { /*****/ String path=getServletContext().getRealPath("Players.dat"); // get real path of file ObjectOutput out = new ObjectOutputStream(new FileOutputStream(path)); try { out.writeObject(players); } catch (IOException e) { getServletContext().log("Error writing to file "+e.getMessage()); } } catch (IOException exc) { getServletContext().log("Error creating file "+exc.getMessage()); } } } above code plus file attributes 777 worked :) Thx for your help Martin ========================================================================== TOPIC: Execute command on remote server http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/aea2e27783906e46 ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 1:55 pm From: Jim Cochrane <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, Sam Palanivel wrote: > I know only two methods to execute commend in remote server: RMI and through > web server: > > Is there any other method to execute command in remote server? > Write a server that executes a requested command and listens for client socket connections/requests. Write a client that connects to the server and requests that a command be executed. [Note: Your request did not mention any security requirements.] -- Jim Cochrane; [EMAIL PROTECTED] [When responding by email, include the term non-spam in the subject line to get through my spam filter.] ========================================================================== TOPIC: chat client alpha version http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7b0e616eb35b4b1f ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 2:08 pm From: "andreas" <[EMAIL PROTECTED]> hello, i wrote a chat client and just finished an alpha-version. i would appreciate it very much, if you could have a look at it, and tell me what you think. i am mainly interested in bug-report and wishes for new features. please, download the client at: www.kinell.ch/ipaddr/millClient.jar comment on it! (be sure to save it as a .jar-file as it sometimes is displayed as .zip-file!) instructions: 1. if connection established: click on "register" and register yourself 2. click on "chat" to start the chat window. you can also report bugs and comments directly to [EMAIL PROTECTED] greetings and thanks, andreas ========================================================================== TOPIC: Dumb Media player inside applet questions... http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/588fe227b044101b ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 2:29 pm From: ted holden <[EMAIL PROTECTED]> Dumb questions: Suppose you have an application which shows text and a corresponding mpeg video file. The user does a search and clicks one of the hits, the text around the hit shows up in one window and the video synchs to the text in another. The user can then click a play button and the text will scroll with the video, with the line being spoken highlighted at all times. The question becomes what if a user wanted a network version of such a thing with the data on a server? My own instincts would be to write such a thing as a Borland C++ app with the search objects residing as corba objects on the server. If however somebody tried to insist on having such a thing as a browser app/applet, the questions become: 1 Would Java be too slow to do something like that reasonably? 2 Assuming the answer to 1 is no, is there any reason to prefer any one of the various plug-ins which handle media to the others? You'd probably have to write something like that in Java and you'd need a plug in which was programmable (in Java) and minimally had start, stop, and seek features. Have anybody ever done anything like that (media plug-in inside applet)? I'd appreciate any info which anybody might could provide me with. Ted Holden [EMAIL PROTECTED] ========================================================================== TOPIC: Need Help with Hibernate - "Not binding factory to JNDI, no JNDI name configured" http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/92fa24a5746bcb69 ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 2:58 pm From: [EMAIL PROTECTED] (Mike S) Hello, I am experimenting wtih Hibernate and after working out all of the dependency issues and constructing my configuration/class files I am getting the below error. I am using WS 5.1. My code and printouts are below. Your help is appreciated. Mike App Server Console ------------------ *** Starting the server *** ************ Start Display Current Environment ************ WebSphere Platform 5.1 [BASE 5.1.0 b0344.02] running with process name localhost\localhost\server1 and process id 512 Host Operating System is Windows XP, version 5.1 Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM was.install.root = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51 user.install.root = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51 Java Home = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51\java\jre ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/lib;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/web/help;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/SQLLIB/java/db2java.zip;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.1/runtime/worf.jar Classpath = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/lib/lmproxy.jar;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/lib/urlprotocols.jar;C:\Program Files\SQLLIB\java12\db2java.zip;C:\Development_Tools\hibernate-2.1\hibernate2.jar;C:\WSAD_5\external.jars\log4j-1.2.8.jar;C:\Development_Tools\commons-logging-1.0.4\commons-logging.jar;C:\Development_Tools\commons-collections-3.1\commons-collections-3.1.jar;C:\Development_Tools\dom4j-1.5.jar;C:\Development_Tools\odmg-3.0.jar;C:\Development_Tools\cglib-full-2.0.2.jar;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wasToolsCommon.jar Java Library path = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/java/bin;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\PC-Doctor for Windows\services;C:\PROGRA~1\MICROS~2\Office;C:\PROGRA~1\IBM\IMNNQ;C:\Program Files\IBM\Trace Facility;C:\Program Files\Personal Communications\;C:\Program Files\SQLLIB\BIN;C:\Program Files\SQLLIB\FUNCTION;C:\Program Files\SQLLIB\SAMPLES\REPL;C:\Program Files\SQLLIB\HELP;C:\Program Files\IBM\IBM CICS Transaction Gateway\BIN;%WSEDPath%;C:\Program Files\ObjREXX;C:\Program Files\ObjREXX\OODIALOG;C:\Program Files\IBM\WebSphere Studio\extras\bin;C:\Program Files\IBM\WebSphere Studio\bin;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51\java\bin;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51\java\jre\bin;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v51\java\jre\bin\classic;C:\Program Files\Hummingbird\Connectivity\7.11\Accessories\;C:\Blazix;C:\mqclient\bin;C:\mqclient\tools\c\samples\bin;C:\CCCHarvest\Bin ************* End Display Current Environment ************* [9/16/04 17:33:18:704 EDT] 3cd386b5 ManagerAdmin I TRAS0017I: The startup trace state is *=all=disabled. [9/16/04 17:33:19:657 EDT] 3cd386b5 AdminInitiali A ADMN0015I: AdminService initialized [9/16/04 17:33:21:017 EDT] 3cd386b5 Configuration A SECJ0215I: Successfully set JAAS login provider configuration class to com.ibm.ws.security.auth.login.Configuration. [9/16/04 17:33:21:079 EDT] 3cd386b5 SecurityDM I SECJ0231I: The Security component's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDM registered successfully: true. [9/16/04 17:33:21:470 EDT] 3cd386b5 SecurityCompo I SECJ0309I: Java 2 Security is disabled. [9/16/04 17:33:21:470 EDT] 3cd386b5 SecurityCompo I SECJ0212I: WCCM JAAS configuration information successfully pushed to login provider class. [9/16/04 17:33:21:485 EDT] 3cd386b5 SecurityCompo I SECJ0240I: Security service initialization completed successfully [9/16/04 17:33:21:485 EDT] 3cd386b5 JMSRegistrati A MSGS0602I: WebSphere Embedded Messaging Client only has been installed [9/16/04 17:33:25:017 EDT] 3cd386b5 ResourceMgrIm I WSVR0049I: Binding MVSDB2_CF as eis/jdbc/mvsdb2_CMP [9/16/04 17:33:25:126 EDT] 3cd386b5 ResourceMgrIm I WSVR0049I: Binding mvsdb2 as jdbc/mvsdb2 [9/16/04 17:33:25:783 EDT] 3cd386b5 CacheServiceI I DYNA0048I: WebSphere Dynamic Cache initialized successfully. [9/16/04 17:33:27:767 EDT] 3cd386b5 JMXSoapAdapte A ADMC0013I: SOAP connector available at port 8880 [9/16/04 17:33:27:783 EDT] 3cd386b5 SecurityCompo I SECJ0243I: Security service started successfully [9/16/04 17:33:27:783 EDT] 3cd386b5 SecurityCompo I SECJ0210I: Security enabled false [9/16/04 17:33:28:861 EDT] 3cd386b5 ApplicationMg A WSVR0200I: Starting application: IBMUTC [9/16/04 17:33:29:017 EDT] 3cd386b5 WebContainer A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2002 [9/16/04 17:33:29:033 EDT] 3cd386b5 WebContainer A SRVE0162I: Servlet Specification Level: 2.3 [9/16/04 17:33:29:048 EDT] 3cd386b5 WebContainer A SRVE0163I: Supported JSP Specification Level: 1.2 [9/16/04 17:33:29:189 EDT] 3cd386b5 WebContainer A SRVE0169I: Loading Web Module: IBM Universal Test Client. [9/16/04 17:33:29:486 EDT] 3cd386b5 WebGroup I SRVE0180I: [IBM Universal Test Client] [/UTC] [Servlet.LOG]: JSP 1.2 Processor: init [9/16/04 17:33:29:658 EDT] 3cd386b5 WebGroup I SRVE0180I: [IBM Universal Test Client] [/UTC] [Servlet.LOG]: SimpleFileServlet: init [9/16/04 17:33:29:752 EDT] 3cd386b5 ApplicationMg A WSVR0221I: Application started: IBMUTC [9/16/04 17:33:29:752 EDT] 3cd386b5 ApplicationMg A WSVR0200I: Starting application: jdoplayEAR [9/16/04 17:33:29:767 EDT] 3cd386b5 WebContainer A SRVE0169I: Loading Web Module: JDO_Play_Project. [9/16/04 17:33:29:814 EDT] 3cd386b5 WebGroup I SRVE0180I: [JDO_Play_Project] [/JDO_Play_Project] [Servlet.LOG]: JSP 1.2 Processor: init [9/16/04 17:33:29:845 EDT] 3cd386b5 WebGroup I SRVE0180I: [JDO_Play_Project] [/JDO_Play_Project] [Servlet.LOG]: SimpleFileServlet: init [9/16/04 17:33:29:845 EDT] 3cd386b5 WebGroup I SRVE0180I: [JDO_Play_Project] [/JDO_Play_Project] [Servlet.LOG]: InvokerServlet: init [9/16/04 17:33:29:877 EDT] 3cd386b5 ApplicationMg A WSVR0221I: Application started: jdoplayEAR [9/16/04 17:33:30:017 EDT] 3cd386b5 HttpTransport A SRVE0171I: Transport http is listening on port 9,080. [9/16/04 17:33:32:080 EDT] 3cd386b5 HttpTransport A SRVE0171I: Transport https is listening on port 9,443. [9/16/04 17:33:32:127 EDT] 3cd386b5 RMIConnectorC A ADMC0026I: RMI Connector available at port 2809 [9/16/04 17:33:32:221 EDT] 3cd386b5 WsServer A WSVR0001I: Server server1 open for e-business [9/16/04 17:33:36:643 EDT] 5645c6b7 WebGroup I SRVE0180I: [JDO_Play_Project] [/JDO_Play_Project] [Servlet.LOG]: /hibernate.jsp: init [9/16/04 17:33:36:736 EDT] 5645c6b7 Environment I net.sf.hibernate.cfg.Environment Hibernate 2.1.6 [9/16/04 17:33:36:736 EDT] 5645c6b7 Environment I net.sf.hibernate.cfg.Environment hibernate.properties not found [9/16/04 17:33:36:736 EDT] 5645c6b7 Environment I net.sf.hibernate.cfg.Environment using CGLIB reflection optimizer [9/16/04 17:33:36:752 EDT] 5645c6b7 Configuration I net.sf.hibernate.cfg.Configuration Mapping resource: sandbox/hibernate/Message.hbm.xml [9/16/04 17:33:37:283 EDT] 5645c6b7 Binder I net.sf.hibernate.cfg.Binder Mapping class: sandbox.hibernate.Message -> db2admin.MESSAGES [9/16/04 17:33:37:377 EDT] 5645c6b7 Configuration I net.sf.hibernate.cfg.Configuration processing one-to-many association mappings [9/16/04 17:33:37:377 EDT] 5645c6b7 Configuration I net.sf.hibernate.cfg.Configuration processing one-to-one association property references [9/16/04 17:33:37:393 EDT] 5645c6b7 Configuration I net.sf.hibernate.cfg.Configuration processing foreign key constraints [9/16/04 17:33:37:408 EDT] 5645c6b7 SettingsFacto W net.sf.hibernate.cfg.SettingsFactory No dialect set - using GenericDialect: The dialect was not set. Set the property hibernate.dialect. [9/16/04 17:33:37:408 EDT] 5645c6b7 Dialect I net.sf.hibernate.dialect.Dialect Using dialect: net.sf.hibernate.dialect.GenericDialect [9/16/04 17:33:37:424 EDT] 5645c6b7 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Use outer join fetching: true [9/16/04 17:33:37:424 EDT] 5645c6b7 UserSuppliedC W net.sf.hibernate.connection.UserSuppliedConnectionProvider No connection properties specified - the user must supply JDBC connections [9/16/04 17:33:37:424 EDT] 5645c6b7 TransactionMa I net.sf.hibernate.transaction.TransactionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) [9/16/04 17:33:37:424 EDT] 5645c6b7 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Use scrollable result sets: false [9/16/04 17:33:37:424 EDT] 5645c6b7 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Use JDBC3 getGeneratedKeys(): false [9/16/04 17:33:37:440 EDT] 5645c6b7 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Optimize cache for minimal puts: false [9/16/04 17:33:37:440 EDT] 5645c6b7 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory Query language substitutions: {} [9/16/04 17:33:37:440 EDT] 5645c6b7 SettingsFacto I net.sf.hibernate.cfg.SettingsFactory cache provider: net.sf.hibernate.cache.EhCacheProvider [9/16/04 17:33:37:440 EDT] 5645c6b7 Configuration I net.sf.hibernate.cfg.Configuration instantiating and configuring caches [9/16/04 17:33:37:580 EDT] 5645c6b7 SessionFactor I net.sf.hibernate.impl.SessionFactoryImpl building session factory [9/16/04 17:33:37:737 EDT] 5645c6b7 ReflectHelper I net.sf.hibernate.util.ReflectHelper reflection optimizer disabled for: sandbox.hibernate.Message, IllegalArgumentException: Cannot find matching method/constructor [9/16/04 17:33:38:080 EDT] 5645c6b7 SessionFactor I net.sf.hibernate.impl.SessionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured My Hibernate Config ------------------- <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.datasource">jdbc/mvsdb2</property> <property name="show_sql">false</property> <property name="dialect">net.sf.hibernate.dialect.DB2Dialect</property> <!-- Mapping files --> <mapping resource="Message.hbm.xml"/> </session-factory> </hibernate-configuration> WS Datasource ------------- Name: mvsdb2 JNDI: jdbc/mvsdb2 My Class -------- package sandbox.hibernate; public class Message { private Long id; private String text; private Message nextMessage; private Message() {} public Message(String text) { this.text = text; } public Long getId() { return id; } private void setId(Long id) { this.id = id; } public String getText() { return text; } public void setText(String text) { this.text = text; } public Message getNextMessage() { return nextMessage; } public void setNextMessage(Message nextMessage) { this.nextMessage = nextMessage; } } My Mapping Config ----------------- <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="sandbox.hibernate.Message" table="db2admin.MESSAGES"> <id name="id" column="MESSAGE_ID"> <generator class="increment" /> </id> <property name="text" column="MESSAGE_TEXT" /> <many-to-one name="nextMessage" cascade="all" column="NEXT_MESSAGE_ID" /> </class> </hibernate-mapping> My Test JSP ----------- <[EMAIL PROTECTED] import="sandbox.hibernate.TestHibernate"%> <% TestHibernate test = new TestHibernate(); test.testHibernate("Hello World"); %> My Hibernate Driver Class ------------------------- package sandbox.hibernate; import net.sf.hibernate.*; import net.sf.hibernate.cfg.Configuration; public class TestHibernate { public String testHibernate(String textMessage) { try { Session session = getSessionFactory().openSession(); Transaction tx = session.beginTransaction(); Message message = new Message(textMessage); session.save(message); tx.commit(); session.close(); } catch (Exception e) { } return ""; } public SessionFactory getSessionFactory() { try { return new Configuration().addClass(sandbox.hibernate.Message.class).setProperties(System.getProperties()).buildSessionFactory(); } catch (MappingException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } } ========================================================================== TOPIC: Extracting text data from MS Word document http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/adadc7b9250f0fb1 ========================================================================== == 1 of 1 == Date: Thurs, Sep 16 2004 4:01 pm From: [EMAIL PROTECTED] (Malcolm Dew-Jones) Max ([EMAIL PROTECTED]) wrote: : Hello, : I need to extract textual information (as ASCII chars' stream for : instance, or a text file) from MS Word document using Java. antiword is not written in java, but it does what you want. Run it with the java equivalent of the well known system command. I.e. in perl system("antiword ms-word-file.doc > temporary-file.txt"); temporary-file.txt then contains what you want. ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BCfwlB/TM --------------------------------------------------------------------~-> <a href=http://English-12948197573.SpamPoison.com>Fight Spam! Click Here!</a> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/kumpulan/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
