Re: TypeBrowser -- jawin newbie

Josh Passenger <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi Patrick,

What operating system are you using?

The configuration for info gen is in the file:

config/infoconfig.xml

<infoconfig>
        <info class="org.jawin.browser.data.LibraryNode" info="true"
stylesheet="stylesheets/info/library.xsl"/>

....

</infoconfig>

Each node type has a particular stylesheet configured for it.

It seems that your system is not interpretting stylesheets/info/library.xsl
correctly as a relative URL.

Perhaps you have extracted without preserving directory structure or
something?

Alternatively, which version of java are you running?

Execute java -version from teh command prompt.

Perhaps you ened to bootstrap the deployed Xalan, Xerces and XML-APIs jars
onto your classpath if they are available from your JVM?

Read the section:

docs/jawintypebrowser.html#requirements

I think the package structire of the browser might have been rearranged
recently, please make sure that out Xalan Xerces xml-apis are on your
classpath, I think the maifest.mf in jawinBrowser.jar points to
../libxalan.jar which is probably incorrect.

If you are still stuck, mail us again.

Guys, perhaps we need to distribute a batch file like we did some time ago
that sets of the classpath etc?

Josh


>
>I recently ran into the need to go from Java to COM in order to complete a
>project. To make a long story short, after searching all over, I found
>JAWIN. I followed the instructions and combed the forums -- put simply,
>why won't the typebrowser generate stubs for me from the .tlb file I point
>it to? Aside from the instructions that come with the JAWIN download, is
>there any other place to find a simple step by step howto where the
>typebrowser is concerned?
>
>As I am new to JAWIN, I realize that there will be (is) some sort of
>learning curve, yet, at the same time, after following the instructions,
>it seems like the TypeBrowser should work. Below is the output thrown to
>my command prompt -- perhaps this will help someone tell me where I am
>going wrong.
>
>I appreciate any input where my problem is concerned. A finger pointing me
>in the right direction will suffice.
>
>Thanks!
>
>
>WHAT I DID:
>
>- Started JAWIN TypeBrowser from typebrowser folder in the command prompt
>
>- Created a new project
>
>- Chose .tlb file
>
>- Set Properties
>
>- Hit OK
>
>- Tried Full CodeGen
>
>
>Command Prompt:
>
>C:\Program Files\Jawin\jawin-1.0.19\typebrowser>java -jar jawinBrowser.jar
>Loaded TypeLibWrapper
>Loaded TypeLibWrapper
>[DEBUG] ********************************************
>[DEBUG] TypeInfo GUID: GUID{51964d33 74a6 3d12 00 00 00 00 00 00 00 00
>}
>[DEBUG] TypeInfo Locale: 0
>[DEBUG] TypeInfo Platform: 1
>[DEBUG] TypeInfo Major version: 1
>[DEBUG] TypeInfo Minor version: 17
>[DEBUG] TypeInfo Flags: 8
>[EXCEPTION] InfoPanel.generateInfo() failed to generated info
>org.jawin.browser.xsl.TransformationException:
>TransformationManager.cacheStyles
>heet() failed to compile stylesheet from: stylesheets/info/library.xsl -
>javax.x
>ml.transform.TransformerConfigurationException:
>javax.xml.transform.TransformerC
>onfigurationException: javax.xml.transform.TransformerException:
>java.net.Malfor
>medURLException: no protocol: stylesheets/info/library.xsl
>
>         at org.jawin.browser.xsl.TransformationManager.cacheStylesheet
>(TransformationManager.java:130)
>         at org.jawin.browser.xsl.TransformationManager.checkStylesheet
>(TransformationManager.java:180)
>         at org.jawin.browser.xsl.TransformationManager.transform
>(TransformationManager.java:147)
>         at
>org.jawin.browser.info.InfoPanel.generateInfo(InfoPanel.java:68)
>         at org.jawin.browser.info.InfoPanel.selectionChanged
>(InfoPanel.java:61)
>         at org.jawin.browser.tree.TypeDataTree.fireSelectionChanged
>(TypeDataTree.java:61)
>         at org.jawin.browser.tree.TypeDataTree$1.valueChanged
>(TypeDataTree.java:71)
>         at javax.swing.JTree.fireValueChanged(Unknown Source)
>         at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown
>Source)
>         at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged
>(Unknown Source)
>         at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange
>(Unknown Source)
>         at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths
>(UnknownSource)
>         at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath
>(Unknown Source)
>         at javax.swing.JTree.setSelectionPath(Unknown Source)
>         at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown
>Source)
>         at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.handleSelection
>(Unknown Source)
>         at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed
>(Unknown Source)
>         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
>         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
>         at java.awt.Component.processMouseEvent(Unknown Source)
>         at java.awt.Component.processEvent(Unknown Source)
>         at java.awt.Container.processEvent(Unknown Source)
>         at java.awt.Component.dispatchEventImpl(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
>Source)
>         at java.awt.LightweightDispatcher.processMouseEvent(Unknown
>Source)
>         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Window.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown Source)
>         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
>Source)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
>Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)
>
>
>
>AFTER CODE GEN ATTEMPT:
>
>
>[EXCEPTION] CodeGenerator.run() failed to complete code generation
>org.jawin.browser.codegen.CodeGenerationException:
>CodeGenerator.generateCode()
>failed to complete code generation -
>org.jawin.browser.xsl.TransformationExcepti
>on: TransformationManager.cacheStylesheet() failed to compile stylesheet
>from: s
>tylesheets/codegen/jawin/coclass.xsl -
>javax.xml.transform.TransformerConfigurat
>ionException: javax.xml.transform.TransformerConfigurationException:
>javax.xml.t
>ransform.TransformerException: java.net.MalformedURLException: no
>protocol: styl
>esheets/codegen/jawin/coclass.xsl
>
>         at org.jawin.browser.codegen.CodeGenerator.generateCode
>(CodeGenerator.java:225)
>         at org.jawin.browser.codegen.CodeGenerator.run
>(CodeGenerator.java:59)
>         at java.lang.Thread.run(Unknown Source)

_________________________________________________________________
Play Love Hunt to win a $9000 holiday and find love!
http://mobilecentral.ninemsn.com.au/mclovehunt/lovehunt.aspx
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.