Ramdu Johnson

Greenhorn
+ Follow
since Oct 15, 2015
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ramdu Johnson

I have a date calculated in JavaScript to be passed to a Java method as a parameter in a web service call function.

I am uncertain of how to prepare the JavaScript date object so that it will be accepted in the Java method as a legitimate java.util.date object.  I am not concerned with formatting or the string representation of the date, only that the Java method will recognize it as a java.util.date object.

Currently, the JavaScript variable containing the date is set to a long number such as this:

beginDate == 1512104400000; // this is the actual present value of the JavaScript object.

I need to use this date in the method of another JavaScript object that has been set as a Java Type and has a setter method:

javaTypedVariable.setBeginDate(beginDate); // parameter passed to this typed variable must be of type java.util.Date in order for the setter method to work.

Currently, just passing the beginDate, without any modification is producing an error.

Can anyone tell me how to prepare the beginDate JavaScript variable to successfully pass it to the Java method?

3 years ago
Well, thank you very much for all your help, but I got let go today so it doesn't matter, but I really do appreciate your efforts.
6 years ago
Joe Ess,

Thanks for your response. Sorry for my delay in thanking you.

I am still struggling with getting WebLogic 12.1.3 to work correctly for me.

I did a fresh install this morning. My Oracle Home is c:\orc\mdw\orh. I did a minimal install of WebLogic server and did not do any advanced configurations.

My domain is setup on this path: c:\wls\domains\randy
and contains a single AdminServer. I automatically started my AdminServer at the end of the Configuration wizard and it is now running.

I have two problems:

1. I cannot get to the console with the URI referenced in my installation: http://%MACHINE_NAME%:7001/console
I get an ERR_CONNECTION_REFUSED (AdminServer is currently running according to the command prompt).

2. If I go into my domain bin directory (c:\wls\domains\randy\bin) and run stopWebLogic.cmd I get the error:

Error: Could not find or load main class weblogic.WLST

I have not made any changes to any configuration files and I am stumped. Earlier this morning I discovered that I had set a server name environment variable in windows and that caused me to be unable to reach my AdminServer. I removed that and did a reinstall. Now I cannot stop WebLogic from the command line or access the console page in the browser.
6 years ago
I am working in an environment where we are updating an oc4j application from Struts 1 to Struts 2 in WebLogic 12.1.3. Last week a fellow developer showed me how to locate some shared libraries in the old application and bring them over in to my new application. I did the copy and pasting of the JAR files just before shutting down for the day on a Friday. When I came back to work Monday my application wouldn't work, so I uninstalled all the JAR files I had copied from the week before. I had copied the files into the autodeploy folder in my domain and also in the WEB-INF lib folder in my application.

After I uninstalled the JAR files in both locations, my application ran, however, my Managed Server constantly times out on shutdown or restart and I receive an error message and have to restart Eclipse. I did an observation of the server status today in the Admin console, and it appears that my managed server is not shutting down even when I close Eclipse. If I refresh the console web page it shows my Managed Server as still running. This behavior did not being until I installed and uninstalled those shared library jar files from the old oc4j application.

Can anyone give me any insight as to how I can get my server running quickly and healthy again?

Thanks.
6 years ago
I have an old WebUtilities class from Struts 1 that I am
updating for Struts 2.

This class uses MessageResources to retrieve APPLICATION_RESOURCES (a String value) from a WebConstants.java file.
I think MessageResources is part of Struts 1 and the package to reference it is:

org.apache.struts.util.MessageResources

If I am right, I need to find out what to replace this with in Struts 2 in my WebUtilities class. I tried referencing this package in my source code and I did not find it. I am assuming this is being handled differently in Struts 2 than in Struts 1 since I cannot find any reference to MessageResources in struts 2.

What has changed and what do I need to do differently?

Thanks.
6 years ago
I have an old WebUtilities class from Struts 1 that I am
updating for Struts 2.

This class uses MessageResources to retrieve APPLICATION_RESOURCES (a String value) from a WebConstants.java file.
I think MessageResources is part of Struts 1 and the package to reference it is:

org.apache.struts.util.MessageResources

If I am right, I need to find out what to replace this with in Struts 2 in my WebUtilities class. I tried referencing this package in my source code and I did not find it. I am assuming this is being handled differently in Struts 2 than in Struts 1 since I cannot find any reference to MessageResources in struts 2.

What has changed and what do I need to do differently?

Thanks.
6 years ago
I'm new to WebLogic. I'm trying to understand Managed Servers and domains and the differences between them and how I should use them.

I am developing with Eclipse and just happened to notice that when I try to start my web application that is currently open, several errors come up in the console because WebLogic server is trying to do something with my other applications in the same domain, but are not open in my current instance of Eclipse.

It made me wonder if I should use a different domain for each web application I develop? My other projects are stored in different workspaces on my computer but WebLogic is picking them up because all of them use the wlserver domain.

In addition, if I create a domain, do I need to create a managed server in that domain? This all has me very confused. I'm a new Java Programmer just getting started.
6 years ago
I'm trying to follow a book Struts 2 In Action in order to learn Struts 2. I've downloaded their code from the publisher's website. I have wasted an entire day searching the internet for documentation I can understand in order to get the WAR file they have provided up and running in Eclipse MARS.1 on WebLogic server 12.1.3, so I can read and follow the examples from out of the book.

I am having to learn Java Programming, JEE Development, WebLogic server, and Struts 2 all at the same time. I keep going around in circles trying to get to a place of stability where I can move forward and actually LEARN something. The documentation I find online, especially from Oracle, is next to useless. It all assumes a level of familiarity and experience that I do not have. I have uninstalled and reinstalled WebLogic server 3 times in one day just so I can get a fresh start and try to get example code running.

What are the simplest steps to get an existing WAR file to run in Eclipse on WebLogic server 12c?

Thanks,

Ramdu
6 years ago
Howdy everyone,

I'm a former C# developer who just started a job learning to be a Java developer. Why? I like to eat, and so does my family.

I have been brought in to support a legacy application that is now running on struts 1 in oc4j. My initial assignment is to upgrade this struts 1 application to struts 2, and at the same time switch from oc4j to WebLogic 10.3.6. My files are running under Tortoise SVN.

Being new to everything about Java development, I am finding it difficult to find easy to understand documentation to step me through the process. I've been reading Struts 2 in Action, but it seems to assume a level of knowledge I do not yet have.

I created a brand new Java Enterprise Application project in Eclipse (Mars). Inside of that I created an EJB project and a Dynamic Web project. I also created a user library with the Struts 2 jar files and added it to the Java Build Path and Deployment Assembly in the Web Project. Now I'm sitting with two new empty projects and not sure how to bring the files over from the existing struts 1 application.

What would be the best way to make sure I get all the files I need from the existing application (it also contains an EJB and Web Project) into my new blank projects I just created in Eclipse on WebLogic server??

Thanks in advance for any help you can give me.
6 years ago