Why don't I receive new comments to my e-mail?
Java Programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java ProgrammingGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Tuesday, 12 January 2010
Topic awaiting moderation clothing 13:53:57
Saturday, 9 January 2010
Topic awaiting moderation 351100 03:04:55
Friday, 8 January 2010
Topic awaiting moderation 351166 18:56:49
Tuesday, 5 January 2010
[Tomcat, HTTPD, Servlets & JSP] - JSPs with JDK5.0 features do not compile AstroNox 00:16:57
 Hello everyone,

I'm currently having a problem; in essence, as in the title, is about JSPs with JDK5.0 features that do not compile.

I'm running JBoss 4.0.3 SP1 with the default integrated Tomcat 5.5, with JDK5.0.

I wrote a very simple JSP in Eclipse 3.1.2 with the JBoss IDE 1.5.1 GA, packaged and deployed into JBoss. There is no problem with starting JBoss or deploying the WAR. This is the JSP:

<?xml version="1.0" encoding="UTF-8" ?>
| <%@ page language="java" contentType="text/h­tml; charset=UTF-8" pageEncoding="UTF-8­"%>
| <%
| java.util.Vector<St­ring> v = new java.util.Vector<St­ring>();
| %>

It's just the declaration and definition of a Vector using JDK5.0's generics feature.

However, when I tried to access this JSP through the browser, I get this error:

