rodd manning

Greenhorn
+ Follow
since Mar 06, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by rodd manning

Good Morning,

I downloaded the beta version of jboss fuse (jboss-fuse-6.0.0.redhat-015) and decided to try out the cbr sample.I run maven command "mvn clean install" and then started up the jboss fuse via commad line.At the karaf command line i tried to do the following


osgi:install -s fab:mvn:org.jboss.fuse.examples/cbr/6.0.0.redhat-015


It stays stuck at that for a while and then throws a error


Error executing command: Error installing bundles: Unable to install bundle fab:mvn:org.jboss.fuse.examples/cbr/6.0.0.redhat-015


When i look at the log file i see the following


org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jboss.fuse.examples:cbr:pom:6.0.0.redhat-015


Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.jboss.fuse.examples:project:pom:6.0.0.redhat-015 from repos1 (http://repo.fusesource.com/nexus/content/groups/public): Error transferring file: Connection timed out: connect

at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:119)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:819)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:670)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:308)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:299)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

... 32 more

Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.jboss.fuse.examples:project:pom:6.0.0.redhat-015 from repos1 (http://repo.fusesource.com/nexus/content/groups/public): Error transferring file: Connection timed out: connect

at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:190)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:115)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015]

... 37 more



I have my local repository in a non standard location and have the value in my settings.xml file.The settings.xml file also has the path to my in company nexus repository from which i had expected the application to pull/resolve the above.I also have the following settings changed in my "org.ops4j.pax.url.mvn.cfg" file


org.ops4j.pax.url.mvn.settings=file:D:/Maven/settings.xml


I am not sure why it is still going out to fusesource to resolve stuff.
Hi,
I am trying to deploy a war file on jboss 5.0.1 and is getting the following error



Web.xml entry is as follows:



and the blah-ds.xml file entry is as follows:



Thanks in advance

13 years ago
Hi Gaurav,
You can use XMLbeans to validate your xml document as you are creating it.I have used this in the past and have found it pretty efficient.If you are using DOM to create your xml then throw the appropriate DOM Exception for each element too.

Regards
Rod
Hi,
I had faced a similar issue when i was working with JDOM, and i tried working with the detach() method, but was unsuccessful.The following approach will solve your problem
i also found another solution:

// get content of root element
List content = doc1.getRootElement().cloneContent();

cloneContent() instead of getContent() does it. you don't have to detach then.
Hi,

I have been successful in indexing PDF documents with PDF box but i run into this error while trying to index a few PDF files.The stack trace is as follows:

out of bound exception
..\LuceneIndex\PTAC_Info.pdf
..\LuceneIndex\PTAC_Info.pdf
java.lang.ArrayIndexOutOfBoundsException: 4
at org.fontbox.cmap.CMapParser.parseNextToken(CMapParser.java:294)
at org.fontbox.cmap.CMapParser.parseNextToken(CMapParser.java:233)
at org.fontbox.cmap.CMapParser.parse(CMapParser.java:129)
at org.pdfbox.pdmodel.font.PDFont.parseCmap(PDFont.java:535)
at org.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:387)
at org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:325)
at org.pdfbox.util.operator.ShowText.process(ShowText.java:64)
at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:452)
at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215)
at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
at org.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:336)
at org.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:259)
at org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:216)
at org.pdfbox.searchengine.lucene.LucenePDFDocument.addContent(LucenePDFDocument.java:427)
at org.pdfbox.searchengine.lucene.LucenePDFDocument.convertDocument(LucenePDFDocument.java:2
86)
at org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDocument.java:377)
at com.parksupply.lucene.indexer.ParkSupplyIndexer.indexDocs(ParkSupplyIndexer.java:79)
at com.parksupply.lucene.indexer.ParkSupplyIndexer.indexDocs(ParkSupplyIndexer.java:66)
at com.parksupply.lucene.indexer.ParkSupplyIndexer.indexDocs(ParkSupplyIndexer.java:52)
at com.parksupply.lucene.indexer.ParkSupplyIndexer.main(ParkSupplyIndexer.java:35)

ParkSuppyIndexer is the name of the class that index's the PDF & HTML files.The org.FontBox is a external jar file that came with PDFBOx hence does not have source files.I would be glad to get any suggestions on this topic.

