Java regex for filenames or filetypes matching

I am trying to write a java regular expression where my application should restrict the names of the files or filetypes mentioned in the regex from being attached to an email. I started the regex like this,
.*\\.(?:jpeg|jpg)$
Is this correct?. Right now it is not working(matching). Not sure where I am going wrong. Also, how can I add new file types or filenames to this expression incase if I want to expand this regex. Like say, I want to add the vcf file types also here in this regex, how should I do that? Also, If I need to add the filenames, say abc.bmp from being attached, how and where should I include that filename in this regex?. Any help is greatly appreciated as I am new to this regex.

Darryl , I can't use Swing in my application. So I need to use a regex. This regex will be in a configuration page in my application where the user(client) can modify it to notify the filetypes or file names that they want to ignore from processing. So once my application receives a file, it will get this regex and do a compare with the current file to check if it matches the pattern. If it matches, I should ignore the file. The current regex that I have is
^(?:.*\\.(?:all|allowed|file|extensions)|all\\.allowed|file\\.names)$
Do you think if I am missing something here?. for some reason this doesn't work for me.

Similar Messages

  • RegEx, need help with pattern matching

    im going thru a list of Strings...and id like to match some input to it..but the tutorial for regex wont let me find a smaller string within a bigger one if it exists
    for example i have a String "java.sun.com" and i want to find "sun" or "java" or "com" or "jav" or ".co"
    i think the only way regex will work is if i group the entire thing into
    any ideas on how i can manipulate the string into a proper regex pattern so that itll find any of those "searches"
    thanks

    No, that is not correct. A regex can be constructed to return a match on anything you want. A single character, a newline character, a numeric character and any combination of them. There are limitless possibilities for pattern matching.
    See here:
    http://java.sun.com/j2se/1.4.1/docs/api/java/util/regex/Pattern.html
    Any of the patterns may be compiled into a regex for searching using the matcher.
    An alternative is to use the indexOf method of the string class to find what you are looking for.
    Example:
    String myString = "java.sun.com";
    String matchThis = "n.co";
    int patternFoundAtThisIndexPosition = myString.indexof(matchThis);patternFoundAtThisIndexPosition will be 7;
    or simply:
    int index = myString.indexof("sun");index will be 5;

  • How do you get java regex to match two different pattern

    Hi,
    I am having trouble getting getting java regex to match two pattern: "unknown host" or "100%".
    Here is a snippet of my code:
    try{
    Process child = Runtime.getRuntime().exec(" perl c:\\ping.pl");
    BufferedReader in = new BufferedReader( new InputStreamReader( child.getInputStream() ));
    String patternStr = "(unknown host | 100 %)";
    Pattern pattern = Pattern.compile(patternStr);
    Matcher matcher = pattern.matcher(" ");
    String line = null;
    while ( (line = in.readLine()) != null){
    System.out.println(line);
    matcher.reset(line);
    if (matcher.find())
    // line matches throws pattern
    System.out.println("match string");
    else
    System.out.println("no matches");
    I thought the "|" means OR but somehow it is not working.
    kirk123

    Hi,
    with String patternStr = "(unknown host | 100 %)"; you are looking
    for the strings "unknown host " OR " 100 %", with the spaces after host and before 100.
    Try "(unknown host|100 %)"
    hope, this will help you

  • Java.lang.Exception: Couldn't find a matching Java operation for WSDD

    Hi all,
    i used Eclipse to create a web service. actually i created a class with the following code:public class Add2Num {
         public int Add2Numbers(int x,int y)
              return x+y;
    }then i tried to generate wsdl file for this class, after i generate the wsdl file, i tried to run it but the following exception appear:
    org.apache.axis.InternalException <init>
    SEVERE: Exception:
    java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "add2Numbers" (2 args)
         at org.apache.axis.InternalException.<init>(InternalException.java:71)
         at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:891)
         at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
         at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
         at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
         at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
         at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
         at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
         at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
         at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
         at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
         at org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:50)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:239)
         at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:595)

    The cause is case mismatch.
         Your method signature : public int Add2Numbers(int x,int y) --- Upper Case
    But the signature produced is
    ouldn't find a matching Java operation for WSDD operation "add2Numbers" (2 args)
    ( from the error trace ) -- Lower case.
         Change the case of your method to add2number (lowercase ) as per conventions and you code will work.
    Rgdz,
    Saroj Kumar

  • What is the escape character for DOT in java regex?

    How to specify a dot character in a java regex?
    . itself represents any character
    \. is an illegal escape character

    The regex engine needs to see \. but if you're putting it into a String literal in a .java file, you need to make it \\., as Rene said. This is because the compiler also uses \ as an escape character, so it will take the first \ as escaping the second one, and remove it, and the string that gets passed onto the regex will be \.

  • Non greedy Java Regex not working

    I am trying to parse some HTML and using regex for it.
    Here is the HTML I want to parse:
    <a href="google.com">Lololo</a> <a href="tttt.com">Read More</a>I want to find the second anchor tag with "Read More" text only.
    The Regex I am using to parse the String is:
    <a.*?>\s*Read More.*?</a>But I am still getting the entire string back after the regex match instead of only the second A tag with Read More text.
    Can anyone help explain what is wrong in my regex?
    I am using Java 6 with Eclipse IDE 3.4.

    danbrown wrote:
    import java.util.regex.*;
    class TestRegEx {
    public static void main(String[] args) {
    String regex = "<a.*?>\\s*Read More.*?</a>";
    String toChk = "asfafadsfasfadsf <a href="google.com">Lololo</a> d ds <a href="tttt.com">Read More</a> zzzzzz";
    String cleanStr = Pattern.compile(regex,Pattern.CASE_INSENSITIVE).matcher(cleanStr).replaceAll("")
    //Expected output should be "asfafadsfasfadsf <a href="google.com">Lololo</a> d ds zzzzzz"
    //Only the '<a href="tttt.com">Read More</a>' must be deleted no other part of the String must be deleted.
    System.out.println(cleanStr);
    You've stated what the expected output is, but left off what the actual output is. Although in all fairness, there can't be any actual output, since that code will not compile.

  • Java Regex groups with quantifiers.

    I'm a bit stuck on a regex , i want to do something similar to this :
    (dog){6}
    dogdogdogdogdogdog
    and returned I want 6 seperate groups with 'dog' in each one.
    This works fine with jakarta-regexp but when I use the {} quantifiers in Java regex I lose the groupings which i'm looking for and just get a single group with a value of 'dog'
    I'm sure i'm doing something something stupid here and help would be great!

    You can't do this with the SunJDK regex engine without using find() with a Matcher.
    I consider this feature of jakarta-regex to be a bug and reported it (and a couple of other features) as such several years ago. The feature makes it incompatible with most regex engines I have used.

  • JAVA Regex Illegal Characters

    Hello - I am trying to find a list of all illegal characters which have to be escaped in JAVA Regex pattern matching but I cannot find a complete list.
    Also I understand that when doing the replaceall function that there is a special list of characters which can't be used for that as well, which also have to be escaped differently.
    If anyone has access to a full complete list as to when to escape and how I would greatly appreciated it!
    Thanks,
    Dan

    I also noticed this below link:
    http://java.sun.com/docs/books/tutorial/extra/regex/literals.html
    It said the following characters are meta-characters in regex API:
    ( [ { \ ^ $ | ) ? * + .
    But it also says the below:
    Note: In certain situations the special characters listed above will not be treated as metacharacters. You'll encounter this as you learn more about how regular expressions are constructed. You can, however, use this list to check whether or not a specific character will ever be considered a metacharacter. For example, the characters ! @ and # never carry a special meaning.
    Does anyone know if there would be any issues if I escaped when a character didn't need to be escaped?

  • Java Regex Pattern

    Hello,
    I have parsed a text file and want to use a java regex pattern to get the status like "warning" and "ok" ("ok" should follow the "warning" then need to parser it ), does anyone have idea? How to find ok that follows the warning status? thanks in advance!
    text example
    121; test test; test0; ok; test test
    121; test test; test0; ok; test test
    123; test test; test1; warning; test test
    124; test test; test1; ok; test test
    125; test test; test2; warning; test test
    126; test test; test3; warning; test test
    127; test test; test4; warning; test test
    128; test test; test2; ok; test test
    129; test test; test3; ok; test testjava code:
    String flag= "warning";
              while ((line= bs.readLine()) != null) {
                   String[] tokens = line.split(";");
                   for(int i=1; i<tokens.length; i++){
                        Pattern pattern = Pattern.compile(flag);
                        Matcher matcher = pattern.matcher(tokens);
                        if(matcher.matches()){
    // save into a list

    sorry, I try to expain it in more details. I want to parse this text file and save the status like "warning" and "ok" into a list. The question is I only need the "ok" that follow the "warning", that means if "test1 warning" then looking for "test1 ok".
    121; content; test0; ok; 12444      <-- that i don't want to have
    123; content; test1; warning; 126767
    124; content; test1; ok; 1265        <-- that i need to have
    121; content; test9; ok; 12444      <-- that i don't want to have
    125; content; test2; warning; 2376
    126; content; test3; warning; 78787
    128; content; test2; ok; 877666    <-- that i need to have
    129; content; test3; ok; 877666    <-- that i need to have
    // here maybe a regex pattern could be deal with my problem
    // if "warning|ok" then list all element with the status "warning and ok"
    String flag= "warning";
              while ((line= bs.readLine()) != null) {
                   String[] tokens = line.split(";");
                   for(int i=1; i<tokens.length; i++){
                        Pattern pattern = Pattern.compile(flag);
                        Matcher matcher = pattern.matcher(tokens);
                        if(matcher.matches()){
    // save into a list

  • Java regex

    Hi, I'm pretty new to Java, coming from a JavaScript background. I'm currently doing (or trying) a few challenges from a Java book that I have (Java Programming - For The Absolute Beginner). The challenge that I'm currently attemping asks me to write an application that calculates a 5% tax for any given amount, the problem is... I want to make my program accept both integers and real numbers. I thought it would be pretty straightforward to write two regular expressions, one to match an integer (1-99) and one to match a real number (0-99.0-99), and then, depending on whether the user input was a match to an integer or a real number; convert the match to either an int or float, then assign it to the appropriate variable type instance, I'm having a few problems :)
    Here's my code (I know it contains loads of errors, lol) -
    Challenge01.java
    import java.io.*;
    import java.text.DecimalFormat;
    import java.util.regex.*;
    public class Challenge01 {
      public static void main(String args[]) {
        //Declaration
        int anyPrice;
        float fivePercentTax;
        //Assignment
        anyPrice = 0;
        fivePercentTax = 0.05F;
        String value;
        //Regex
        Pattern intPattern = Pattern.compile("d");
        Pattern floatPattern = Pattern.compile("d.d+");
        //Declaration of a buffer
        BufferedReader reader;
        //Create an instance of the buffer
        reader = new BufferedReader(new InputStreamReader(System.in));
        //Format the data
        DecimalFormat twoDigits = new DecimalFormat("0.00");
        //Prompt for user input
         System.out.print("\t Enter a number:\t");
          value = reader.readLine();
          if value == intPattern {
             anyPrice = Integer.parseInt(value);
          else anyPrice = Float.parseFloat(value);
        System.out.print("\t" anyPrice);
    }Thanks in advance for any help :)

    Saying "it has problems" doesn't mean much to anybody. What does it do and what it is supposed to do?
    You may want to take a look at your regular expressions.
    Pattern intPattern = Pattern.compile("d");Will match the letter 'd' once. You have to escape the 'd' using \\d in order for it to match digits. Secondly, add a '+' to make it match one or more characters instead of only one.
    Also, this line
    else anyPrice = Float.parseFloat(value);won't work. An int cannot be assigned a float value.
    Edited by: codingMonkey on 2008/10/15 03:59

  • Java regex problem

    Hi:
    I have the following texts in a flat file:
    scheduler is running
    system default destination: llp
    device for ps3: /dev/ps3
    device for ps: /dev/ecpp0
    device for llp: /dev/ecpp0
    How can I use java regex to print out the string after "device for " in this case the string "ps3" ,"ps" and "llp".

        static final Pattern DEVICE_PATTERN = Pattern.compile(
                                          "device for ([^:]++)" );
        String text = "";
        Matcher m = DEVICE_PATTERN.matcher( text );
        while ( (text = bufferedReader.readLine()) != null ) {
            if ( m.reset(text).lookingAt() ) {
                String device = m.group( 1 );
        }

  • Regex for web page parsing

    I am trying to parse the html output of a web page. I need to grab all the URLs which are in hrefs, actions etc inside.
    I am using the regex pattern
    Pattern p = Pattern.compile("http.*?//\\S+[^\"]");
    (basically grab anything that starts with http till you hit a double quote and white space)
    When I do a find using matcher it gets me URLs which are like
    href="http://www.abcd.com/" or
    href="http://www.abcd.com/mypath" or
    href="http://www.abcd.com/mypath?p1=v1&p2=v2"
    But it doesn't work for something like
    href="http://www.abcd.com"><img src="/abcd/my.gif"
    Is there a good pattern to catch all of these varaints of URLs                    
    Thanks

    First off, your regex is wrong. After matching the double slash, it gobbles up as many non-whitespace characters as it can, then looks for a character that is not a double-quote. When the attribute value is followed by a space, the \S+ will stop at that point, then the [^"] will match the space. This at least give you a usable result; all you have to do is strip off the quote and the space. But if the value is immediately followed by a closing angle-bracket, the \S+ just keeps on gobbling. In your last example, it won't stop until it hits the space after the "img"--and now all you have is garbage.
    Here's a better way to extract URL's:
      Pattern p = Pattern.compile(
        "(href|src|background)  # ...and whatever other attr's  \n" +
        "\\s*=\\s*                                              \n" +
        "(?:                                                    \n" +
        "   \"([^\"]+)\"  # anything in double quotes           \n" +
        " |               # or                                  \n" +
        "   \'([^\']+)\'  # anything in single quotes           \n" +
        " |               # or                                  \n" +
        "   ([^\\s>]+)    # any non-WS except closing bracket   \n" +
        ")", Pattern.COMMENTS);Instead of looking for the URL's themselves, it looks for the names of attributes that should have URL's as values. The attribute name will be captured in group(1) and the URL will be in group(2), group(3) or group(4), depending on whether it was double-quoted, single-quoted or not quoted. If need be, you can verify that the value is indeed a URL using the java.net.URL class.

  • Acrobat 7 Pro - How to disable prompt for filename?

    I have a Windows XP Pro SP3 system with Office 2003 Pro and Visio 2002 Pro installed.
    I have an Access database that creates Visio 2002 files within the application. Within the Access database, i have the ability to print a single or multiple visio files at once.
    I have followed all the supposed steps to set Adobe PDF printer to dump directly to a folder.
    I have set Adobe PDF as my default printer.
    I have gone to Printers and modified "Adobe PDF" Preferences and changed "Prompt for Filename" and selected a folder that i created. As well as unchecking the show results in Adobe option. I've also made sure that this matches under Printer Defaults. I've even tried creating a folder first, and then adding an "Adobe PDF" port to see if that would work with no luck.
    What am I missing?
    I have tried configuring Adobe Distiller as well as the conversion options in the Adobe Toolbar in Visio with no luck.
    this wouldnt be a problem if i were just creating a handful of PDFS, but this database creates 50-100 daily so it would save myself alot of time to be able for Acrobat to name the file the same as the visio VSD file but as a PDF.
    Any help/tips would be appreciated. Thank you.

    If you are printing to a folder, the folder should contain PS files for each file and the option for filename is probably overwritten by the OS requiring you to specify the filename. With the Adobe PDF printer, you do not print to file, but to the default that is the Adobe PDF port. This port should automatically start Distiller to complete the conversion process - that is where the filename issue is used. The print process should be a one step process, not multiple steps.
    Try printing any file to the Adobe PDF printer and be sure the PDF creation process works, then start playing your other games. Right now it appears you do not have the PDF creation process working.

  • Provide the java code for the following scenario.

    Hi Experts,
    I have tried with all the combinations for this scenario. As per my understanding i require java code for the following scenario
    so that it becomes easy........
    I require a Message mapping for this Logic.
    In the Source there are 4 fields and, the Target side, the fields should appear like this.
    Source Structure- File
    Record
    |-> Header
    Order_No
    Date
    |-> Item
    Mat_No
    Quantity
    Target Structure-IDoc
    IDoc
    |-> Header
    |-> Segment
    Delivery_Order_No
    Recv_Date
    |-> Item
    |-> Segment
    Delivery_Order_No
    Material_Num
    Recv_Quantity.
    The Logic is for every Order number an IDOC is generated.And if the Material num matches then the quantity should be added. and important note is that the material numbers are different for every order number. That means if a material number is 2 in the order number A. Then the material number can never be 2 in any of the order numbers.Here is the following with an example for the above scenario.
    For example:-
    we have
    Source Structure- File
    Order-no Date Mat_No Quantity
    1 01/02/2011 A 10
    1 01/02/2011 B 15
    1 01/02/2011 A 10
    2 01/02/2011 C 10
    2 01/02/2011 C 10
    3 01/02/2011 D 20
    3 01/02/2011 D 10
    3 01/02/2011 E 25
    Target Structure-IDoc
    Delivery_Order_No Recv_Date Material_Num Recv_Quantity
    1 01/02/2011 A 20
    1 01/02/2011 B 15
    2 01/02/2011 C 20
    3 01/02/2011 D 30
    3 01/02/2011 E 25
    So for this example total of 5-Idocs created. That means for this example if Order_No is 1 When the Mat_No is A the quantity gets added. For this Scenario 1 IDoc with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) is generated by adding the quantity field in the Target Side. Similarly if Order_No is 1 when the Mat_No is B then separate IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) in the Target Side. Similarly, if Order_No is 2 when the Mat_No is C, an IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) by adding the quantity field in the Target Side. ike wise the process goes on upto 3.Kindly do the needy..
    Kindly provide the java code.
    Thanq very much in advance..

    what i have understood from ur example is that u want to generate an idoc for unique combination of  Order-no and Mat_No
    if yes then chk the below mapping..
    change the context of Order_No, Date, Mat_No and Quantity to Record (right click-> context)
    1)
    Order-no
    ----------------------concat[;]---sort----splitbyvalue(valuechanged)-----collapse context---IDoc
    Mat_No
    2)
    Order-no
    --------concat[;]---sort----splitbyvalue(value changed)---collapse context---UDF1--splitbyvalue(each value)--Delivery_Order_No
    Mat_No
    3)
    Order-no
    -----------concat[;]---sortbykey----------------------- \
    Mat_No                       /                            \
    Date--------------- /                                       \
    ----------------------------------------------------------FormatByExample-----collapsecontext---splitbyvalue(each value)----Recv_Date
    Order-no                                                 /
    -----------concat[;]---sort----splitbyvalue(value changed)
    Mat_No
    4)
    Order-no
    --------concat[;]---sort----splitbyvalue(value changed)---collapse context-UDF2--splitbyvalue(each value)--Material_Num
    Mat_No
    5)
    Order-no
    -----------concat[;]---sortbykey
    Mat_No                       /
    Quantity --------------- /
    ----------------------------------------------------------FormatByExample-----SUM(under statistic)----Recv_Quantity
    Order-no
    -----------concat[;]---sort----splitbyvalue(value changed)
    Mat_No
    UDF1:
    String [] temp= a.split(";");
    return temp[0];
    UDF2:
    String [] temp= a.split(";");
    return temp[1];

  • Source port type for BPELProcess does not match target port type for EJB

    Hi gurus,
    I have a problem with calling EJBs from a 11.1.1.3 composite. The following summarizes the issue:
    - there are several EJBs within the same package deployed on a WLS server.
    - these beans have method names that are the same, for example create(), delete() etc.
    - using the EJB Service Adapter I have created 3 References, one for each of the 3 beans I need to invoke in a BPEL process.
    - each bean is imported into the project with their own *.wsdl *Ref.wsdl files.
    - each wsdl imports a namespace based on the java package name
    - now i have 3 wsdls, importing the same namespace and namespace conflicts arise.
    At this point I'm thinking, 'no problem, just change the namespaces manually'
    - whenever i try to change the namespace that JDev gives the Reference components I end up with the compilation error:
    Source port type for "BPELProcess" does not match target port type for "EJBRef"
    It seems that the namespace must be the same as the package name, even though I resolved all the references to the new namespaces and ensure they all match.
    The problem appears to be in the BPELProcess.componentType file.
    <reference name="HelloEJBRef" ui:wsdlLocation="HelloEJBRef.wsdl">
    <interface.wsdl interface="http://package.workspace.com/HelloEJB#wsdl.interface(HelloEJB)"/>
    </reference>
    If the namespace (text before the #) is changed at all from the default, even if it matches the wsdl, results in the port type mismatch error above.
    Any ideas?
    btw, running SOA 11.1.1.3, JDev 10.1.1.3, EJB 3.0

    Hi gurus,
    I have a problem with calling EJBs from a 11.1.1.3 composite. The following summarizes the issue:
    - there are several EJBs within the same package deployed on a WLS server.
    - these beans have method names that are the same, for example create(), delete() etc.
    - using the EJB Service Adapter I have created 3 References, one for each of the 3 beans I need to invoke in a BPEL process.
    - each bean is imported into the project with their own *.wsdl *Ref.wsdl files.
    - each wsdl imports a namespace based on the java package name
    - now i have 3 wsdls, importing the same namespace and namespace conflicts arise.
    At this point I'm thinking, 'no problem, just change the namespaces manually'
    - whenever i try to change the namespace that JDev gives the Reference components I end up with the compilation error:
    Source port type for "BPELProcess" does not match target port type for "EJBRef"
    It seems that the namespace must be the same as the package name, even though I resolved all the references to the new namespaces and ensure they all match.
    The problem appears to be in the BPELProcess.componentType file.
    <reference name="HelloEJBRef" ui:wsdlLocation="HelloEJBRef.wsdl">
    <interface.wsdl interface="http://package.workspace.com/HelloEJB#wsdl.interface(HelloEJB)"/>
    </reference>
    If the namespace (text before the #) is changed at all from the default, even if it matches the wsdl, results in the port type mismatch error above.
    Any ideas?
    btw, running SOA 11.1.1.3, JDev 10.1.1.3, EJB 3.0

Maybe you are looking for

  • How to use SSO with Forms application

    Can somebody explain, how can we configure the SSO with Forms application. I have two application server instances. One for infrastructre and Other for application. Thanks

  • Java.lang.NullPointerException problem after installation

    Dear all, after i install the EP6.0 SP9 on AIX 5.3 ORACLE 9.2 ,when i want to create role ,i hit the IE error message like "operation aborted" .in the log viewer i found the error Time : 16:26:50:119 Category : /System/Server Date : 06/22/2005 Messag

  • Canon Log and Transfer problem

    Hello all, I'm trying to upload some HD files from my Canon HF20 on the latest edition of FCP to my iMac 10.58 and running into a problem. FCP recognizes the video captured on the internal memory. However, it does not recognize the video captured on

  • Shuffle songs within a playlist

    Is there anyway I can do this?

  • IE Browser back button goes to two pages back

    I am not using JSPs, using a servlet ABSServlet to display the search page, after entering the search criteris I'm displaying a report page. The report page has a button 'Save As Excel' which open the report in the Excel form. When I click on this bu