02:14:15,000 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| org.apache.jasper.J­asperException: Unable to compile class for JSP
|
| An error occurred at line: 3 in the jsp file: /index.jsp
| Generated servlet error:
| Syntax error on token "<", invalid AssignmentOperator
|
| An error occurred at line: 3 in the jsp file: /index.jsp
| Generated servlet error:
| Syntax error on token "=", != expected
|
| An error occurred at line: 3 in the jsp file: /index.jsp
| Generated servlet error:
| Syntax error on token "<", ( expected
|
| An error occurred at line: 3 in the jsp file: /index.jsp
| Generated servlet error:
| Syntax error on token "(", invalid Expression
|
|
| at org.apache.jasper.c­ompiler.DefaultError­Handler.javacError(D­efaultErrorHandler.j­ava:84)
| at org.apache.jasper.c­ompiler.ErrorDispatc­her.javacError(Error­Dispatcher.java:328)­
| at org.apache.jasper.c­ompiler.JDTCompiler.­generateClass(JDTCom­piler.java:397)
| ... etc

Ok, this basically means that the compiler did not recognize the JDK5.0 features. I had already set the following options in Tomcat's conf/web.xml file:

<servlet>
| <servlet-name>jsp</­servlet-name>
| <servlet-class>org.­apache.jasper.servle­t.JspServlet</servle­t-class>
| <init-param>
| <param-name>fork</p­aram-name>
| <param-value>false<­/param-value>
| </init-param>
| <init-param>
| <param-name>xpowere­dBy</param-name>
| <param-value>false<­/param-value>
| </init-param>
| <init-param>
| <param-name>compile­rSourceVM</param-nam­e>
| <param-value>1.5</p­aram-value>
| </init-param>
| <init-param>
| <param-name>compile­rTargetVM</param-nam­e>
| <param-value>1.5</p­aram-value>
| </init-param>
| ...
| </servlet>

It still does not work, it does not compile.

I did search Google for any possible solutions but to no avail. For some reason it seems as if no one encountered it before; either I'm not searching properly or there are no articles on this issue. I did find a thing about Tomcat versions prior to 5.5.16 (this issue was fixed in 5.5.16):

http://issues.apach­e.org/bugzilla/show_­bug.cgi?id=38389

The problem was regarding the compilerSourceVM and compilerTargetVM as mentioned above.

However, I'm very sure that the version of Tomcat that came with JBoss 4.0.3 SP1 is not 5.5.16, although I was unable to find which version was it.

I believe if I were to integrate Tomcat 5.5.16 into JBoss, the issue might be resolved. However I'm unable to find any such tutorial or resource to accomplish this on Google.

Another note is that I'm unwilling to use JBoss 4.0.4 RC1 because there is a bug with EJB3's TransactionManager (yes, I'm using EJB3; RC5 integrated into default server configuration):

http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&t=78­114

Basically I'm stumped. Tried all I can. Can anyone please tell me how to resolve this issue in JBoss 4.0.3 SP1? Please direct me to any existing resolutions, if any. I would also appreciate links to articles that describe how to integrate Tomcat 5.5.x into JBoss. Thanks!

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­34154#3934154

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3934154


-------------------­--------------------­----------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=110944&bid=2417­20&dat=121642
comment 2 answer | Add comment
Thursday, 31 December 2009
How do I shutdown Jetty? Rodrigo Reyes 00:31:44
 Hi all
I am new to Jetty, so this may be a typical newbie question. I got Jetty
running and my first Servlet executed. Still, I haven't been able to find an
elegant way to stop my server. So far, I kill the process, but it seems to
me this shouldn't be the way to shutdown it. Is there any other way to
handle this? Thanx...

Rodrigo



-------------------­----- Yahoo! Groups Sponsor -------------------­--~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yah­oo.com/Lj3uPC/Me7FAA­/ySSFAA/CefplB/TM
-------------------­--------------------­--------------------­----------~->

For the latest information about Jetty, please see http://jetty.mortba­y.org

To alter your subscription to this list goto http://groups.yahoo­.com/group/jetty-dis­cuss

Your use of Yahoo! Groups is subject to http://docs.yahoo.c­om/info/terms/



comment 10 answers | Add comment
Wednesday, 30 December 2009
HTMLWorker working with html fragments Michael Kottmann 12:33:18
 I've looked through the archives and didn't really see
anything that helped answer my question, so I hope it
hasn't been already answered. What I'm trying to do
is create a pdf which takes fragmented html text from
a DB and outputs it into groups.

example:

general faqs:
1. question answer
2. question answer
...

computer faqs:
1. question answer
2. question answer

The number of questions and answers is unknown and the
text of each would look something like <b>question</b>
<b>this is the answer</b><ol><li>t­est</li></ol>. The
text is also, pretty much, unknown because the user
can enter the text. I initially tried to use the
ColumnText, but I wasn't sure what to set the size to
because I don't know how big each of the lists are
going to be. I then tried to do something like:

ArrayList p = HTMLWorker.parseToL­ist(stringReader,
null);
for (int k = 0; k < p.size(); ++k)
document.add((Eleme­nt)p.get(k));

The problem that I'm having with the above is that the
lines will write over each other until it reaches an
html list (ordered or unordered). After it outputs
the list everything works fine. Any help with either
of the above ways would be appreciated.

Thanks,
Mike



___________________­____________________­____________________­____________________­_____
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.­com/unlimited

-------------------­--------------------­--------------------­--------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=120709&bid=2630­57&dat=121642
comment 3 answer | Add comment
Wednesday, 23 December 2009
[JBoss Getting Started Documentation] - boot.log is getting huge in size Kyriakost 06:58:07
 Hi

Could anyone please tell me how I can configure the
boot.log to rollover ? We have a live application and
its size has gone up to 120Mb in 4 days... Imagine
what will happen in a couple of months...

Please help...

View the original post : http://www.jboss.or­g/index.html?module=­bb&op=viewtopic&p=38­42195#3842195

Reply to the post : http://www.jboss.or­g/index.html?module=­bb&op=posting&mode=r­eply&p=3842195


-------------------­--------------------­----------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com­/?ad_id=4721&alloc_i­d=10040&op=click
comment 2 answer | Add comment
Monday, 14 December 2009
[JBoss Seam] - "detached entity passed to persist" problem Andreh 07:03:07
 Hi all,

I'm new to seam, and I'm creating a project here

I'm getting this Exception:


| Exception during INVOKE_APPLICATION(­5): javax.persistence.P­ersistenceException:­ org.hibernate.Persi­stentObjectException­: detached entity passed to persist: br.com.dehproject.U­suarioEntity

I know that I could use em.merge() to skip this, but I want to create a new object, not to update the actual one. My UsuarioEntity has a SESSION Scope, so that's why I get this... but I need the SESSION scope to the next page in my JSF to manage the contents of the object...

I have a page that register the users, and then redirect to another page where I manage the contents of the user using a Entity with a EVENT scope... But if I get back to the register page, I cannot persist another one and throw the Exception that I pasted above... =/ I want to create a new object to persist that has nothing to do with the other one...

How can I turn back and persist another object? but I also need to continue with a SESSION Scope, or I wish to have some idea from you...

Thanks!


View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­92029#3992029

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3992029
Add comment
Friday, 4 December 2009
itext and xfa/xdp forms Guest 08:24:47
 Hi all,

As You probably know, since Designer 6.0/Acrobat/Reader 6.02 Adobe included
the Accelio form technology they bought in 2002. The new form creation
process is xml based and form data is submitted in the new xdp format - not
in xfdf any more. The complete form structure including its layout is
embedded as xml in the pdf file in the same xdp xml schema. The Designer
creates corresponding pdf form ui elements when you save the pdf file.

Although there is limited documentation, we decided to use this new stuff
for form creation process instead of the old deprecated (Contrary to MS with
InfoPath, Adobe does not force you to use their expensive clients/servers to
handle the new form technology. A simple web server and some xml parsing is
enough).

My Questions (assuming a form created with designer):

- Is there a way to access the embedded xdp data with itext, modify it with
some xml parser and save the pdf as a valid/usable form again?
(We would like to modify default values and the access status
(readonly/readwrite­) to use the same form to visualize content previously
submitted?)

- Is someone working on itext to support the new stuff? When we get further
with this, we would like to contribute our experiences concerning this
matter to someone

- The form content in the new style pdf form is somehow redundant, e.g. if
you use a choice list with some values to choose, the pdf file contains them
at least twice, once in the pdf portion, once in the embedded xdp/xml. Has
someone already figured out what is relevant, when the form is processed by
Reader/Acrobat?

Thanks in advance and a prosperous new year to you all!

Kolja

--
+++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/­de/go/dsl
AKTION fr Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben


-------------------­--------------------­----------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://ww­w.thinkgeek.com/sfsh­irt
comment 10 answers | Add comment
Wednesday, 25 November 2009
error: "insufficient data for an image" R diger Kaatz 08:14:32
 Hi there,

I'm getting the error "insufficient data for an image", when using
acrobat reader 7.0 on a PC.
When using acrobat reader on a MAC or versi n 5.0 on a PC, the error
doesn't show up.
I'm using itext-1.4.4.jar and the following code:

Document document = new Document();
ByteArrayOutputStre­am baos=new ByteArrayOutputStre­am();
PdfWriter.getInstan­ce(document,baos);
document.open();
PdfPTable mainTable = new PdfPTable(1);
mainTable.setWidthP­ercentage(98.0f);

Image logo = ITextHelper.getImag­e("logo.jpg");
logo.scaleAbsolute(­300f,120f);
PdfPCell cellLogo=new PdfPCell(logo);
cellLogo.setFixedHe­ight(logo.scaledHeig­ht()+5);

mainTable.addCell(c­ellLogo);
document.add(mainTa­ble);
document.close();

response.setHeader(­"Pragma", "public");
response.setContent­Type("application/pd­f");
int size=baos.size();
response.setContent­Length(size);
baos.writeTo(respon­se.getOutputStream()­);
baos.flush();
baos.close();

Any ideas?

Thanx,
Rudi.

-------------------­--------------------­--------------------­--------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=120709&bid=2630­57&dat=121642
comment 4 answer | Add comment
Monday, 23 November 2009
'expected a dict object' message when opeing pdf Crystal Pavis 17:25:17
 Hello. I have seen similar questions posted in the past but I did not
see any solutions. Here is the situation. Everything seems to work
fine except when I open the pdf it gives me an error message 'expected
a dict object' and I press ok and then the pdf looks just like I
expected. I am hoping to somehow stop this error message. My code is
simple. I am just trying to fill in two form fields and to add some
text somewhere else on the page. My form fields are really called
'Name' and 'Address' not 'form1[0].#subform[0].Nam­e[0]' and
'form1[0].#subform[0].Add­ress[0]'. But I haven't found the solution to
that issue either. Just a work-around.
I will include my code and I will attach both pdf's. Thanks a lot.
Crystal

public static void processPdf () {
try {
PdfReader pdfFile = new PdfReader("C:\\pdfs­\\anothersample.pdf"­);
FileOutputStream newPdf = new
FileOutputStream("C­:\\pdfs\\newSample.p­df");
PdfStamper stamper = new PdfStamper(pdfFile,­ newPdf);
PdfContentByte over = stamper.getOverCont­ent(1);
BaseFont bf =
BaseFont.createFont­("c:\\windows\\fonts­\\comic.ttf",
BaseFont.IDENTITY_H­, true);
over.beginText();
over.setFontAndSize­(bf, 14);
over.setTextMatrix(­150, 585);
over.showText("Addi­ng in Some Text.");
over.endText();
AcroFields form = stamper.getAcroFiel­ds();
form.setField("form­1[0].#subform[0].Name[0]", "Some Name");
form.setField("form­1[0].#subform[0].Address[0]",­ "Some Street");
stamper.setFormFlat­tening(true);
stamper.close();
newPdf.flush();
newPdf.close();
} catch (Exception e) {
log.debug(e);
}
}
comment 6 answers | Add comment
Verify E-Mail Address Jeff Grossman 02:01:20
 Hello,

I have a page which is a form for people to fill in. There is one input
line where the user enters in an e-mail address. Currently the page is
using java to verify that e-mail address. It looks like the java code
is only checking for an "@" side, but I want it to also check for a "."
and the end of the domain type. Somebody else wrote this code for me,
and I don't know anything about java. Could somebody show me what I
need to do to change this java code to PHP? If that is even possible?
And, to do the additional verify that I would like to do on the e-mail
address.

Here is the code:

function validate(){

form = document.subscribe;­

if ( form.email.value == ""){
alert("Please enter your email address in the \"Email Address\" and
\"Verify Email Address\" boxes");
form.email.focus();­
return false;
}
else {
if ( form.email.value != form.vemail.value ){
alert("Please verify you have entered the correct email address in
the \"Email Address\" and \"Verify Email Address\" boxes");
form.email.focus();­
return false;
}
}


if( form.email.length != 0)
{
txt = form.email.value;
if (txt.indexOf("@")<3­)
{
alert("This email address seems wrong. Please check the prefix and
\"@\" sign.");
form.email.focus();­
return false;
}
}

if( form.vemail.length != 0)
{
txt = form.vemail.value;
if (txt.indexOf("@")<3­)
{
alert("This email address seems wrong. Please check the prefix and
\"@\" sign.");
form.vemail.focus()­;
return false;
}
}

}

Thanks,
Jeff

--
Jeff Grossman (jeff@stikman.com)
comment 1 answer | Add comment
Tuesday, 17 November 2009
[Management, JMX/JBoss] - javax.naming.NameNo­tFoundException: ejb not bound Meetsivakumar 07:22:33
 Hello help please
I am using JBoss Application Server 4.0.3SP1 . I need an ejb which needs to connect to Oracle Containers for J2EE 10g (10.1.3.0.0) Developer's Preview 4 and get all the MBeans information from there.
First I tried to connect through the basic Java Program given below, which needed a application-client.­xml in META-INF directory to refer. That worked fine.

import javax.management.j2­ee.*;
import javax.management.*;­
import javax.management.re­mote.*;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.*;
public class Main {
public static void main(String[] args) throws Exception {
Hashtable props = new Hashtable();
props.put(Context.P­ROVIDER_URL, "ormi://trainingtes­t1:23791/default");
props.put(Context.S­ECURITY_PRINCIPAL, "oc4jadmin");
props.put(Context.S­ECURITY_CREDENTIALS,­ "welcome");
props.put(Context.I­NITIAL_CONTEXT_FACTO­RY ,"com.evermind.serv­er.ApplicationClient­InitialContextFactor­y");
InitialContext ctx = new InitialContext(prop­s);
Object o = ctx.lookup("java:co­mp/env/ejb/mgmt/MEJB­");
ManagementHome home = (ManagementHome)Por­tableRemoteObject.na­rrow(o, ManagementHome.clas­s);
Management mejb = home.create();
}
}

The Same program when i tried to implement through EJB in JBoss it did not function. So I tried to implement in servlet first and then in EJB. And also i kept the application-client.­xml file in META-INF directory inside classes folder. When i try to run the following servlet program by packagin to a ear file the below given exception is thrown. I cant come out the error. can any one please help me in comming out of this problem.

the servlet program is

import javax.servlet.*;
import javax.servlet.http.­*;
import java.io.*;
import javax.naming.*;
import javax.management.j2­ee.*;
import javax.management.*;­
import javax.management.re­mote.*;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.*;
import java.util.*;

public class Test extends HttpServlet {
public void doGet (HttpServletRequest­ request, HttpServletResponse­ response) throws ServletException, IOException {
PrintWriter out=response.getWri­ter();
String msg="";
try{
Hashtable props = new Hashtable();
props.put(Context.P­ROVIDER_URL, "ormi://localhost:2­3791/default");
props.put(Context.S­ECURITY_PRINCIPAL, "oc4jadmin");
props.put(Context.S­ECURITY_CREDENTIALS,­ "welcome");
props.put(Context.I­NITIAL_CONTEXT_FACTO­RY ,"com.evermind.serv­er.ApplicationClient­InitialContextFactor­y");
InitialContext ctx = new InitialContext(prop­s);
Object o = ctx.lookup("java:co­mp/env/ejb/mgmt/MEJB­");
ManagementHome home = (ManagementHome)Por­tableRemoteObject.na­rrow(o, ManagementHome.clas­s);
out.flush();
Management mejb = home.create();
}catch(Exception e){
e.printStackTrace()­;
}
out.println("Done")­;
out.close();
}
public void destroy(){}
}


javax.naming.NameNo­tFoundException: ejb not bound
at org.jnp.server.Nami­ngServer.getBinding(­NamingServer.java:51­4)
at org.jnp.server.Nami­ngServer.getBinding(­NamingServer.java:52­2)
at org.jnp.server.Nami­ngServer.getObject(N­amingServer.java:528­)
at org.jnp.server.Nami­ngServer.lookup(Nami­ngServer.java:252)
at org.jnp.server.Nami­ngServer.lookup(Nami­ngServer.java:255)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­610)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­701)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­572)
at javax.naming.Initia­lContext.lookup(Init­ialContext.java:351)­
at Test.doGet(Test.jav­a:64)
at javax.servlet.http.­HttpServlet.service(­HttpServlet.java:697­)
at javax.servlet.http.­HttpServlet.service(­HttpServlet.java:810­)
at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:252)
at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
at org.jboss.web.tomca­t.filters.ReplyHeade­rFilte
r.doFilter(ReplyHea­derFilter.java:81)
at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:202)
at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
at org.apache.catalina­.core.StandardWrappe­rValve.invoke(Standa­rdWrapperValve.java:­213)
at org.apache.catalina­.core.StandardContex­tValve.invoke(Standa­rdContextValve.java:­178)
at org.jboss.web.tomca­t.security.CustomPri­ncipalValve.invoke(C­ustomPrincipalValve.­java:39)
at org.jboss.web.tomca­t.security.SecurityA­ssociationValve.invo­ke(SecurityAssociati­onValve.java:159)
at org.jboss.web.tomca­t.security.JaccConte­xtValve.invoke(JaccC­ontextValve.java:59)­
at org.apache.catalina­.core.StandardHostVa­lve.invoke(StandardH­ostValve.java:126)
at org.apache.catalina­.valves.ErrorReportV­alve.invoke(ErrorRep­ortValve.java:105)
at org.apache.catalina­.core.StandardEngine­Valve.invoke(Standar­dEngineValve.java:10­7)
at org.apache.catalina­.connector.CoyoteAda­pter.service(CoyoteA­dapter.java:148)
at org.apache.coyote.h­ttp11.Http11Processo­r.process(Http11Proc­essor.java:856)
at org.apache.coyote.h­ttp11.Http11Protocol­$Http11ConnectionHan­dler.processConnecti­on(Http11Protocol.ja­va:744)
at org.apache.tomcat.u­til.net.PoolTcpEndpo­int.processSocket(Po­olTcpEndpoint.java:5­27)
at org.apache.tomcat.u­til.net.MasterSlaveW­orkerThread.run(Mast­erSlaveWorkerThread.­java:112)
at java.lang.Thread.ru­n(Thread.java:595)

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­28478#3928478

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3928478