Rod Manning
You are trying to use the generic indexfiles.java as a base template to index pdf files.If you check the lib folder of PDFbox you will see that it has the version of lucene it is compatible with, add this to your classpath as well.As far as indexing pdf is concerned all you need to do is add a conditional statement as follows to the indexHtml.java file
if(file.getPath().endsWith(".pdf"))
{ System.out.println(file.getPath());
Document document1 = LucenePDFDocument.getDocument(file); System.out.println((new StringBuilder()).append("adding ").append(document1.get("path")).toString());
writer.addDocument(document1); } }

Regards
Rod Manning
Hi,
I was trying to search through PDF files and JSP pages using Lucene but was unable to find a suitable plug in to do so.I was wondering if anybody having any information regarding this could direct me in the right direction.
hey,
Thanks for the link,i guess i missed out on that one,i was hoping to be on that list but i guess there is always a next time

Regards
Rodd
hi ,
I had a small question, i was wondering when the results to the promotions held on march 20 would be announced...i have been scanning the results page every day with bated breath for it
Rodd:

I wish I could tell you otherwise, but the fact is that the EJB DI annotations (@EJB and @Resource) do not work on JSP scriptlets (I'm assuming that's what you are really getting at). The problem is that JSP scriptlet code translates to code in the service() methods, well beyond the reach of the container. As such, Spring has the same problem. However, you can always resort to JNDI if you really want EJB access in scriptlets. The good news is that EJB 3 DI works on Servlets, JSP tags handlers and JSF backing beans. If I was to make a recommendation, I would say look into JSF/JBoss Seam, it might make your prsentation code a little more fun to write. Chapter 12 of the book is devoted to integrating EJB with other technologies (JSP tag handlers and JSF backing bean are covered). The chapter is better than most EJB 3 books out there, but I have to admit it is not one of our strongest work.

Hope this helps.

Reza

hi,
Yes i use JNDI for ejb access in scriptlets,looking forward to exploring the contents of your book (chapter 12 in particular). Thank you for taking the time to reply

Regards

Rodd
hi reza,
How friendly is ejb 3.0 towards calls issued from a jsp.I was wondering if your book included topics about ejb 3.0 calls from a jsp,the reason being that i came across a very few books that faintly touched the topic.

Regards

Rodd Manning
hi debu,
I had posted in the welcome section ....due to sheer ignorance, thanks to jeanne i m now in the right stall, i was wondering if i could ask some general questions regarding ejb 3, with emphasis of whether those points are tackled in your book.

Regards
Rodd
[ March 14, 2007: Message edited by: rodd manning ]
hey Debu,
I had a question about ejb 3.0 was wondering if it would be fair to ask it in this thread or is this thread more of a book review?

cheers
Rodd
it works now guys, the problem was adding a additional jar file to the classpath,now it works like a charm.Thank you

Regards
Rod
17 years ago
hi,
I installed a jboss 4.0.5GA on a jvm 1.5.0_11,after i start the server and open the web console the java applet on the side fails to load and the trace shows the following error.

http://localhost:8080/web-console/Invoker
java.lang.NoClassDefFoundError: org/jboss/logging/Logger
at org.jboss.console.remote.Util.<clinit>(Util.java:33)
at org.jboss.console.remote.AppletRemoteMBeanInvoker.invoke(AppletRemoteMBeanInvoker.java:64)
at org.jboss.console.navtree.ConsoleTreeModel.loadTree(ConsoleTreeModel.java:118)
at org.jboss.console.navtree.ConsoleTreeModel.<init>(ConsoleTreeModel.java:73)
at org.jboss.console.navtree.AdminTreeBrowser.<init>(AdminTreeBrowser.java:77)
at org.jboss.console.navtree.AppletBrowser.start(AppletBrowser.java:65)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

i have changed the option in the internet explorer and had enabled the jvm parameter but still no cure.I added jboss-common-client.jar and a whole lot of other jar files to the classpath too
Have been stuck at this for a while now, was wondering if anybody had a solution to this.

Regards
j_coder
[ March 06, 2007: Message edited by: rodd manning ]
17 years ago