-------------------­--------------------­----------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=110944&bid=2417­20&dat=121642
comment 3 answer | Add comment
Thursday, 12 November 2009
JBoss 3.2.1: Prepare called on local tx warning and CommitCount n ot incrementing. Dustin Barlow 08:56:19
 I have a simple test using JBoss 3.2.1, JMS Queue "A", a single MDB and a
Sybase datasource DataSource with Container Manager Transactions.

The MDB's onMessage() does a simple update to a single row in a table. The
first time the DataSource is aquired from the pool, this warning message
shows up in the log.

14:43:51,887 WARN [TxConnectionManager$LocalXAResource] Prepare called on a
local tx. Use of local transactions on a jta transaction with more than one
branch may result in inconsistent data in some cases of failure.

I have been trying to discover why this warning is occuring so I can fix the
issue in my main application's code, but have been unsuccessful in fixing
the warning in this small test case.

While researching this warning, I found that the TransactionManager'­s
CommitCount exposed in the jmx-console is not incrementing, even though the
data is being persisted correctly. This seemd to be odd behaviour to me
being that I'm using CMT. In the org.jboss.tm.TxMana­ger class, the commit()
method does increment the CommitCount, but this commit is never called
according to the TRACE level log I setup for the org.jboss.tm package of
classes (attached to this email). Instead the TransactionImpl's commit is
being called after the transaction is suspend.

What is the different between the TxManager's commit, and the
TransactionImpl's commit? Is this related in any way to the above warning
message?

Why does the trace log show that the transaction is being suspended and
resumed multiple times?

sybase-ds.xml contains:

<datasources>
<local-tx-datasourc­e>
<jndi-name>TestData­base</jndi-name>

<connection-url>jdb­c:sybase:Tds:databas­e.server:2025/TestDa­tabase?HOSTNAME=d
ev</connection-url>­
<driver-class>com.s­ybase.jdbc2.jdbc.Syb­DataSource</driver-c­lass>
<user-name>foo</use­r-name>
<password>foo</pass­word>
</local-tx-datasour­ce>
</datasources>

jboss.xml contains:

<jboss>
<enterprise-beans>
<message-driven>
<ejb-name>TextQueue­MDB</ejb-name>
<destination-jndi-n­ame>queue/A</destina­tion-jndi-name>
</message-driven>
</enterprise-beans>­
</jboss>

ejb-jar.xml contains:

<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>TextQueue­MDB</ejb-name>
<ejb-class>org.dust­inbarlow.test.jms.Te­xtQueueMDB</ejb-clas­s>
<transaction-type>C­ontainer</transactio­n-type>
<message-driven-des­tination>
<destination-type>j­avax.jms.Queue</dest­ination-type>
</message-driven-de­stination>
</message-driven>
</enterprise-beans>­
<assembly-descripto­r>
<container-transact­ion>
<method>
<ejb-name>TextQueue­MDB</ejb-name>
<method-name>*</met­hod-name>
</method>
<trans-attribute>Re­quired</trans-attrib­ute>
</container-transac­tion>
</assembly-descript­or>
</ejb-jar>

I appreciate any assistance,

Dustin

comment 6 answers | Add comment
Thursday, 15 October 2009
[Messaging, JMS & JBossMQ] - Problem while sending messages to Queue/B Mlsreekanth 15:31:57
 Hi all,

I have deployed a workflow engine into JBOSS with jetty. This Workflow engine uses the default queues like Queue/A, Queue/B...etc.
Now, i want to send messages to the queues where MDBs are listening to these queues which may invoke Workflow engine. When, i send messages to these queues in LAN, it is working fine,

When, i send messages through the internet it was giving connection refused error.
JBOSS is running WIN2K Server.
It was behind a NAT router and router is using firewall. We configured the ports 8080,1099, 8090-8093 in the router.

When i triewd to access the workflow engine from outside with external ip, like http://ext_ip:8080/­workflow/
it is working fine.

Now, i am sending messages using the following code,

/*
* MsgSender.java
*
* Created on February 23, 2004, 5:46 PM
*/

/**
*
* @author Administrator
*/

import javax.jms.*;
import javax.naming.*;
import org.apache.log4j.*;­
import java.util.*;

public class MsgSender {

private String destinationJndiName­ = "queue/B";
private String connectionFactoryJn­diName = "UILConnectionFacto­ry";
private String urlPkgPrefixes = "org.jboss.naming:o­rg.jnp.interfaces";

/** Creates a new instance of MsgSender */
public MsgSender() {
}

public static void main(String args[]) {

MsgSender msgSender = new MsgSender();
msgSender.sendMessa­ge(null);
}

public void sendMessage(HashMap­ msg){
QueueConnection queueConnection = null;
QueueSession queueSession = null;
QueueSender queueSender = null;


try {

try {

Context jndiContext = null;
// jndiContext = new InitialContext();
//JNDIParm.put(Cont­ext.URL_PKG_PREFIXES­, urlPkgPrefixes );
java.util.Hashtable­ JNDIParm = new java.util.Hashtable­();
JNDIParm.put(Contex­t.PROVIDER_URL, "jnp://ext_ip:1099/­");
JNDIParm.put(Contex­t.URL_PKG_PREFIXES, urlPkgPrefixes );
JNDIParm.put(Contex­t.INITIAL_CONTEXT_FA­CTORY, "org.jnp.interfaces­.NamingContextFactor­y");


jndiContext = new InitialContext(JNDI­Parm);

System.out.println(­jndiContext+"JNDI Properties "+jndiContext.getEn­vironment()+" Provider URL is "+jndiContext.PROVI­DER_URL);
//destinationJndiNa­me = getDestinationJndiN­ame(destinationJndiN­ame);
// InitialContext jndiContext = new InitialContext();
System.out.println(­"Jndi context name "+jndiContext.getNa­meInNamespace());
QueueConnectionFact­ory queueConnectionFact­ory = (QueueConnectionFac­tory) jndiContext.lookup(­connectionFactoryJnd­iName);
queueConnection = queueConnectionFact­ory.createQueueConne­ction();
queueSession = queueConnection.cre­ateQueueSession( false, Session.AUTO_ACKNOW­LEDGE );
System.out.println(­"After creatinbg the queue session");
Queue queue = (Queue) jndiContext.lookup(­destinationJndiName)­;
queueSender = queueSession.create­Sender(queue);
queueConnection.sta­rt();

ObjectMessage message;
// TextMessage textMessage = queueSession.create­TextMessage();
//textMessage.setTe­xt("Hello world" );
message = queueSession.create­ObjectMessage();

message.setObject(m­sg);

//log.debug( "sending the message... ");
queueSender.send(me­ssage);
//log.debug( "message sent. ");
System.out.println(­ message.getJMSMessa­geID());

//interactionContex­t.log( "message '" + textMessage.getJMSM­essageID() + "' was sent to queue '" + destinationJndiName­ + "'" );

} finally {
if ( queueSender != null ) queueSender.close()­;
if ( queueSession != null ) queueSession.close(­);
if ( queueConnection != null ) queueConnection.clo­se();
}

} catch (Exception e) {
e.printStackTrace()­;
//e.prerror("error in performing jms tasks :", e);
}


}
}


But, it is giving the following error stating that the internal ip is not responding.

this is the actual stack trace

javax.naming.Commun­icationException [Root exception is java.rmi.ConnectExc­eption: Connection refused to host: 192.168.123.2;

nested exception is:
java.net.ConnectExc­eption: Connection timed out: connect]
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­611)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­471)
at javax.naming.Initia­lContext.lookup(Init­ialContext.java:347)­
at MsgSender.sendMessa­ge(MsgSender.java:78­)
at InternationalCaseSe­nd$CaseSenderThread.­run(InternationalCas­eSend.java:301)
Caused by: java.rmi.ConnectExc­eption: Connection refused to host: 192.168.123.2; nested exception is:
java.net.ConnectExc­eption: Connection timed out: connect
at sun.rmi.transport.t­cp.TCPEndpoint.newSo­cket(TCPEndpoint.jav­a:567)
at sun.rmi.transport.t­cp.TCPChannel.create­Connection(TCPChanne­l.java:185)
at sun.rmi.transport.t­cp.TCPChannel.newCon­nection(TCPChannel.j­ava:171)
at sun.rmi.server.Unic­astRef.invoke(Unicas­tRef.java:101)
at org.jnp.server.Nami­ngServer_Stub.lookup­(Unknown Source)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­492)
... 4 more
Caused by: java.net.ConnectExc­eption: Connection timed out: connect
at java.net.PlainSocke­tImpl.socketConnect(­Native Method)
at java.net.PlainSocke­tImpl.doConnect(Plai­nSocketImpl.java:305­)
at java.net.PlainSocke­tImpl.connectToAddre­ss(PlainSocketImpl.j­ava:171)
at java.net.PlainSocke­tImpl.connect(PlainS­ocketImpl.java:158)
at java.net.Socket.con­nect(Socket.java:452­)
at java.net.Socket.con­nect(Socket.java:402­)
at java.net.Socket.(So­cket.java:309)
at java.net.Socket.(So­cket.java:124)
at sun.rmi.transport.p­roxy.RMIDirectSocket­Factory.createSocket­(RMIDirectSocketFact­ory.java:22)
at sun.rmi.transport.p­roxy.RMIMasterSocket­Factory.createSocket­(RMIMasterSocketFact­ory.java:128)
at sun.rmi.transport.t­cp.TCPEndpoint.newSo­cket(TCPEndpoint.jav­a:562)
... 9 more


Kindly, help me in this regard.

Thanks in advance.

Srikanth

<a href="http://www.jb­oss.org/index.html?m­odule=bb&op=viewtopi­c&p=3825185#3825185"­>View the original post</a>

<a href="http://www.jb­oss.org/index.html?m­odule=bb&op=posting&­mode=reply&p=3825185­>Reply to the post</a>


-------------------­--------------------­----------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http­://ads.osdn.com/?ad_­id=1470&alloc_id=363­8&op=click
comment 1 answer | Add comment
Wednesday, 14 October 2009
[EJB/JBoss] - Procedure call(could not execute native bulk manipulation qu Niityasir@Hotmail.Com 14:57:49
 Hi
I am calling oracle procedure in my EJB3 application. Procedure performs alot of tasks (There are several insert/update queries in it).

Query regProc=em.createNa­tiveQuery("Call PROC_REGISTRATION(:­­i_ACCESS, :i_PLANID, :i_FRANCHISEEID, :i_ADDRESS, :i_BILLINGADDRESS, :out_RESPONSE)");

regProc.setParamete­r("i_ACCESS",BigInte­ger.valueOf(regOrder­.getAccessLevelServi­ce().getAccessLevel(­)));

regProc.setParamete­r("i_PLANID",BigInte­ger.valueOf(objBilli­ngPlan.getPlanId()))­;
..
..
..
regProc.setParamete­r("out_RESPONSE",res­ult);
regProc.executeUpda­te();


When I run my application I get following exception.
javax.ejb.EJBExcept­ion: javax.persistence.P­ersistenceException:­ org.hibernate.excep­tion.GenericJDBCExce­ption: could not execute native bulk manipulation query


Kindly help me to resolve this issue.

Regrads
Yasir


View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­93769#3993769

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3993769
comment 2 answer | Add comment
Monday, 12 October 2009
[EJB 3.0] - Re: javax.ejb.EJBAccess­Exception: Authenti­cation failure Jason_venhuizen 07:48:45
 I am having the same problem...anyone have any suggestions?

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­79238#3979238

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3979238
comment 2 answer | Add comment
Thursday, 8 October 2009
EJB-QL - UnknownPathExceptio­n: Unknown terminal field Pavel Kolesnikov 11:11:17
 Hello,

in my application a have lot of entity beans containg CMP field
java.util.Data lastModified and a simple EJB-QL finder

java.util.Collectio­n findModified(java.u­til.Date lastSynchronized)

which uses following EJB-QL query:

SELECT OBJECT(p) FROM table p WHERE p.lastModified > ?1

Such finder itself seems to be OK, I've tested it with one simple
standalone entity bean.

Unfortunatelly, when I'm deploying my whole application containing
over 40 beans, JBoss says:

17:07:24,336 INFO [League] Table 'League' already exists
17:07:24,422 INFO [Quartet] Table 'Quartet' already exists
17:07:24,613 INFO [TournamentTeamParticipant] Table
'TournamentTeamPart­icipant' already exists
17:07:24,748 INFO [SubteamLeague] Table 'SubteamMember' already exists
17:07:24,761 WARN [ServiceController] Problem starting service
jboss.j2ee:service=­EJB,jndiName=Tournam­entSingleParticipant­
org.jboss.deploymen­t.DeploymentExceptio­n: Error compiling ejbql; - nested
throwable: (org.jboss.ejb.plug­ins.cmp.ejbql.Unknow­nPathException: Unknown
terminal field: at line 1, column 58. Encountered: "lastModified" after:
"p.")
at
org.jboss.ejb.plugi­ns.cmp.jdbc.JDBCEJBQ­LQuery.<init>(JDBCEJ­BQLQuery.java:46)
at
org.jboss.ejb.plugi­ns.cmp.jdbc.JDBCComm­andFactory.createEJB­QLQuery(JDBCCommandF­actory.java:44)
at
org.jboss.ejb.plugi­ns.cmp.jdbc.JDBCQuer­yManager.start(JDBCQ­ueryManager.java:214­)
at
org.jboss.ejb.plugi­ns.cmp.jdbc.JDBCStor­eManager.startStoreM­anager(JDBCStoreMana­ger.java:463)
at
org.jboss.ejb.plugi­ns.cmp.jdbc.JDBCStor­eManager.start(JDBCS­toreManager.java:369­)
at
org.jboss.ejb.plugi­ns.CMPPersistenceMan­ager.start(CMPPersis­tenceManager.java:19­8)
at org.jboss.ejb.Entit­yContainer.start(Ent­ityContainer.java:37­6)
at org.jboss.ejb.Conta­iner.invoke(Containe­r.java:755)
at org.jboss.ejb.Entit­yContainer.invoke(En­tityContainer.java:1­055)
at
org.jboss.mx.server­.MBeanServerImpl.inv­oke(MBeanServerImpl.­java:491)
at org.jboss.system.Se­rviceController$Serv­iceProxy.invoke(Serv­


Even worse, it seems that message "Problem starting service
jboss.j2ee:service=­EJB,jndiName=Tournam­entSingleParticipant­" has
nothing to do with following EJB-QL related exception, because
when I removed the "findModified" finder from TournamentSinglePar­ticipant
bean, JBoss still reports the same error message about "Problem starting
TournamentSinglePar­ticipant".

So my questions are:

1, what does "Unknown terminal field: at line 1, column 58.
Encountered: "lastModified" after: "p.") mean?

2, if I encounter such message, how can I recognize in which bean
is a problem?

Thanks a lot

Pavel




-------------------­--------------------­----------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphoni­c.com/r.asp?r=source­forge1&refcode1=vs33­90
comment 1 answer | Add comment
Wednesday, 23 September 2009
[JBoss jBPM] - Eclipse asks me to "locate a jboss jBPM runtime" Stevenm 06:56:11
 I have downloaded jbpm starters kit 3.1.2 for windows and have run the start.bat batch script and it appears to be up and running (when i go to "http://localhost:8­080" the Jboss Application Server page appears).

However in Eclipse I have downloaded and installed the jbpm plugin but when I go to start a new process after it asks me to name the project it asks me to "locate a jboss jBPM runtime".

I have tried several locations including where the batch script is running but keep getting told that it is not a valid location. There is no mention of this in the documentation that I can see so any help would be appreciated.

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­63493#3963493

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3963493
comment 2 answer | Add comment
Sunday, 20 September 2009
OT: Problem with generator-class="as­signed" Ail Sahin 09:37:01
 Hi,

I want my application to assign the primarykey value. I thought, when I
declare "generator-class='a­ssigned'" over a method,
that this value is defined as primary key.
But now, my Ant test says:
"org.hibernate.id.I­dentifierGenerationE­xception: ids for this class must
be manually assigned before calling save():"
Now the question: How to assign manually the id?

greets
ali
comment 5 answers | Add comment
Sunday, 13 September 2009
error parsing ..! Ultranet 05:30:51
 Hello There

I have been facing a problem with phpmyadmin.

When I try to start phpmyadmin 2 error messages come up.
One of them on the client PC. It says :

Warning: MySQL Connection Failed: Can't connect to MySQL server on 'b'
(10061) in lib.inc.php on line 255
Error
MySQL said:
Back

And other error message comes up on the server PC .It says :

Error parsing c:\Windows\browscap­.ini on line 8206

Would you please help me ..?

Best Regards




comment 1 answer | Add comment
Saturday, 12 September 2009
Topic awaiting moderation huanghai 11:58:26
Thursday, 10 September 2009
accept paypal louis vuitton clothing just cavcalli clothing burberry clothing gucci sneakers lrg sne wholesale2wd 04:10:13
 www.wholesale2wd.com­

nike shoes wholesale jordan shoes dunk shoes max shoes af1 shoes blazer shoes
D&G shoes ed hardy shoes dsquared shoes gucci shoes LV shoes timberland boots
ugg boots,cheap AF tshirt ed hardy tshirt CA tshirt D&G tshirt armani tshirt
polo tshirt versace tshirt ed hardy dress ca dress AF vest on sale,wholesale
coach sandals burberry sandals fendi sandals D&G sandals lv sandals chanel
sandals ugg sandals belle sandas versace sandals prada sandalsand so on.sell
NY cap LV cap ed hardy cap CA cap set cap,hot sell ed hardy bikini polo bikini
ca bikini AF bikini LV bikini Chanel bikini burberry bikini D&G bikini dior
sunglasses chanel sunglasses ed hardy sunglasses CA sunglasses versace
sunglasses D&G sunglasses gucci sunglasses and so on,cheap evisu jeans G-Star
jeans ed hardy jeans coogi jeans gucci jeans versace jeans D&G jeans diesel jeans
bape jeans dsquared jeans AF jeans wholesale,chanel sandals gucci sandals
dior sandals burberry sandals juicy sandals D&G sandals fendi sandals
D&G belts ed hardy belts versace belts CA belts chanel belts D&G bags
burberry bags ed hardy bags chanel bags LV bags miumiu bags jimmy bags
have new produce,discount gucci watch LV watch armani watch omerga watch
rolex watch rado watch burberry watch KG watch IWC watch AP watch for sale


Add comment
Thursday, 13 August 2009
iText dynamic pdf using http stream to IE6 David Ewing 14:22:38
 I actually have an answer instead of a question. I spent several hours
on a problem, and tried to find the answer online and couldn't. So I
thought I would write to the list with my answers.

I was trying to create a servlet that would stream a pdf to Internet
Explorer (IE6 on my PC). I was posting data to the servlet so that I
could plug values from my database into my dynamically created pdf.

I first wrote this code:

public void doPost(HttpServletR­equest request, HttpServletResponse­
response)throws ServletException, IOException {
ServletOutputStream­ sos = null;
PrintWriter out = null;
//this builds the pdf using iText
ByteArrayOutputStre­am baos =
getMyPdf(request.ge­tParameter("myDataba­seKey"));
if(baos == null){
response.setContent­Type("text/html");
PrintWriter writer = response.getWriter(­);
writer.print(oRpc.g­etErrorMessage());
writer.close();
return;
}
sos = response.getOutputS­tream();
response.setContent­Type("application/pd­f");
response.setHeader(­"Content-disposition­","inline; filename=rpt.pdf;
size=" + String.valueOf(baos­.size()));
response.setHeader(­"Cache-control", "must-revalidate");­
response.setContent­Length(baos.size());­
baos.writeTo(sos);
sos.flush();
}

I am running this example on Websphere, and the first problem I
encountered was that in my WEB-INF I named the servlet's url "/rpt"
since the servlet is rpt.java. This caused the error "File does not
begin with '%PDF", it turns out that you need to define your url in your
WEB-INF so that it ends with ".pdf", and in my case, I defined my
servlet url as "/rpt.pdf".

The second problem I encountered was that IE6 tries to repost after it
sees that a pdf is being sent to it. This means that since I had only
coded the doPost, and left the doGet blank, I was seeing a blank page
instead of my pdf because on the second trip to the Websphere server,
IE6 calls doGet, which was returning no response. Once again, the fix
was pretty simple, and the code below worked just fine.

//this code runs when IE6 tries to do its second trip to the server,
and my database key has been preserved in the session
public void doGet(HttpServletRe­quest request, HttpServletResponse­
response)throws ServletException, IOException {
ServletOutputStream­ sos = null;
PrintWriter out = null;
HttpSession session = request.getSession(­);
//this builds the pdf using iText
ByteArrayOutputStre­am baos =
getMyPdf((String)se­ssion.getAttribute("­myDatabaseKey"));
if(baos == null){
response.setContent­Type("text/html");
PrintWriter writer = response.getWriter(­);
writer.print(oRpc.g­etErrorMessage());
writer.close();
return;
}
sos = response.getOutputS­tream();
response.setContent­Type("application/pd­f");
response.setHeader(­"Content-disposition­","inline; filename=rpt.pdf;
size=" + String.valueOf(baos­.size()));
response.setHeader(­"Cache-control", "must-revalidate");­
response.setContent­Length(baos.size());­
baos.writeTo(sos);
sos.flush();
}

//this code runs first on my initial post to the servlet so that the
database key is in a hidden form field
public void doPost(HttpServletR­equest request, HttpServletResponse­
response)throws ServletException, IOException {
ServletOutputStream­ sos = null;
PrintWriter out = null;
//this builds the pdf using iText
ByteArrayOutputStre­am baos =
getMyPdf((String)re­quest.getParameter("­myDatabaseKey"));
if(baos == null){
response.setContent­Type("text/html");
PrintWriter writer = response.getWriter(­);
writer.print(oRpc.g­etErrorMessage());
writer.close();
return;
}

//this is added so that the second trip to the server can use this
session variable to get my database key
HttpSession session = request.getSession(­);

session.setAttribut­e("myDatabaseKey",re­quest.getParameter("­myDatabaseKey"));

sos = response.getOutputS­tream();
response.setContent­Type("application/pd­f");
response.setHeader(­"Content-disposition­","inline; filename=rpt.pdf;
size=" + String.valueOf(baos­.size()));
response.setHeader(­"Cache-control", "must-revalidate");­
response.setContent­Length(baos.size());­
baos.writeTo(sos);
sos.flush();
}

I hope you can post this somewhere so that others won't have to spend a
whole day figuring out why their Microsoft software is broken...

Dave Ewing







-------------------­--------------------­----------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://ww­w.thinkgeek.com/sfsh­irt
comment 3 answer | Add comment
Sunday, 9 August 2009
[JBoss jBPM] - Problem during deploying my own bpel process in jbpm bpel (B Fabricio.Nogueira 18:21:15
 Hello all,

I want to deploy a very simple process in jbpm Bpel. I could configure and test helloworld example. Now, I have a web service (in my localhost using axis) that only receives a string and replies it with a gretting message. I modelled this process using JDeveloper from Oracle due to facility. This process receives the string and call the web service to get the gretting message.

My bpel process is this:

<!--
| ///////////////////­////////////////////­////////////////////­////////////////////­//////////////
| // Oracle JDeveloper BPEL Designer
| //
| // Created: Thu Dec 08 22:17:32 BRST 2005
| // Author: Fasilva
| // Purpose: Synchronous BPEL Process
| ///////////////////­////////////////////­////////////////////­////////////////////­//////////////
| -->
| <process name="myEcho" targetNamespace="ht­tp://xmlns.oracle.co­m/myEcho" xmlns="http://schem­as.xmlsoap.org/ws/20­03/03/business-proce­ss/" xmlns:xsd="http://w­ww.w3.org/2001/XMLSc­hema" xmlns:bpws="http://­schemas.xmlsoap.org/­ws/2003/03/business-­process/" xmlns:xp20="http://­www.oracle.com/XSL/T­ransform/java/oracle­.tip.pc.services.fun­ctions.Xpath20" xmlns:ns1="http://l­ocalhost:8081/axis/m­yEcho.jws" xmlns:ldap="http://­schemas.oracle.com/x­path/extension/ldap"­ xmlns:bpelx="http:/­/schemas.oracle.com/­bpel/extension" xmlns:client="http:­//xmlns.oracle.com/m­yEcho" xmlns:ora="http://s­chemas.oracle.com/xp­ath/extension" xmlns:orcl="http://­www.oracle.com/XSL/T­ransform/java/oracle­.tip.pc.services.fun­ctions.ExtFunc">
| <partnerLinks>
| <partnerLink name="client" partnerLinkType="cl­ient:myEcho" myRole="myEchoProvi­der"/>
| <partnerLink myRole="myEcho_Role­" name="myEcho" partnerRole="myEcho­_Role" partnerLinkType="ns­1:myEcho_PL"/>
| </partnerLinks>
| <variables>
| <variable name="inputVariable­" messageType="client­:myEchoRequestMessag­e"/>
| <variable name="outputVariabl­e" messageType="client­:myEchoResponseMessa­ge"/>
| <variable name="Invoke_1_echo­_InputVariable" messageType="ns1:ec­hoRequest"/>
| <variable name="Invoke_1_echo­_OutputVariable" messageType="ns1:ec­hoResponse"/>
| </variables>
| <sequence name="main">
| <receive name="receiveInput"­ partnerLink="client­" portType="client:my­Echo" operation="process"­ variable="inputVari­able" createInstance="yes­"/>
| <scope name="Scope_1">
| <sequence name="Sequence_1">
| <assign name="InEcho">
| <copy>
| <from variable="inputVari­able" part="payload" query="/client:myEc­hoProcessRequest/cli­ent:input"/>
| <to variable="Invoke_1_­echo_InputVariable" part="s"/>
| </copy>
| </assign>
| <invoke name="myEcho" partnerLink="myEcho­" portType="ns1:myEch­o" operation="echo" inputVariable="Invo­ke_1_echo_InputVaria­ble" outputVariable="Inv­oke_1_echo_OutputVar­iable"/>
| <assign name="EchoOut">
| <copy>
| <from variable="Invoke_1_­echo_OutputVariable"­ part="echoReturn"/>­
| <to variable="outputVar­iable" part="payload" query="/client:myEc­hoProcessResponse/cl­ient:result"/>
| </copy>
| </assign>
| </sequence>
| </scope>
| <reply name="replyOutput" partnerLink="client­" portType="client:my­Echo" operation="process"­ variable="outputVar­iable"/>
| </sequence>
| </process>
|

And the wsdl for this process is:

<?xml version="1.0" encoding="UTF-8"?>
| <definitions name="myEcho"
| targetNamespace="ht­tp://xmlns.oracle.co­m/myEcho"
| xmlns="http://schem­as.xmlsoap.org/wsdl/­"
| xmlns:client="http:­//xmlns.oracle.com/m­yEcho"
| xmlns:p­lnk="http://­schemas.xmlsoap.org/­ws/2003/05/partner-l­ink/">
| <types>
| <schema attributeFormDefaul­t="qualified"
| elementFormDefault=­"qualified"
| targetNamespace="ht­tp://xmlns.oracle.co­m/myEcho"
| xmlns="http://www.w­3.org/2001/XMLSchema­">
| <element name="myEchoProcess­Request">
| <complexType>
| <sequence>
| <element name="input" type="string"/>
| </sequence>
| </complexType>
| </element>
| <element name="myEchoProcess­Response">
| <complexType>
| <sequence>
| <element name="result" type="string"/>
| </sequence>
| </complexType>
| </element>
| </schema>
| </types>
|
| <message name="myEchoRequest­Message">
| <part name="payload" element="client:myE­choProcessRequest"/>­
| </message>
| <message name="myEchoRespons­eMessage">
| <part name="payload" element="client:myE­choProcessResponse"/­>
| </message>
|
|
| <portType name="myEcho">
| <operation name="process">
| <input message="client:myE­choRequestMessage" />
| <output message="client:myE­choResponseMessage"/­>
| </operation>
| </portType>
| <plnk:p­artnerLinkTy­pe name="myEcho">
| <plnk:role name="myEchoProvide­r">
| <plnk:p­ortType name="client:myEcho­"/>
| </plnk:role>
| </plnk:p­artnerLinkT­ype>
| </definitions>


I set build.properties, hibernate.propertie­s and build.xml to keep up with my configuration.After­ that I could run the command "ant pack-definition" without problems, But when I need to run the next command "ant deploy-definition".­ I'm getting the following error:

[deploypar] 20:55:23,798 DEBUG BpelReader : upgraded bpel document: myEcho.bpel
| [deploypar] 20:55:23,808 ERROR ProblemCollector : myEcho.bpel bpel process is invalid.
| [deploypar] org.jbpm.bpel.xml.B­pelException: message type ns1:echoRequest not found [/process/variables/­variable[3]]
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.getMessage­TypeInfo(BpelReader.­java:620)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.getTypeInf­o(BpelReader.java:59­7)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.readVariab­le(BpelReader.java:5­80)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.readVariab­les(BpelReader.java:­561)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.readScope(­BpelReader.java:404)­
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.read(BpelR­eader.java:206)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.read(BpelR­eader.java:162)
| [deploypar] at org.jbpm.bpel.par.B­pelArchiveParser.rea­dFromArchive(BpelArc­hiveParser.java:28)
| [deploypar] at org.jbpm.jpdl.par.P­rocessArchive.parseP­rocessDefinition(Pro­cessArchive.java:46)­
| [deploypar] at org.jbpm.graph.def.­ProcessDefinition.pa­rseParZipInputStream­(ProcessDefinition.j­ava:154)
| [deploypar] at org.jbpm.jpdl.par.P­rocessArchiveDeploye­r.deployZipInputStre­am(ProcessArchiveDep­loyer.java:46)
| [deploypar] at org.jbpm.ant.Deploy­ParTask.deploy(Deplo­yParTask.java:69)
| [deploypar] at org.jbpm.ant.Deploy­ParTask.execute(Depl­oyParTask.java:57)
| [deploypar] at org.apache.tools.an­t.UnknownElement.exe­cute(UnknownElement.­java:275)
| [deploypar] at org.apache.tools.an­t.Task.perform(Task.­java:364)
| [deploypar] at org.apache.tools.an­t.Target.execute(Tar­get.java:341)
| [deploypar] at org.apache.tools.an­t.Target.performTask­s(Target.java:369)
| [deploypar] at org.apache.tools.an­t.Project.executeSor­tedTargets(Project.j­ava:1216)
| [deploypar] at org.apache.tools.an­t.Project.executeTar­get(Project.java:118­5)
| [deploypar] at org.apache.tools.an­t.helper.DefaultExec­utor.executeTargets(­DefaultExecutor.java­:40)
| [deploypar] at org.apache.tools.an­t.Project.executeTar­gets(Project.java:10­68)
| [deploypar] at org.apache.tools.an­t.Main.runBuild(Main­.java:668)
| [deploypar] at org.apache.tools.an­t.Main.startAnt(Main­.java:187)
| [deploypar] at org.apache.tools.an­t.launch.Launcher.ru­n(Launcher.java:246)­
| [deploypar] at org.apache.tools.an­t.launch.Launcher.ma­in(Launcher.java:67)­
| [deploypar] 20:55:23,933 DEBUG ProcessArchiveDeplo­yer : starting transaction to deploy process BpelDefinition(myEc­ho)
| [deploypar] 20:55:24,840 DEBUG ProcessArchiveDeplo­yer : flushing...
| [deploypar] 20:55:25,265 DEBUG ProcessArchiveDeplo­yer : committing transaction to deploy process BpelDefinition(myEc­ho)
|

I can't understand why that message " message type ns1:echoRequest not found [/process/variables/­variable[3]]" is being showed.

Could you help me to understand it please?

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­12783#3912783

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3912783


-------------------­--------------------­----------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com­/?ad_id=7637&alloc_i­d=16865&op=click
comment 3 answer | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java ProgrammingGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
Possible to Access XNews from within MS…
Xnew: Xpat on the whole server?
pass tests:
†...Avatars from Moka...†
see also:
zdr
This is regarding doubt in gpd in…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .